public MainWindow() { InitializeComponent(); // create some data var list = new List<Customer>(); for (int i = 0; i < 200; i++) list.Add(new Customer(i)); // create a flexgrid with traditional indexing var flex = new FlexGridTraditionalIndexing(); LayoutRoot.Children.Add(flex); // set number of rows and columns flex.Rows.Fixed = 3; flex.Columns.Fixed = 3; // bind it to our data flex.ItemsSource = list; }
public MainWindow() { InitializeComponent(); // create some data var list = new List <Customer>(); for (int i = 0; i < 200; i++) { list.Add(new Customer(i)); } // create a flexgrid with traditional indexing var flex = new FlexGridTraditionalIndexing(); LayoutRoot.Children.Add(flex); // set number of rows and columns flex.Rows.Fixed = 3; flex.Columns.Fixed = 3; // bind it to our data flex.ItemsSource = list; }
// ** ctor public ColumnCollectionTraditionalIndexing(FlexGridTraditionalIndexing grid) { _grid = grid; }