WPF InputBindings

InputBindings:获取与此元素关联的输入绑定的集合。内容为一个或多个 InputBinding 元素(通常为 KeyBinding 或 MouseBinding 派生类)。 其中每个都应具有 Command 和 Gesture 属性集。

<Window.InputBindings>
        <KeyBinding Command="{Binding OpenRecorder}" CommandParameter="{Binding Path=., ElementName=StartupWindow}" Modifiers="Control" Key="N"/>
        <KeyBinding Command="{Binding OpenWebcamRecorder}" CommandParameter="{Binding ElementName=StartupWindow}" Modifiers="Control" Key="W"/>
        <KeyBinding Command="{Binding OpenBoardRecorder}" CommandParameter="{Binding ElementName=StartupWindow}" Modifiers="Control" Key="B"/>
        <KeyBinding Command="{Binding OpenEditor}" CommandParameter="{Binding ElementName=StartupWindow}" Modifiers="Control" Key="E"/>
        <KeyBinding Command="{Binding OpenOptions}" Modifiers="Control+Alt" Key="O"/>
        <MouseBinding Gesture="LeftDoubleClick" Command="{Binding DataContext.UpdateCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid}}" CommandParameter="{Binding SelectedItem.ID, ElementName=AlarmData}" />
</Window.InputBindings>

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
FluentUI WPF是一个用于Windows Presentation Foundation(WPF)的开源UI库,它提供了一套高质量的UI组件和样式,用于构建具有专业外观和用户体验的应用程序。Fluent UI的名称来源于Microsoft Fluent Design System,这是微软公司推出的新一代设计语言,旨在提供一致、现代和直观的用户体验。 Fluent UI WPF提供了以下主要功能和特点: 1. 丰富的UI组件:Fluent UI WPF提供了各种常用的UI组件,如按钮、文本框、标签、列表、网格、布局容器等,以及自定义控件和工具提示等。 2. 美观的视觉效果:Fluent UI WPF具有高度定制的样式和外观,提供了多种主题和视觉效果,可以满足不同风格和场景的需求。 3. 可扩展性:Fluent UI WPF提供了丰富的自定义选项,可以根据具体需求定制组件的外观和行为,以满足个性化的需求。 4. 良好的性能:Fluent UI WPF在设计时注重性能优化,能够高效地渲染和响应用户操作,同时支持高性能的数据绑定和布局管理。 5. 跨平台支持:Fluent UI WPF不仅适用于Windows平台,还支持其他平台(如MacOS和Linux)上的WPF应用程序开发。 要使用Fluent UI WPF,您需要了解WPF的基础知识和设计原则,并具备一定的C#编程经验。您可以使用NuGet包管理器将Fluent UI WPF组件集成到您的项目中,并按照文档和示例进行配置和使用。Fluent UI WPF的文档和示例资源可以在开源代码库中找到。 需要注意的是,Fluent UI WPF是一个开源库,但并非所有功能都完全免费。某些高级功能可能需要购买商业许可才能使用。因此,在决定使用Fluent UI WPF之前,请务必仔细阅读相关文档和许可协议。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值