示例#1
0
        public Selections()
        {
            this.InitializeComponent();
            var datacontext = new SelectionViewModel();

            this.DataContext          = datacontext;
            this.syncgrid.ItemsSource = datacontext.ProductDetails;
        }
        public CheckBoxSelectorColumn()
        {
            this.InitializeComponent();
            this.syncgrid.Loaded += Syncgrid_Loaded;
            var dataContext = new SelectionViewModel();

            this.DataContext          = dataContext;
            this.syncgrid.ItemsSource = dataContext.ProductDetails;
        }