I have created a simple WPF test program, based on what Visual Studio gives me when I add a UserControl1.xaml to my project. In XAML it appears that the blank “background canvas” is of type Grid.
When I create an instance of UserControl1, is there any possibility to programmatically access the underlying Grid instance (so I can change the background color)?
Give the grid a name:
Then you can access it from the C# side: