如何完全为 Windows 窗体组件换肤?
我想创建自己的组件并完全设置它们的外观,以便它们不使用 Windows 中的任何样式。我使用的是 Mono,我希望皮肤在每个平台上看起来都一样。
是否有文章/教程/参考资料解释如何构建您自己的按钮组件,使其看起来像您想要的那样?
I would like to create my own components and skin them entirely so that they do not use any style from Windows. I am using Mono and I want the skin to look the same on each platform.
Are there articles/tutorials/references that explain how to build your own button component that looks the way you want it to?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,这是把别人的工作归功于自己,但这看起来不错:
自定义位图按钮
它正在处理其中的所有渲染自己的绘画事件(包括边框和渐变背景)。它还支持每个按钮状态,包括通常被忽略的“聚焦”状态。
Well, this is taking credit for someone else's work, but this looks like a good one:
Custom Bitmap Button
It is handling all the rendering in its own paint events (including the border and the gradient backgrounds). It's also supporting every button state, including the typically ignored "focused" state.