Skip to end of metadata
Go to start of metadata

Provides a lightweight control for displaying a context menu in the ribbon control.

Definition

public class UXRibbonContextMenu : UXContextMenu

Summary

The following table summarizes the members exposed in this class.

Public Constructors

UXRibbonContextMenu Constructor() Creates a new instance of UXRibbonContextMenu class.

Public Properties

GalleryItemHeight Gets or sets a value that determines the gallery item height.
GalleryItemWidth Gets or sets a value that determines the gallery item width.
ResizeThumbVisibility Get or sets a value indicating whether the resize thumb element is visible.

Fields

GalleryItemHeightProperty Identifies the GalleryItemHeight dependency property.
GalleryItemWidthProperty Identifies the GalleryItemWidth dependency property.
ResizeThumbVisibilityProperty Identifies the ResizeThumbVisibility dependency property.

Public Methods

AttachEventHandlers() Attach built-in event handlers to control templates. Call this method if necessary.
DetachedEventHandlers() Detach built-in event handlers from control templates. Call this method if necessary.
InitializeTemplates()

Protected Methods

ApplyBinding(DependencyObject, object) Applies item binding for each generated element.
MenuElementClosed(object, ISRoutedEventArgs) Raise when menu element is closed.
OnKeyDown(KeyEventArgs) Called before the System.Windows.UIElement.KeyUp event occurs.
PrepareContainerForItemOverride(DependencyObject, object) Prepares the specified element to display the specified item.

Public Constructors

public UXRibbonContextMenu()

Creates a new instance of UXRibbonContextMenu class.

Public Properties

public double GalleryItemHeight { get; set; }

Gets or sets a value that determines the gallery item height.

public double GalleryItemWidth { get; set; }

Gets or sets a value that determines the gallery item width.

public Visibility ResizeThumbVisibility { get; set; }

Get or sets a value indicating whether the resize thumb element is visible.

Fields

public static readonly DependencyProperty GalleryItemHeightProperty

Identifies the GalleryItemHeight dependency property.

public static readonly DependencyProperty GalleryItemWidthProperty

Identifies the GalleryItemWidth dependency property.

public static readonly DependencyProperty ResizeThumbVisibilityProperty

Identifies the ResizeThumbVisibility dependency property.

Public Methods

public void AttachEventHandlers()

Attach built-in event handlers to control templates. Call this method if necessary.

public void DetachedEventHandlers()

Detach built-in event handlers from control templates. Call this method if necessary.

public void InitializeTemplates()

Protected Methods

protected void ApplyBinding(DependencyObject element, object item)

Applies item binding for each generated element.

Parameters

element Container element.
item Item.

protected void MenuElementClosed(object sender, ISRoutedEventArgs e)

Raise when menu element is closed.

Parameters

sender
e

protected void OnKeyDown(KeyEventArgs e)

Called before the System.Windows.UIElement.KeyUp event occurs.

Parameters

e The data for the event.

protected void PrepareContainerForItemOverride(DependencyObject element, object item)

Prepares the specified element to display the specified item.

Parameters

element The container element used to display the specified item.
item The item to display.
  • No labels