Show / Hide Table of Contents

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 Source

ContextMenuProperty

Identifies the ContextMenu attached property.

Declaration
public static readonly DependencyProperty ContextMenuProperty
Field Value
Type Description
DependencyProperty

Methods

| Improve this Doc View Source

GetContextMenu(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source