Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            var converter = new MyConverter();

            for (var i = 0; i < 100; i++)
            {
                RadGridView1.Columns.Add(new GridViewDataColumn()
                {
                    DataMemberBinding = new Binding("ID")
                    {
                        Converter = converter, ConverterParameter = i
                    },
                    Header = string.Format("Column{0}", i)
                });
            }

            DataContext = new MyDataContext();
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            DataContext = new MyDataContext();
        }
Пример #3
0
 public MainWindow()
 {
     InitializeComponent();
     _one = new MyDataContext(1);
     _two = new MyDataContext(101);
 }