Docking manager custom menu items not maintaining checked status
I have a docking manager with the following custom menu:
<syncfusion:CustomMenuItemCollection>
<syncfusion:CustomMenuItem x:Name="Menu1" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu2" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu3" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu4" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu5" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu6" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu7" Click="MenuItem_Clicked" IsChecked="True" />
</syncfusion:CustomMenuItemCollection>
When opening the context menu, I have an event set to check/uncheck some of the menu items based on their visibility in the docking manager. However, this is not working at all and constantly shows the menu items as unchecked. Example, menu 1 and 2 should be checked:
However, if I wrap all the menu items in a parent menu item, the code works properly and displays the menu items with the correct checked/unchecked state:
<syncfusion:CustomMenuItemCollection>
<syncfusion:CustomMenuItem x:Name="ParentMenu" SubmenuOpened="CustomMenuItem_OnSubmenuOpened">
<syncfusion:CustomMenuItem x:Name="Menu1" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu2" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu3" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu4" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu5" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu6" Click="MenuItem_Clicked" IsChecked="True" />
<syncfusion:CustomMenuItem x:Name="Menu7" Click="MenuItem_Clicked" IsChecked="True" /></syncfusion:CustomMenuItem>
</syncfusion:CustomMenuItemCollection>
I want to get away from needing a parent menu item. How can I achieve this to keep track of the checked/unchecked state without a parent menu item, or is this a bug?
Hi Joseph Badrouk,
We have confirmed
the reported scenario is a defect and logged a report for the reported
scenario, “Checked status is not update properly in CustomMenuItems of DockingManager”. We will fix this issue and include it in our NuGet release
which is scheduled for 11th November 2025.
You can track the status of this defect using the following feedback link: Checked status is not update properly in CustomMenuItems of DockingManager in WPF | Feedback Portal
Please let us know if you need any further assistance.
Note: The provided feedback link is private, and you need to log in to view this feedback.
Disclaimer:
“Inclusion of this solution in the weekly release may change due to other
factors including but not limited to QA checks and works reprioritization.”
Regards,
Karthick Arjunan
Hi Joseph Badrouk,
The reported issue has been resolved, and the fix will be available in the upcoming Volume 3 SP2 release. We would also like to inform you that the Volume 3 main release has been postponed to November 18, 2025, and this release will include the fix for the reported issue.
We truly appreciate your patience and understanding, and we will notify you as soon as the release is published.
Regards,
Karthick Arjunan
Hi Joseph Badrouk,
We have included the fix for the reported issue “Checked status is not update
properly in CustomMenuItems of DockingManager” in our latest release version
31.2.12 which is available for download ( https://www.nuget.org/).
Root Cause: The issue occurs because the update logic only resets the parent menu item's checked state without cascading or synchronizing the state to the custom items.
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance
Regards,
Karthick Arjunan
- 3 Replies
- 2 Participants
- Marked answer
-
JB Josepth Badrouk
- Oct 27, 2025 04:14 PM UTC
- Nov 18, 2025 01:59 PM UTC