Windows Ribbon Framework 可以在没有标记的情况下使用吗?

Can Windows Ribbon Framework be used without markup?

到目前为止,我遇到的所有功能区框架使用示例都需要使用 uicc 创建和编译功能区标记。我想知道是否可以通过在代码(C、C++、C#)中添加功能区控件及其内容来手动构建功能区控件。

不,不使用 Windows 功能区框架。引用 the docs:

To initialize the Ribbon successfully, a compiled Ribbon markup file must be available as a resource. This markup file is an integral component of the Ribbon framework; it specifies the controls to use and their layout.

要以编程方式生成功能区,您必须使用不同的库,例如 DevExpress or FluentRibbon