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 a new instance of the RecentDocumentItem class.
Properties
CornerRadius
Gets or sets the corner radius of the control's border.
public CornerRadius CornerRadius { get; set; }
Property Value
- CornerRadius:
The corner radius of the control's border.
See Also
KeyTipText
Gets or sets the key tip text used to access the control.
[Localizability(LocalizationCategory.Label)]
public string KeyTipText { get; set; }
Property Value
- string:
The key tip text used to access the control.
See Also
PinButtonStyle
Gets or sets the Style to apply to the pin button.
public Style PinButtonStyle { get; set; }
Property Value
See Also
TogglePinCommand
Gets the ICommand used to toggle a pin for this item.
public ICommand TogglePinCommand { get; }
Property Value
See Also
UseLargeSize
Gets or sets 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 istrue
.
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 KeyTipInvokedEventArgs containing data related to this event. |
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 KeyTipOpeningEventArgs containing data related to this event. |
See Also
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