private void TextBox_TextChanged(object sender, TextChangedEventArgs e) { SolidColorBrush myBrush = new SolidColorBrush(Colors.Red); StackPanel SP = new StackPanel(); SP.Height = 50; SP.Width = 300; SP.Background = myBrush; TextBlock TB = new TextBlock(); TB.Width = 30; TB.Height = 30; TB.Text = "World Of Waracrft"; //wow search if (Sois.Properties.Settings.Default.sel == 2) { if (tb1.Text == "wow") { this.sp1.Children.Add(SP); } else { this.sp1.Children.Clear(); } } }
this.sp1.Children.Clear();
sp1 == null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)