(this.Parent as StackPanel).Children.Remove(this);
Type parentType = this.Parent.GetType(); (this.Parent as parentType ).Children.Remove(this);
Error 15 The type or namespace name 'parentType' could not be found (are you missing a using directive or an assembly reference?)
StackPanel panel = this.Parent as StackPanel; if (panel != null) { panel.Children.Remove(this); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)