功能区控件样式设置
XAF模型编辑器的选项结点下面有个RibbonControlStyle设置,如图所示:
那么,每种选项效果与功能有什么区别呢,下面是通过官方文档进翻译的说明:
Ribbon Styles 功能区样式
The Ribbon Control supports a set of styles that differ in appearance, as well as behavior. To apply a style to a Ribbon Control, use the RibbonControl.RibbonStyle property.
Ribbon控件支持设置不同的样式以及行为,要应用样式到功能区控件,使用RibbonControl.RibbonStyle属性。

Office Universal
A Ribbon style inspired by the ribbon UI introduced in Microsoft "Office Universal" apps.
仿Office Universal功能区用户界面。
The Quick Access Toolbar is unavailable in this Ribbon style and the Application Button is displayed as the 'File' page header.
快速访问工具栏在此样式中无效,应用程序按钮显示为文件页标题。
Tablet Office
仿iPad版本的Microsoft Office功能区风格
Office 2013 Style
With this style applied, a Ribbon Control gets multiple unique features that include the following:
- A BackstageViewControl (invoked using an Application Button at the top left corner), which occupies the entire window and displays the 'Back' navigation button.
- The Full-Screen Mode, which automatically hides the Ribbon Control when the end-user is not currently using it, leaving only a thin bar at the top of the window.
应用此风格被后,功能区控件特性如下:
- 当BackstageView控件显示时(使用左上边角应用程序按钮执行时),窗口显示“后退”导航按导。
- 全屏模式下,使用了自动隐藏功能区控件时,当最终用户没有当前使用它时,鼠标离开后,只有一个细条显示在窗口上方。
译者注:XAF中并没有使用这个BackstageView控件。
Office 2010
A key feature of the Office2010 style is the use of a BackstageViewControl object instead of an ApplicationMenu.
A BackstageViewControl is also assigned to an Application Button using the RibbonControl.ApplicationButtonDropDownControl property.
To learn more about the differences between an Application Menu and a BackstageViewControl, please refer to the BackstageView Control topic.
Office2010风格一个关键特性是使用BackstageView控件而不是应用程序菜单
BackstageView控件是也附值给应用程序按钮使用RibbonControl.ApplicationButtonDropDownControl属性。
要学习不同更多关于应用程序菜单和BackstageView控件,请参考BackstageView控件主题。
MacOffice Paint Style for Ribbon
Key features of the new MacOffice style are:
新MacOffice风格主要特性是:
-
Items are arranged in two rows (instead of the traditional three rows) with group captions displayed at the top, rather than at the bottom.
-
项目被安排在2行(而不是传统的3行),项目标题显示在分组顶端,而不是在底部。
-
Page groups are never collapsed when the Ribbon's width is reduced. Instead, scroll buttons appear, which enable Ribbon scrolling.
-
当功能区宽度减少时,页分组从不折叠。相反,滚动按钮将显示,从而启用滚动功能。
-
Gallery items are horizontally arranged across one row and are scrolled horizontally.
-
图标项目水平排列在一行中,并且水平滚动
- Although page category captions are always hidden in the MacOffice style, the Ribbon control has a feature that collapses page categories using animation.
- 尽管MacOffice风格下页分类标题总是隐藏,但功能区控件具有使用动画折叠页面类别的功能。
Office 2007 Ribbon Control
This style emulates the Ribbon used in Microsoft Office 2007.
仿Microsoft Office 2007风格
For this style to function properly, assign an ApplicationMenu object to the Ribbon Control's Application Button.
要使此样式正常运行,请将应用程序菜单对象分配给功能区控件的应用程序按钮。
XAF开发成品案例参考
如果您觉得阅读本文对您有帮助,请点一下“推荐”按钮,您的“推荐”将是我最大的写作动力!欢迎各位转载,但是未经作者本人同意,转载文章之后必须在文章页面明显位置给出作者和原文连接,否则保留追究法律责任的权利。
作者博客: http://www.cnblogs.com/foreachlife
欢迎加入CIIP框架\XAF技术应用交流群: 336090194 群文件中有更多相关工具及文档资料
转载请注明出处。多谢!
欢迎加我微信: admiralcn 或扫码:

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· 周边上新:园子的第一款马克杯温暖上架
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
· 使用C#创建一个MCP客户端
2016-12-03 如何为CriteriaOperator过滤对象转换为lambda表达式,即:linq to xpo的动态where语句