简体   繁体   English

如何在WinForms C#中创建Metro ui切换开关控件?

[英]how to create a Metro ui toggle switch control in winforms c#?

im trying to implement a toggle switch control in winforms c# i want to recreate the windows 8 pc setting toggle switch control as a metro ui (microsoft design style...whatever!) 我试图在Winforms C#中实现一个拨动开关控件,我想将Windows 8 pc设置拨动开关控件重新创建为Metro UI(Microsoft设计风格...无论如何!)

http://cloud.addictivetips.com/wp-content/uploads/2012/03/Windows-8-PC-Settings-Sync.png http://cloud.addictivetips.com/wp-content/uploads/2012/03/Windows-8-PC-Settings-Sync.png

i need help or direction how to start to create the control? 我需要帮助或指导,如何开始创建控件?

you can look at my project at github: https://github.com/viperneo/winforms-modernui 您可以在github上查看我的项目: https : //github.com/viperneo/winforms-modernui

i have implemented an toggle switch control there 我在那里实现了拨动开关控制

The best way to use these type of components, is using component dlls that have the feature already worked and developed with optimal performance, check these: 使用这些类型的组件的最佳方法是使用具有已运行且以最佳性能开发的功能的组件dll,请检查以下各项:

http://www.devcomponents.com/ http://www.devexpress.com/Subscriptions/DXperience/WhatsNew2012v1/winforms.xml http://www.devcomponents.com/ http://www.devexpress.com/Subscriptions/DXperience/WhatsNew2012v1/winforms.xml

However, you can find open source projects, or examples of how to develop this in source code repositories like codeplex and codeproject, see this: 但是,您可以在开放源代码项目中找到示例,或在诸如Codeplex和Codeproject之类的源代码存储库中找到如何开发此示例,请参见:

http://www.codeplex.com/site/search?query=metro%20components&ac=3 http://www.codeplex.com/site/search?query=metro%20components&ac=3

there is only one detail ... as seen in the link above, you will find more resources for these type of development in WPF. 只有一个细节...如上面的链接所示,您将在WPF中找到更多用于此类开发的资源。

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

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