是否可以禁用功能区控件上的应用程序菜单? (WPF)

发布于 2024-08-04 13:57:31 字数 112 浏览 2 评论 0原文

有没有办法禁用应用程序菜单(左上角的圆圈),以便用户无法单击它?

我对此完全没有用处,并且想不出任何可以使用它的东西,我找不到任何选项来禁用它。

请帮忙

非常感谢

Is there a way to disable to Application Menu, the circle thing on the left hand corner, so the user can't click on it?

I have absolutely no use on that, and cannot think of anything I can use that, I can't find any options to disable it.

Please help

Many thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

酒浓于脸红 2024-08-11 13:57:31

我做了类似的事情,并设法删除了应用程序菜单。请检查这是否是您想要的方式。

<r:Ribbon.ApplicationMenu>
    <r:RibbonApplicationMenu Visibility="Collapsed" >
    </r:RibbonApplicationMenu>
</r:Ribbon.ApplicationMenu>

I did something like this, and managed to remove the Application Menu. Do check if this is the way you wanted it to be.

<r:Ribbon.ApplicationMenu>
    <r:RibbonApplicationMenu Visibility="Collapsed" >
    </r:RibbonApplicationMenu>
</r:Ribbon.ApplicationMenu>
夜唯美灬不弃 2024-08-11 13:57:31

在 xaml 文件中发布代码:

<Ribbon ApplicationMenu="{x:Null}">
       <TabControl></TabControl>
</Ribbon>

In to xaml file post the code:

<Ribbon ApplicationMenu="{x:Null}">
       <TabControl></TabControl>
</Ribbon>
獨角戲 2024-08-11 13:57:31

我认为这将违反 Microsoft 使用功能区界面的许可。

在这里查看:http://msdn.microsoft.com/en-us /office/aa973809.aspx(已死)

2012-09-11 存档)

面向开发人员的 Office UI 许可

概述

Office UI 许可计划是为软件开发人员设计的
希望将 Office UI 作为软件组件实现和/或
将 Office UI 合并到他们自己的应用程序中。

使用 Microsoft 声称的知识产权的许可
当软件开发人员不使用其中之一时,需要 Office UI
Microsoft 提供的 UI 实现包含
单独的许可证(当前 Microsoft Windows 7 API
实现或 .NET 中的 Microsoft WPF 实现
框架4)。

当软件开发者希望使用时,还需要许可证
Office 2010 UI 中其他元素未提供的元素
实现。

如何在自己的软件中实现 Office UI

目前软件的方式主要分为三类
开发人员在自己的应用程序中实现 Office UI 或
组件。

  • 使用 Microsoft Windows 7 风景功能区实现

    有关风景功能区的详细信息,请访问 MSDN 代码库。使用
    Scenic Ribbon 实施由 Microsoft Windows 管理
    SDK EULA,不要求开发者接受条款
    此网站上的 Office UI 许可证。

  • 使用 Microsoft Ribbon 进行 WPF 实施

    有关用于 WPF 实施的 Microsoft Ribbon 的详细信息(通过 MS 下载提供)
    可以在 MSDN 库中找到。使用 Microsoft Ribbon for WPF
    受类似于 .NET Framework 的 EULA 管理。这
    发布不需要开发者接受Office条款
    本网站的 UI 许可证。

  • 使用 Microsoft 基础类 (MFC) 功能区、自行构建或使用第三方组件

    此类别中的所有选项
    需要接受本网站上的 Office UI 许可条款。这
    该类别的其他好处包括能够实施
    跨更多平台,使用 Office 2010 元素的能力
    未合并到其他实现中的 UI,以及
    能够使用可能有其他好处的第三方组件
    作为开发人员的您。

    如果您认为此类别合适,您应该阅读这些材料
    在此网站上,特别是 Office UI 许可证和 Office UI
    设计指南。您可以通过以下方式在网络上搜索组件供应商
    搜索“Microsoft Ribbon 组件供应商”等术语。

但我也没有任何用处,所以我只是将“退出”选项放在那里。


编辑:

如果仅在控件的实现中需要应用程序菜单,或者您是否必须在所有使用功能区的应用程序中使用它,这会令人困惑?

有些事情很清楚,例如:您必须有一个“主页”选项卡,并且当应用程序启动时,它必须是选定的选项卡(就像在 Office 2007 中一样)。但其他一些事情......有点猜谜游戏。

我刚刚向 Microsoft 的 Office UI 小组发送了一封电子邮件,要求对此进行一些澄清。答案如下:看起来应用程序菜单不是可选的:

感谢您提交问题。设计指南确实
规定应用程序菜单是必需的,并且是关键
Ribbon UI 实现的元素。不同的控制集可能
允许隐藏或禁用 UI 元素,但是
期望您完成的应用程序仍将包含
应用程序菜单元素(您可能会寻求自己实现它作为
窗框的一部分,或通过其他方式)。


编辑:许可证已停用:

https://law.stackexchange.com/questions/18329/what-is-the-status-of-microsoft-ribbon-licensing-as-of-2017

I believe that would go against the Microsoft license for using the ribbon interface.

Check it out here: http://msdn.microsoft.com/en-us/office/aa973809.aspx (dead)

(Archive from 2012-09-11)

Office UI licensing for developers

Overview

The Office UI licensing program is designed for software developers
who wish to implement the Office UI as a software component and/or
incorporate the Office UI into their own applications.

A license to use the Microsoft-claimed intellectual property in the
Office UI is required when the software developer does not use one of
the Microsoft-provided implementations of the UI that carries a
separate license (currently either the Microsoft Windows 7 API
implementation or the Microsoft WPF implementation in the .NET
framework 4).

A license is also required when the software developer wishes to use
elements of the Office 2010 UI that are not provided by those other
implementations.

How to implement the Office UI in your own software

There are currently three primary categories of ways for a software
developer to implement the Office UI in their own application or
component.

  • Use the Microsoft Windows 7 Scenic Ribbon implementation

    Details about the Scenic Ribbon can be found on the MSDN Code Gallery. Use of
    the Scenic Ribbon implementation is governed by the Microsoft Windows
    SDK EULA and does not require a developer to accept the terms of the
    Office UI license on this site.

  • Use the Microsoft Ribbon for WPF Implementation

    Details about the Microsoft Ribbon for WPF Implementation (delivered via MS Downloads)
    can be found in the MSDN Library. Use of the Microsoft Ribbon for WPF
    is governed by a EULA similar to that of the .NET Framework. This
    release does not require developers to accept the terms of the Office
    UI license on this site.

  • Use Microsoft Foundation Classes (MFC) Ribbon, build it yourself, or use a third-party component

    All of the options in this category
    require acceptance of the Office UI License terms on this site. The
    additional benefits of this category include the ability to implement
    across more platforms, the ability to use elements of the Office 2010
    UI that are not incorporated in the other implementations, and the
    ability to use a third-party component that may have other benefits to
    you as a developer.

    If you find this category appropriate you should read the materials
    on this site, specifically the Office UI License and the Office UI
    Design Guidelines. You may search the web for component vendors by
    searching for terms like "Microsoft Ribbon component vendor".

But I don't have any use for it either, so I just put the "Exit" option in there.


EDIT:

It was confusing if the Application Menu required only in the IMPLEMENTATION of the control, or do you have to USE IT in all applications that use a ribbon?

Some things are clear like: You HAVE to have a "Home" tab, and when the application starts, it HAS to be the selected tab (just like in Office 2007.) But some other things... Kind of a guessing game.

I just sent the Office UI group at Microsoft an e-mail asking for some clarification on this. Here's the answer: looks like the Application Menu is NOT optional:

Thank you for submitting your question. The design guidelines do
stipulate that the Application Menu is required and it is a critical
element of the Ribbon UI implementation. Different control sets may
allow for the hiding or disabling of the UI element, but the
expectation is that your finished application will still contain an
Application Menu element (you may seek to implement it yourself as
part of your window frame, or through other means).


EDIT: The license has been retired:

https://law.stackexchange.com/questions/18329/what-is-the-status-of-microsoft-ribbon-licensing-as-of-2017

原谅过去的我 2024-08-11 13:57:31
this.ultraToolbarsManager1.Office2007UICompatibility = false;
this.ultraToolbarsManager1.Ribbon.FileMenuStyle = Infragistics.Win.UltraWinToolbars.FileMenuStyle.None;

试试这个。它唯一使用的 Windows 申请表

this.ultraToolbarsManager1.Office2007UICompatibility = false;
this.ultraToolbarsManager1.Ribbon.FileMenuStyle = Infragistics.Win.UltraWinToolbars.FileMenuStyle.None;

Try this one. its Only used windows application form

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文