コード例 #1
0
        public ComplexPropertyBinding()
        {
            this.InitializeComponent();
            var datacontext = new CustomerInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.CustomerDetails;
        }
コード例 #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;
        }