Exemple #1
0
        public ComplexPropertyBinding()
        {
            this.InitializeComponent();
            var datacontext = new CustomerInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.CustomerDetails;
        }
Exemple #2
0
        public AutoRowHeight()
        {
            this.InitializeComponent();
            var datacontext = new CustomerInfoViewModel();

            this.DataContext                = datacontext;
            this.sfGrid.ItemsSource         = datacontext.CustomerDetails;
            this.sfGrid.ItemsSourceChanged += OnSfDataGridItemsSourceChanged;
            this.sfGrid.QueryRowHeight     += OnSfDataGridQueryRowHeight;
        }