In This Article

RecentDocumentItem Class

Represents an item within a RecentDocumentControl.

public class RecentDocumentItem : Button
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl ButtonBase Button object

Constructors

RecentDocumentItem()

Initializes an instance of the class.

public RecentDocumentItem()

See Also

Properties

CornerRadius

The corner radius of the control's border.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

See Also

KeyTipText

The key tip text used to access the control.

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

Property Value

string

See Also

PinButtonStyle

The Style to apply to the pin button.

public Style? PinButtonStyle { get; set; }

Property Value

Style

See Also

TogglePinCommand

The ICommand used to toggle a pin for this item.

public ICommand TogglePinCommand { get; }

Property Value

ICommand

See Also

UseLargeSize

Indicates whether to use a large size.

public bool UseLargeSize { get; set; }

Property Value

bool:

true if a large size should be used; otherwise, false. The default value is true.

Remarks

Large size is better for backstage usage, while small size is better for application menu usage.

See Also

Methods

OnContextMenuOpening(ContextMenuEventArgs)

Invoked whenever an unhandled ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event.

protected override void OnContextMenuOpening(ContextMenuEventArgs e)
Parameter Type Description
e ContextMenuEventArgs

The RoutedEventArgs that contains the event data.

See Also

OnCreateAutomationPeer()

Creates an appropriate ButtonAutomationPeer for this control as part of the WPF infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

A ButtonAutomationPeer for this control.

See Also

OnKeyTipInvoked(KeyTipInvokedEventArgs)

Occurs when the control's key tip is invoked.

protected virtual void OnKeyTipInvoked(KeyTipInvokedEventArgs e)
Parameter Type Description
e KeyTipInvokedEventArgs

The event data.

See Also

OnKeyTipOpening(KeyTipOpeningEventArgs)

Occurs when the control's key tip is opening.

protected virtual void OnKeyTipOpening(KeyTipOpeningEventArgs e)
Parameter Type Description
e KeyTipOpeningEventArgs

The event data.

See Also

Fields

CornerRadiusProperty

Defines the CornerRadius property.

public static readonly DependencyProperty CornerRadiusProperty

KeyTipTextProperty

Defines the KeyTipText property.

public static readonly DependencyProperty KeyTipTextProperty

PinButtonStyleProperty

Defines the PinButtonStyle property.

public static readonly DependencyProperty PinButtonStyleProperty

UseLargeSizeProperty

Defines the UseLargeSize property.

public static readonly DependencyProperty UseLargeSizeProperty

Extension Methods

See Also