Parent
Introduction
Code Example - Adding a Child by Setting Parent
var sprite = new SpriteRuntime();
// This automatically adds sprite as a child of ContainerRuntime
sprite.Parent = ContainerInstance;// This removes the Sprite from its Parent (ContainerInstance)
sprite.Parent = null;var button = new Button();
button.Text = "Click Me!";
button.Parent = FrameworkElement.ModalRoot;
button.Click += (_,_) => button.Parent = null;Last updated
Was this helpful?

