Articles in this section

How to customize maximize button in WPF Docking Manager control?

Maximize button for the dock window can be customized by

MaximizeButtonTemplate of WPF Docking Manager with the TargetType as

ToggleButton.

The same has been explained in the following code snippet:

XAML:

//Code Explains how to customize MaximizeButtonTemplate in Docking Manager
<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="Docking_MaximizationCustomTemplate_.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:DockingManager Name="Docking" UseDocumentContainer="True" MaximizeButtonEnabled="True"> <syncfusion:DockingManager.MaximizeButtonTemplate>
<ControlTemplate TargetType="ToggleButton">
<TextBlock Text="Max" Foreground="Green" Background="Orange">
</TextBlock>
</ControlTemplate>
</syncfusion:DockingManager.MaximizeButtonTemplate>
<ContentControl syncfusion:DockingManager.Header="Dock" syncfusion:DockingManager.DesiredWidthInDockedMode="150">
</ContentContro>
<ContentControl syncfusion:DockingManager.Header="Dock1" syncfusion:DockingManager.DesiredWidthInDockedMode="150">
 </ContentContro>
 <ContentControl syncfusion:DockingManager.Header="Dock2" syncfusion:DockingManager.DesiredWidthInDockedMode="150">
 </ContentContro>
 </syncfusion:DockingManager>
    </Grid>
</Window>
 

 

Output:

                           C:\Users\Ashok.Murugesan\Desktop\Switchmode\Docking(CustomizingMaxButton).png


Conclusion

I hope you enjoyed learning how to customize maximize button in Docking Manager control.
You can refer to our WPF Docking Manager feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WPF Docking Manager example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied