视觉工作室控件
有没有办法下载更多控件或任何东西,因为我在其他程序中看到了一些我认为在工具箱中没有看到的东西。你能下载新的吗,或者公司是否以某种方式定制了一个控件?如果是定制的,有没有我可以看一下的教程来告诉我如何制作自己的?
Is there a way to download more controls or anything, because I have seen a few things in other programs I don't think I've seen in the toolbox. Can you download new ones, or did the company somehow custom make a control? If it was custom made, are there any tutorials I can take a look at that tell how to make your own?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一些公司为 Winforms 提供第三方控件 - Telerik 是我所知道的一家。
就我个人而言,我更喜欢基于现有的 WinForms 控件制作自己的控件,因为我对它们有更多的控制权 - 这可以防止我的产品出现无法修复的错误。我还可以调整控件以完全满足我的需要,而不是选择最接近的匹配。如果您有经验,构建自定义控件相对容易。
CodeProject 上有一个基本教程,它展示了如何创建一个花哨的按钮。之后,您应该能够弄清楚如何自定义更复杂的控件。
旁注:
虽然如果您有时间练习的话,在 WinForms 中开发自定义控件相当容易,但 WPF 是用于构建自定义控件的更好的框架。 WPF 控件是专门为自定义而设计的,因此具有更多的灵活性。
Some companies make third party controls for Winforms - Telerik is one I know of.
Personally, I prefer to make my own controls based on the existing WinForms ones, as I have more control over them - this prevents my products from having bugs which just can't be fixed. I can also tweak the controls to do exactly what I need, rather than choosing a closest match. Building custom controls is relatively easy if you have the experience.
There is a basic tutorial on CodeProject which shows how to create a fancy Button. After that you should be able to figure out how to customize more complex controls.
Side-note:
While it's reasonably easy to develop custom controls in WinForms if you have the time to practice, WPF is a much better framework for building custom controls. WPF controls are designed specifically for customization, so there is a lot more flexibility.