private void FilterChecked(object sender, RoutedEventArgs e) { aggregate_filter.Add(FilterOnStartsWithA); }
public MainWindow() { log.Debug("MainWindow constructor"); Accounts.Add(new Account("Account a")); Accounts.Add(new Account("Account b")); Accounts.Add(new Account("Account c")); Accounts[0].Posts.Add(new Post("Post a1")); Accounts[0].Posts.Add(new Post("Post a2")); Accounts[0].Posts.Add(new Post("Post a3")); Accounts[1].Posts.Add(new Post("Post b1")); Accounts[1].Posts.Add(new Post("Post b2")); Accounts[2].Posts.Add(new Post("Post c1")); #region Word list WordList.Add("through"); WordList.Add("another"); WordList.Add("because"); WordList.Add("picture"); WordList.Add("America"); WordList.Add("between"); WordList.Add("country"); WordList.Add("thought"); WordList.Add("example"); WordList.Add("without"); WordList.Add("banging"); WordList.Add("bathtub"); WordList.Add("blasted"); WordList.Add("blended"); WordList.Add("bobsled"); WordList.Add("camping"); WordList.Add("contest"); WordList.Add("dentist"); WordList.Add("disrupt"); WordList.Add("himself"); WordList.Add("jumping"); WordList.Add("lending"); WordList.Add("pinball"); WordList.Add("planted"); WordList.Add("plastic"); WordList.Add("problem"); WordList.Add("ringing"); WordList.Add("shifted"); WordList.Add("sinking"); WordList.Add("sunfish"); WordList.Add("trusted"); WordList.Add("twisted"); WordList.Add("nothing"); WordList.Add("chuckle"); WordList.Add("fishing"); WordList.Add("forever"); WordList.Add("grandpa"); WordList.Add("grinned"); WordList.Add("grumble"); WordList.Add("library"); WordList.Add("perfect"); WordList.Add("Sanchez"); WordList.Add("snuggle"); WordList.Add("sparkle"); WordList.Add("sunburn"); WordList.Add("swimmer"); WordList.Add("tadpole"); WordList.Add("twinkle"); WordList.Add("whisper"); WordList.Add("whistle"); WordList.Add("writing"); WordList.Add("applaud"); WordList.Add("awesome"); WordList.Add("bedtime"); WordList.Add("beehive"); WordList.Add("begging"); WordList.Add("broiler"); WordList.Add("careful"); WordList.Add("collect"); WordList.Add("crinkle"); WordList.Add("cupcake"); WordList.Add("delight"); WordList.Add("explore"); WordList.Add("giraffe"); WordList.Add("gumball"); WordList.Add("harmful"); WordList.Add("helpful"); WordList.Add("herself"); WordList.Add("highway"); WordList.Add("hopeful"); WordList.Add("instead"); WordList.Add("kneecap"); WordList.Add("leather"); WordList.Add("necktie"); WordList.Add("nowhere"); WordList.Add("oatmeal"); WordList.Add("outside"); WordList.Add("painful"); WordList.Add("pancake"); WordList.Add("pennies"); WordList.Add("popcorn"); WordList.Add("pretzel"); WordList.Add("rainbow"); WordList.Add("recycle"); WordList.Add("restful"); WordList.Add("sandbox"); WordList.Add("scratch"); WordList.Add("shaking"); WordList.Add("silence"); WordList.Add("smiling"); WordList.Add("snowman"); WordList.Add("someone"); WordList.Add("splotch"); WordList.Add("startle"); WordList.Add("stiffer"); WordList.Add("strange"); WordList.Add("stretch"); WordList.Add("sunrise"); WordList.Add("teacher"); WordList.Add("thimble"); WordList.Add("thinner"); WordList.Add("topcoat"); WordList.Add("traffic"); WordList.Add("treetop"); WordList.Add("trouble"); WordList.Add("trumpet"); WordList.Add("Tuesday"); WordList.Add("tugboat"); WordList.Add("visitor"); WordList.Add("weather"); WordList.Add("weekend"); WordList.Add("wettest"); WordList.Add("wriggle"); WordList.Add("wrinkle"); WordList.Add("written"); WordList.Add("brother"); WordList.Add("present"); WordList.Add("program"); WordList.Add("twitter"); WordList.Add("against"); WordList.Add("general"); WordList.Add("however"); WordList.Add("airport"); WordList.Add("anybody"); WordList.Add("balloon"); WordList.Add("bedroom"); WordList.Add("bicycle"); WordList.Add("brownie"); WordList.Add("cartoon"); WordList.Add("ceiling"); WordList.Add("channel"); WordList.Add("chicken"); WordList.Add("garbage"); WordList.Add("promise"); WordList.Add("squeeze"); WordList.Add("address"); WordList.Add("blanket"); WordList.Add("earache"); WordList.Add("excited"); WordList.Add("grandma"); WordList.Add("grocery"); WordList.Add("indoors"); WordList.Add("January"); WordList.Add("kitchen"); WordList.Add("lullaby"); WordList.Add("monster"); WordList.Add("morning"); WordList.Add("naughty"); WordList.Add("October"); WordList.Add("pajamas"); WordList.Add("pretend"); WordList.Add("quarter"); WordList.Add("shampoo"); WordList.Add("stomach"); WordList.Add("tonight"); WordList.Add("unhappy"); WordList.Add("pumpkin"); WordList.Add("printed"); WordList.Add("planned"); WordList.Add("spilled"); WordList.Add("smelled"); WordList.Add("grilled"); WordList.Add("slammed"); WordList.Add("spelled"); #endregion aggregate_filter = new AggregateFilter(CollectionViewSource.GetDefaultView(WordList)); aggregate_filter.Add(FilterOnText); InitializeComponent(); DataContext = this; }