The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
UIElementCollection.Clear Method ()
.NET Framework (current version)
PresentationFramework (in PresentationFramework.dll)
public virtual void Clear()
The following example uses the Clear method to clear child content from a parent StackPanel. You do this by using the Children property, which is of type UIElementCollection.
void AddButton(object sender, MouseButtonEventArgs e)
btn = new Button();
btn.Content = "New Button";
Return to top
Available since 3.0