In This Article

RecentDocumentMenu Class

Represents a Menu that lists recent documents and is intended to be used on a Ribbon application menu.

public class RecentDocumentMenu : Menu, IVariantControl
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl Menu object
Implements:
IVariantControl

Remarks

For detailed documentation on this control's features and how to use them, please see the RecentDocumentMenu documentation topic.

Constructors

RecentDocumentMenu()

Initializes an instance of the RecentDocumentMenu class.

public RecentDocumentMenu()

Properties

Context

Gets or sets a ControlContext that describes the current context of the control.

public ControlContext Context { get; set; }

Property Value

ControlContext:

A ControlContext that describes the current context of the control. The default value is ControlContext.None.

Label

Gets or sets the label to display as a header for the menu.

[Localizability(LocalizationCategory.Title)]
public string Label { get; set; }

Property Value

string:

The label to display as a header for the menu.

Manager

Gets or sets the RecentDocumentManager to use for populating the menu.

public RecentDocumentManager Manager { get; set; }

Property Value

RecentDocumentManager:

The RecentDocumentManager to use for populating the menu.

VariantSize

Gets or sets a VariantSize that indicates the control's current variant size.

public VariantSize VariantSize { get; set; }

Property Value

VariantSize:

A VariantSize that indicates the control's current variant size. The default value is VariantSize.Medium.

Methods

OnKeyDown(KeyEventArgs)

Invoked when an unhandled KeyDownEvent attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected override void OnKeyDown(KeyEventArgs e)
Parameter Type Description
e KeyEventArgs

The KeyEventArgs that contains the event data.

Fields

ContextProperty

Identifies the Context dependency property. This field is read-only.

public static readonly DependencyProperty ContextProperty

LabelProperty

Identifies the Label dependency property. This field is read-only.

public static readonly DependencyProperty LabelProperty

ManagerProperty

Identifies the Manager dependency property. This field is read-only.

public static readonly DependencyProperty ManagerProperty

VariantSizeProperty

Identifies the VariantSize dependency property. This field is read-only.

public static readonly DependencyProperty VariantSizeProperty

Inherited Members