C# WPF 功能区:RibbonTextBox 与 TextBox
安装 Microsoft Ribbon for WPF 后,我创建了一个 WPF 功能区应用程序。对于文本框,我可以选择“ribbon:RibbonTextBox”或“TextBox”——它们对我来说似乎作用相同。有人知道两者之间的区别吗?
After installing Microsoft Ribbon for WPF, I create a WPF Ribbon Application. For textbox, I have choices of "ribbon:RibbonTextBox" or "TextBox" - they seems to work the same to me. Anyone know of the difference between the two?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RibbonTextBox 类实现 ICommandSource,使其能够与 WPF 命令框架集成。
例如,当文本框具有输入焦点并且按下
RETURN
键时可以调用命令,或者当无法执行其关联的命令时文本框可以禁用自身。The RibbonTextBox class implements ICommandSource, which allows it to integrate with the WPF command framework.
For instance, a command can be invoked when the text box has the input focus and the
RETURN
key is pressed, or the text box can disable itself when its associated command cannot be executed.