Hs.KeyBoard.WPF
2.0.3
See the version list below for details.
dotnet add package Hs.KeyBoard.WPF --version 2.0.3
NuGet\Install-Package Hs.KeyBoard.WPF -Version 2.0.3
<PackageReference Include="Hs.KeyBoard.WPF" Version="2.0.3" />
paket add Hs.KeyBoard.WPF --version 2.0.3
#r "nuget: Hs.KeyBoard.WPF, 2.0.3"
// Install Hs.KeyBoard.WPF as a Cake Addin #addin nuget:?package=Hs.KeyBoard.WPF&version=2.0.3 // Install Hs.KeyBoard.WPF as a Cake Tool #tool nuget:?package=Hs.KeyBoard.WPF&version=2.0.3
Blog:https://www.cnblogs.com/Hdsome/p/17039906.html 说明: 1、支持执行前台事件EnterEvent="NumericKeyboardBehavior_EnterEvent" 2、支持命令绑定EnterCommand="{Binding CommandSearch, ElementName=main}" 3、支持自定义回车文本EnterText="搜索" 4、支持获取焦点清空输入框内容FocusedClearText="True" 5、支持可拖动键盘位置功能 6、支持执行命令后键盘继续显示功能EnterCloseFlag="True" 7、支持窗口拖动键盘同步移动 8、增加支持netcore3.1,net5.0框架
用法:
1、申明 xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:keyboard="clr-namespace:Hs.KeyBoard.WPF.Behavior;assembly=Hs.KeyBoard.WPF"
2、使用
<TextBox
Text="Number">
<i:Interaction.Behaviors>
<keyboard:NumericKeyboardBehavior EnterText="Search"/>
</i:Interaction.Behaviors>
</TextBox>
<TextBox
Text="Letter">
<i:Interaction.Behaviors>
<keyboard:KeyboardBehavior
EnterText="Search" />
</i:Interaction.Behaviors>
</TextBox>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net5.0-windows7.0 is compatible. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.39)
-
net5.0-windows7.0
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.39)
-
net6.0-windows7.0
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.39)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.