简体   繁体   English

WinForms C#.Net 4.0 中的功能区

[英]Ribbon in WinForms C# .Net 4.0

Does Microsoft have ribbon control for non-Office applications? Microsoft 是否具有针对非 Office 应用程序的功能区控件? If not is there any that are available for free?如果没有,有没有免费的?

I like that component and would like to use it my WinForm 4.0 application.我喜欢那个组件并且想在我的 WinForm 4.0 应用程序中使用它。

Microsoft makes one for WPF that you can download here . Microsoft 为 WPF 制作了一款,您可以在此处下载。

There is an open source ribbon that should work for traditional WinForms.有一个适用于传统 WinForms 的开源功能区

Microsoft have made a bit of a mess of providing a Ribbon control. Microsoft 在提供 Ribbon 控件方面做得有些混乱。 Initially it had some very complex licence conditions , these may be relaxed now but the control is not as easily available as some of their recent NuGet deployed goodies.最初它有一些非常复杂的许可条件,现在可能会放宽,但控制不像他们最近部署的一些NuGet好东西那样容易获得。

There seem to be more options in the WPF area if that helps:如果有帮助的话,WPF 区域中似乎还有更多选项:

  1. WPF - Microsoft Ribbon for WPF October 2010 , this replaces WPF Ribbon Preview WPF -用于 WPF 2010 年 10 月的 Microsoft 功能区,它取代了WPF 功能区预览
  2. New .NET 4.5 WPF Ribbon - RC but at least it is in the framework 新 .NET 4.5 WPF 功能区- RC 但至少它在框架中
  3. Fluent Ribbon Control Suite Fluent 色带控制套件

In general, WinForms seems to be a dead-end and I wouldn't expect to see Microsoft invest too much in it but libraries/examples do exist:一般来说,WinForms 似乎是一个死胡同,我不希望看到微软在它上面投入太多,但库/示例确实存在:

  1. Commercial library: ComponentOne Ribbon商业图书馆: ComponentOne Ribbon
  2. Commercial library: Infragistics WinToolbars商业图书馆: Infragistics WinToolbars
  3. Blog about using the Microsoft Windows 7 SDK ribbon关于使用Microsoft Windows 7 SDK功能区的博客
  4. CodeProject article 代码项目文章
  5. CodeProject post using the Windows 7 SDK CodeProject使用 Windows 7 SDK 发布

The one mentioned on CodePlex was a good first effort but there's been no release since 2009 and it doesn't offer much functionality. CodePlex 上提到的第一次尝试是一个很好的尝试,但自 2009 年以来没有发布过,而且它没有提供太多功能。

There's a complete package available on CodePlex that's active and full featured. CodePlex 上有一个完整的 package 可用,它是活动的且功能齐全。 You can get it here .你可以在这里得到它。

This is a .NET wrapper around the Windows 7 Ribbon Control and while it does require the Windows SDK to compile, it works great for WinForms apps that want to incorporate a ribbon without incurring the overhead cost of a commercial product. This is a .NET wrapper around the Windows 7 Ribbon Control and while it does require the Windows SDK to compile, it works great for WinForms apps that want to incorporate a ribbon without incurring the overhead cost of a commercial product.

I'd suggest commercial UI libraries by DevExpress:我建议 DevExpress 的商业 UI 库:

You can download their free 30-day trial at https://www.devexpress.com/try您可以在https://www.devexpress.com/try下载他们的 30 天免费试用版

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM