In This Article

RecentDocumentItem Class

Represents an item within a RecentDocumentControl.

public class RecentDocumentItem : Button, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, ICommandSource
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ContentControl System.Windows.Controls.Primitives.ButtonBase System.Windows.Controls.Button Object

Constructors

RecentDocumentItem()

Initializes a new instance of the RecentDocumentItem class.

public RecentDocumentItem()

Properties

CornerRadius

Gets or sets the corner radius of the control's border.

public CornerRadius CornerRadius { get; set; }

Property Value

System.Windows.CornerRadius:

The corner radius of the control's border.

KeyTipText

Gets or sets the key tip text used to access the control.

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

Property Value

System.String:

The key tip text used to access the control.

PinButtonStyle

Gets or sets the System.Windows.Style to apply to the pin button.

public Style PinButtonStyle { get; set; }

Property Value

System.Windows.Style:

The System.Windows.Style to apply to the pin button.

TogglePinCommand

Gets the System.Windows.Input.ICommand used to toggle a pin for this item.

public ICommand TogglePinCommand { get; }

Property Value

System.Windows.Input.ICommand:

The System.Windows.Input.ICommand used to toggle a pin for this item.

UseLargeSize

Gets or sets whether to use a large size.

public bool UseLargeSize { get; set; }

Property Value

System.Boolean:

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.

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 System.Windows.Controls.ContextMenuEventArgs

The System.Windows.RoutedEventArgs that contains the event data.

OnCreateAutomationPeer()

Creates an appropriate System.Windows.Automation.Peers.ButtonAutomationPeer for this control as part of the WPF infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

System.Windows.Automation.Peers.AutomationPeer:

A System.Windows.Automation.Peers.ButtonAutomationPeer for this control.

OnKeyTipInvoked(KeyTipInvokedEventArgs)

Occurs when the control's key tip is invoked.

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

The KeyTipInvokedEventArgs containing data related to this event.

OnKeyTipOpening(KeyTipOpeningEventArgs)

Occurs when the control's key tip is opening.

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

The KeyTipOpeningEventArgs containing data related to this event.

Fields

CornerRadiusProperty

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

public static readonly DependencyProperty CornerRadiusProperty

KeyTipTextProperty

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

public static readonly DependencyProperty KeyTipTextProperty

PinButtonStyleProperty

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

public static readonly DependencyProperty PinButtonStyleProperty

UseLargeSizeProperty

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

public static readonly DependencyProperty UseLargeSizeProperty

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods

See Also