Property TabContextMenu
| Improve this Doc View SourceTabContextMenu
Gets or sets the DockItem object's context menu to display for the tab. This is a dependency property.
Declaration
public ContextMenu TabContextMenu { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.ContextMenu | An System.Windows.Controls.ContextMenu object that represents the context menu to display for the tab. |
Remarks
When setting TabContextMenu property, the System.Windows.Controls.ContextMenu object's System.Windows.FrameworkElement.DataContext property is set to the owner DockItem. This is useful when you want data binding to the owner DockItem or its properties from the System.Windows.Controls.ContextMenu or its descendant elements.