Hello,
I'm trying to use NativeWindowStyle property of the DockingManager to change the style of floating windows. So I came across the following example in the documentation.
<syncfusion:DockingManager UseDocumentContainer="True" ContainerMode="TDI" UseNativeFloatWindow="True">
<syncfusion:DockingManager.NativeWindowStyle>
<Style TargetType="{x:Type syncfusion:NativeFloatWindow}">
<Setter Property="Background" Value="Red"></Setter>
</Style>
</syncfusion:DockingManager.NativeWindowStyle>
<ContentControl syncfusion:DockingManager.Header="Child1" syncfusion:DockingManager.State="Float"/>
<ContentControl syncfusion:DockingManager.Header="Child2" syncfusion:DockingManager.State="Document"/>
<ContentControl syncfusion:DockingManager.Header="Child3" syncfusion:DockingManager.State="Document"/>
</syncfusion:DockingManager>
The problem with my code and with this example is that it crashes with an unhandled NullReferenceException when I close the floating window (Child1 in the example). Are there any ideas how this could be avoided?
Regards
Roman