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.
Properties
CornerRadius
The corner radius of the control's border.
public CornerRadius CornerRadius { get; set; }
Property Value
See Also
KeyTipText
The key tip text used to access the control.
[Localizability(LocalizationCategory.Label)]
public string? KeyTipText { get; set; }
Property Value
See Also
PinButtonStyle
The Style to apply to the pin button.
TogglePinCommand
The ICommand used to toggle a pin for this item.
UseLargeSize
Indicates whether to use a large size.
public bool UseLargeSize { get; set; }
Property Value
- bool:
trueif 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 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
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)