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; }
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; }