Ribbon in WinForms C# .Net 4.0

大城市里の小女人 提交于 2019-12-18 16:51:56

问题


Does Microsoft have ribbon control for non-Office applications? 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.


回答1:


Microsoft makes one for WPF that you can download here.

There is an open source ribbon that should work for traditional WinForms.




回答2:


Microsoft have made a bit of a mess of providing a Ribbon control. 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.

There seem to be more options in the WPF area if that helps:

  1. WPF - Microsoft Ribbon for WPF October 2010, this replacesWPF Ribbon Preview
  2. New .NET 4.5 WPF Ribbon - RC but at least it is in the framework
  3. Fluent Ribbon Control Suite

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:

  1. Commercial library: ComponentOne Ribbon
  2. Commercial library: Infragistics WinToolbars
  3. Blog about using the Microsoft Windows 7 SDK ribbon
  4. CodeProject article
  5. CodeProject post using the Windows 7 SDK



回答3:


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.

There's a complete package available on CodePlex that's active and full featured. 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.



来源:https://stackoverflow.com/questions/6652330/ribbon-in-winforms-c-sharp-net-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!