public NavigateDataView()
        {
            InitializeComponent();
            mStore = new ProductStore();

            ICollection<Product> products = mStore.GetAll();
            this.DataContext = products;

            view = (ListCollectionView)CollectionViewSource.GetDefaultView(this.DataContext);
            view.CurrentChanged += new EventHandler(view_CurrentChanged);

            lstProducts.ItemsSource = products;
        }
 public DataTemplateList4()
 {
     InitializeComponent();
     mStore = new ProductStore();
 }
示例#3
0
 public ListBoxWindow()
 {
     InitializeComponent();
     mStore = new ProductStore();
 }
 public ListViewGridBase()
 {
     InitializeComponent();
     mStore = new ProductStore();
 }
 public FilterCollection()
 {
     InitializeComponent();
     mStore = new ProductStore();
 }
 public DataTemplateList5()
 {
     InitializeComponent();
     mStore = new ProductStore();
     lstProducts.ItemsSource = mStore.GetAll();
 }
 public ListViewDataGrid()
 {
     InitializeComponent();
     mStore = new ProductStore();
 }
 public ListViewTreeView()
 {
     InitializeComponent();
     mStore = new ProductStore();
 }
示例#9
0
        public ProductRad()
        {
            InitializeComponent();

            mStore = new ProductStore();
        }