Hs.KeyBoard.WPF
2.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Hs.KeyBoard.WPF --version 2.0.2
NuGet\Install-Package Hs.KeyBoard.WPF -Version 2.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hs.KeyBoard.WPF" Version="2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hs.KeyBoard.WPF --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hs.KeyBoard.WPF, 2.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Hs.KeyBoard.WPF as a Cake Addin #addin nuget:?package=Hs.KeyBoard.WPF&version=2.0.2 // Install Hs.KeyBoard.WPF as a Cake Tool #tool nuget:?package=Hs.KeyBoard.WPF&version=2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
说明: 1、支持执行前台事件 2、支持命令绑定 3、支持修改回车文本显示 4、支持获取焦点清空输入框内容
用法:
1、申明
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:keyboard="clr-namespace:Hs.KeyBoard.WPF.Behavior;assembly=Hs.KeyBoard.WPF"
2、使用
<TextBox
FontSize="15"
Text="数字键盘">
<i:Interaction.Behaviors>
<keyboard:NumericKeyboardBehavior/>
</i:Interaction.Behaviors>
</TextBox>
<TextBox
Text="字母键盘">
<i:Interaction.Behaviors>
<keyboard:KeyboardBehavior
EnterText="搜索" />
</i:Interaction.Behaviors>
</TextBox>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
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.