视觉工作室控件

发布于 2024-10-10 23:14:16 字数 112 浏览 2 评论 0原文

有没有办法下载更多控件或任何东西,因为我在其他程序中看到了一些我认为在工具箱中没有看到的东西。你能下载新的吗,或者公司是否以某种方式定制了一个控件?如果是定制的,有没有我可以看一下的教程来告诉我如何制作自己的?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美男兮 2024-10-17 23:14:16

一些公司为 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文