Category / Section
How to enable Maximize button on float windows in the DockingManager?
1 min read
The DockingManager uses Popup for FloatWindow, and so it cannot be maximized. You can Maximize the FloatWindow by setting the CanFloatMaximize attached property of the DockingManager and the UseNativeFloatWindow.
The following code example shows how to enable Maximize button on the float windows in the DockingManager.
XAML
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:syncfusion="http://schemas.syncfusion.com/wpf” x:Class="DockingMaximize.MainWindow" Title="MainWindow" Height="700" Width="1200" > <Grid> <syncfusion:DockingManager Name="Docking" UseNativeFloatWindow="True" > <ContentControl syncfusion:DockingManager.Header="Dock1" Name="Dock1" syncfusion:DockingManager.State="Float" syncfusion:DockingManager.CanFloatMaximize="True"></ContentControl> </syncfusion:DockingManager> </Grid> </Window>
C#
namespace DockingMaximize { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); /// <summary> ///Sets Maximize button property. /// </summary> DockingManager.SetCanFloatMaximize(Dock1, true); } } }
The following screenshot displays enabled Maximize button of the float window.