Class ShortcutButton
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
Represents a button control that is styled for being used with a keyboard shortcut such as Win+Ctrl+[Number] in a SillPopup.
[TemplatePart(Name = "PART_ShortcutBadge", Type = typeof(ShortcutBadge))]
public class ShortcutButton : Button, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IEquatable<Control>, IEquatable<ContentControl>, IEquatable<ButtonBase>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Button>, IShortcutControl
- Inheritance
-
ShortcutButton
- Implements
-
IWinRTObject
- Inherited Members
- Extension Methods
Constructors
ShortcutButton()
public ShortcutButton()
Fields
ShortcutBadgeHorizontalAlignmentProperty
public static readonly DependencyProperty ShortcutBadgeHorizontalAlignmentProperty
Field Value
ShortcutBadgeMarginProperty
public static readonly DependencyProperty ShortcutBadgeMarginProperty
Field Value
ShortcutBadgeVerticalAlignmentProperty
public static readonly DependencyProperty ShortcutBadgeVerticalAlignmentProperty
Field Value
Properties
ShortcutBadgeHorizontalAlignment
public HorizontalAlignment ShortcutBadgeHorizontalAlignment { get; set; }
Property Value
ShortcutBadgeMargin
public Thickness ShortcutBadgeMargin { get; set; }
Property Value
ShortcutBadgeVerticalAlignment
public VerticalAlignment ShortcutBadgeVerticalAlignment { get; set; }
Property Value
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected override void OnApplyTemplate()