Still not solved:
I have the following issue:
I have a user control looking like this:
<UserControl x:Class="UserControlSettings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="mainGrid" ShowGridLines="True">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" FontSize="20">Test</TextBlock>
<Button Grid.Row="1" Grid.Column="0">Click</Button>
</Grid>
In the designer preview window it looks just fine. I see gridlines, textblock and the button.
When I embed it in a window, I only see the grid lines and no text or button. UserControl is embedded as follows:
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:APP.NET"
Title="Window1" Height="300" Width="300">
<Grid>
<my:UserControlSettings x:Name="controlSettings"/>
</Grid>
</Window>
Any help is appreciated.