Class ContextMenuService
Provides the system implementation for displaying a ContextMenu.
Inheritance
System.Object
ContextMenuService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public static class ContextMenuService
Fields
| Improve this Doc View SourceContextMenuProperty
Identifies the ContextMenu attached property.
Declaration
public static readonly DependencyProperty ContextMenuProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Methods
| Improve this Doc View SourceGetContextMenu(DependencyObject)
Gets the value of the ContextMenu property of the specified object.
Declaration
public static ContextMenu GetContextMenu(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | Object to query concerning the ContextMenu property. |
Returns
Type | Description |
---|---|
ContextMenu | Value of the ContextMenu property. |
SetContextMenu(DependencyObject, ContextMenu)
Sets the value of the ContextMenu property of the specified object.
Declaration
public static void SetContextMenu(DependencyObject obj, ContextMenu value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | Object to set the property on. |
ContextMenu | value | Value to set. |