Hi,
I am using optionmenuopening event o add the additional context menu, it is coming perfectly but i want to make it as toggle one. The one in exampe coming with tick mark. What style i need to apply and how to enable and disable the tick mark based on the selection made ?
Here with i am attaching sample code to add a new context menu into the context menu
Infragistics.Windows.DockManager.Events.PaneOptionsMenuOpeningEventArgs)
(e.Source, ContentPane)
Then
Sub
If
'Seperator
Separator
separatorItem.SetResourceReference(StyleProperty, Infragistics.Windows.DockManager.XamDockManager.MenuItemSeparatorStyleKey)
e.Items.Add(separatorItem)
'Set Default Menu
MenuItem()
menuItem.Header =
"Set as Default"
menuItem.Tag =
"SetasDefault"
menuItem.ToolTip =
"Set's the Current window as user default"
SetAsDefault_Click
menuItem.SetResourceReference(StyleProperty, Infragistics.Windows.DockManager.XamDockManager.MenuItemStyleKey)
e.Items.Add(menuItem)
Thanks in advance
Abhi
Do you mean setting the MenuItem's IsCheckable and IsChecked properties?