I'm getting a null reference exception when attempting to open a simple DocumentWindow. I assume it's something I'm missing. The XAML is
and I'm using the following code to create and open my document
The .Open call throws a null reference exception. The InnerException is null.
<UserControl x:Class="DocumentContainer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking">
<docking:DockSite x:Name="_DockSite">
<docking:TabbedMdiHost
CanDocumentsDockBottom="False"
CanDocumentsDockLeft="False"
CanDocumentsDockRight="False"
>
<docking:TabbedMdiContainer x:Name="_TabHost">
</docking:TabbedMdiContainer>
</docking:TabbedMdiHost>
</docking:DockSite>
</UserControl>
DocumentWindow doc = new DocumentWindow(_DockSite)
{
Title = "test",
Content = new TextBlock() { Text = "this is a test" },
};
doc.Open();