ContextMenu.Open(Object, Object, UIElement, Point, String, FlyoutSettingsBase) Method
Opens the context menu.
Namespace: DevExpress.UI.Xaml
Assembly: DevExpress.UI.Xaml.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
public void Open(
object menuContent,
object dataContext,
UIElement placementTarget,
Point targetPosition,
string header,
FlyoutSettingsBase settings
)
Parameters
Name | Type | Description |
---|---|---|
menuContent | Object | A Windows.UI.Xaml.UIElement descendant or Windows.UI.Xaml.DataTemplate instance that represents the menu content. |
dataContext | Object | The data context for the menu. |
placementTarget | Windows.UI.Xaml.UIElement | A Windows.UI.Xaml.UIElement descendant to which the menu is attached. |
targetPosition | Point | A Windows.Foundation.Point object that represents the point relative to which the context menu should be displayed. |
header | String | A string value that is the menu header. |
settings | DevExpress.UI.Xaml.FlyoutSettingsBase | A DevExpress.UI.Xaml.FlyoutSettingsBase object that stores the flyout settings. |
See Also