我正在寻找标准WinForms ToolStrip控件的替代品,因为这个标准工具栏控件看起来已经过时了。
例如,DevExpress有一个功能区控件,但这并不是一个完全等效的控件。
我确信一定有许多为WinForms定制的工具栏,但很难找到。虽然我可以创建自己的控件,但这并不总是最好的解决方案。
我正在寻找标准WinForms ToolStrip控件的替代品,因为这个标准工具栏控件看起来已经过时了。
例如,DevExpress有一个功能区控件,但这并不是一个完全等效的控件。
我确信一定有许多为WinForms定制的工具栏,但很难找到。虽然我可以创建自己的控件,但这并不总是最好的解决方案。
可以使用从ToolStripRenderer
派生的类来自定义渲染.NetToolStrip
控件。
这篇CodeProject文章展示了一个例子。提供了一个自定义的ToolStripRenderer
,它将Tools Strip
控件渲染为Office 2007的一部分。源代码可用。
您还可以使用旧的MainMenu
、ContextMenu
和Toolbar
类,而不是Toolstrip
控件。这些控件以当前操作系统样式呈现。
注意:这些不是直接替换,因为它们对strip控件具有不同的API,因此如果您的应用程序已经开发得相当成熟,这将不是最简单的解决方案。
看看KryptonToolkit。它与Office 2007等一起提供,内置于调色板中,通过将ToolStrip控件的RenderMode属性设置为ManagerRenderMode,可以与标准ToolStrip控制一起使用。
试试.NET ToolStrip自定义程序。它可以自动为ToolStrip生成颜色主题并将其保存到C#文件中。它为一些常见主题(如Office 2077、Office XP等)提供了预设。
I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...
I ve successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs ...
Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...
I have a DataTable that has several DataColumns and DataRow. Now i would like to handle an event when cell of this DataRow is changed. How to do this in c#?
How do you force a DataGridView to release its reference to a bound DataSet? We have a rather large dataset being displayed in a DataGridView and noticed that resources were not being freed after the ...
I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...
When I m trying to change the default Image of a Control on Windows Forms in Form Designer (no matter where on which control) I get this error: Error message: An item with the same key has ...
I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.