How can I close the Docking Window?, Also I tried to place a button inside the docking window, but it didn't get reflected on the UI, is there something I'm missing ?
<docking:DockingWindow Name="spMain"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Height="auto" Width="Auto">
<Grid Name="gridCtrl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Height="auto" Width="auto">
<WindowsFormsHost x:Name="winFormHost" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" Height="Auto" Width="Auto"
docking:InteropFocusTracking.IsEnabled="True">
</WindowsFormsHost>
<Button x:Name="closeButton"
Content="Close"
Background="Black"
Foreground="Black"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Height="5" Width="7"
Click="closeButton_Click" Margin="13,0,0,15"
>
</Grid>
</docking:DockingWindow>
</docking:DocumentWindow>
[Modified 3 years ago]