Tag Archives: layout

Adding Objects to a Window or Page via a StackPanel

You can’t directly (programmatically) add controls to a Window or a Page in WPF. So how do you add controls? Simply add a StackPanel component, and add controls via the someStackPanel.Children.Add(someObject). Similarly, you can iterate to find controls from it. Continue reading

Posted in Core .NET, WPF | Tagged , | Leave a comment