menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ContextMenu - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ContextMenu

    Show the context menu while right click in grid or holding by touch.

    Inheritance
    System.Object
    ContextMenu
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.CellGrid
    Assembly: Syncfusion.SfCellGrid.UWP.dll
    Syntax
    public class ContextMenu : Control, IDisposable

    Constructors

    ContextMenu()

    Initialize the contextmenu by using this constructor.

    Declaration
    public ContextMenu()

    Properties

    Items

    Add or remove items from context menu.

    Declaration
    public ObservableCollection<FrameworkElement> Items { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<Windows.UI.Xaml.FrameworkElement>

    Methods

    Dispose()

    Call the Dispose and SuppressFinalize method for dipose the instance of ContextMenu class.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Dispose the items and unhook the events of ContextMenu class..

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Dispose the instance, if it is True

    OnApplyTemplate()

    Apply the template style to custom control.

    Declaration
    protected override void OnApplyTemplate()

    Implements

    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved