ContextMenuService.SetContextMenu(DependencyObject, ContextMenu) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of the ContextMenu property of the specified object.
public:
static void SetContextMenu(System::Windows::DependencyObject ^ element, System::Windows::Controls::ContextMenu ^ value);
public static void SetContextMenu (System.Windows.DependencyObject element, System.Windows.Controls.ContextMenu value);
static member SetContextMenu : System.Windows.DependencyObject * System.Windows.Controls.ContextMenu -> unit
Public Shared Sub SetContextMenu (element As DependencyObject, value As ContextMenu)
Parameters
- element
- DependencyObject
Object to set the property on.
- value
- ContextMenu
Value to set.
Applies to
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.