Articles in this section
Category / Section

How to collapse the context menu items of float window in DockingManager?

1 min read

In DockingManager, you can collapse the context menu items in Float state by using the CollapseDefaultContextMenuItemsInFloat property. The following code example demonstrates the same.

XAML

<syncfusion:DockingManager x:Name="dockmanager" UseDocumentContainer="True" >
<ContentControl Name="child1"  syncfusion:DockingManager.Header="Dock1" syncfusion:DockingManager.State="Document" syncfusion:DockingManager.CollapseDefaultContextMenuItemsInFloat="True">
</ContentControl>
</syncfusion:DockingManager>

C#

DockingManager.SetCollapseDefaultContextMenuItemsInFloat(child1,true);

By default, the CollapseDefaultContextMenuItemsInFloatMode is False,

Figure 1: CollapseDefaultContextMenuItemsInFloatMode set as default

When set the CollapseDefaultContextMenuItemsInFloatMode as True,

Figure 2: CollapseDefaultContextMenuItemsInFloatMode set as True

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