Class ShortcutBadge
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
A UI control that displays keyboard shortcut badges and automatically manages its visibility based on whether keyboard shortcuts are enabled in the application. The badge shows or hides itself when the keyboard shortcut system is toggled on or off.
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(WindowSill_API_SillListViewPopupItemWinRTTypeDetails))]
[Bindable]
public sealed class ShortcutBadge : ContentControl, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IEquatable<Control>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<ContentControl>
- Inheritance
-
ShortcutBadge
- Implements
-
IWinRTObject
- Inherited Members
- Extension Methods
Constructors
ShortcutBadge()
Initializes a new instance of the ShortcutBadge class
public ShortcutBadge()
Fields
DefaultInnerVisibilityProperty
Dependency property that defines the default visibility state for inner content when keyboard shortcuts are disabled. This allows customization of what should be shown when the shortcut system is turned off.
public static readonly DependencyProperty DefaultInnerVisibilityProperty
Field Value
OnlyApplyToSillPopupProperty
public static readonly DependencyProperty OnlyApplyToSillPopupProperty
Field Value
Properties
DefaultInnerVisibility
Gets or sets the visibility state that should be applied to inner content elements when keyboard shortcuts are disabled. Defaults to Collapsed to hide content when shortcuts are not active.
public Visibility DefaultInnerVisibility { get; set; }
Property Value
OnlyApplyToSillPopup
Gets or sets a value indicating whether the shortcut badge should only get displayed when the element is not in the WindowSill bar.
public bool OnlyApplyToSillPopup { get; set; }