コード例 #1
0
        public Scenario1()
        {
            this.InitializeComponent();

            NewItems     = SampleDataModel.GetSampleData().Where(x => x.IsNew).ToList();
            FlaggedItems = SampleDataModel.GetSampleData().Where(x => x.IsFlagged).ToList();
            AllItems     = SampleDataModel.GetSampleData().ToList();

            this.DataContext = this;
        }
コード例 #2
0
ファイル: Scenario2.xaml.cs プロジェクト: ice0/test
        public Scenario2()
        {
            this.InitializeComponent();
            NewItems         = SampleDataModel.GetSampleData().Where(x => x.IsNew).ToList();
            FlaggedItems     = SampleDataModel.GetSampleData().Where(x => x.IsFlagged).ToList();
            AllItems         = SampleDataModel.GetSampleData().ToList();
            this.Suggestions = new ObservableCollection <SampleDataModel>();

            this.DataContext = this;
        }