We need your control inherits ContentControl instead of Control. You can then remove your dependency Main content. Then for your theme in your TextBlock put that in place
Code:
<TextBlock X:Name="TXT_Header" Text="{tmpbnd hdtxt}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"> </ TextBlock>
Finally to view the content of your control you need a ContentPresenter
Code:
<ContentPresenter Content="{tmpbnd Content}" Margin="{tmpbnd Padding}" />
And then everything should be good (as you can remove a lot of code as well).
Bookmarks