Skip to content
cs
public sealed class KeyVisual2 : Control

Attributes

Name
KeyVisualState
Content
RenderKeyAsGlyph
Style

Example

xml
<dev:KeyVisual2 Content="Ctrl+F5" />
<dev:KeyVisual2 Content="Ctrl+F5" KeyVisualState="Error" />
<dev:KeyVisual2 Content="Ctrl+F5" KeyVisualState="Warning"/>

<dev:KeyVisual2 Content="Win"/>
<dev:KeyVisual2 Content="Copilot"/>

Content is an object, you can pass string or int, some of string or int has built-in icons.

String

Name
Up
Down
Left
Right
Copilot
Office
Win
Windows
RightWindows
LeftWindows

Int

NameRemark
13Enter
8Back
16, 160, 161Shift
38Up
40Down
37Left
39Right
91, 92LeftWindows, RightWindows

Demo

you can run demo and see this feature.

KeyVisual

Released under the MIT License.