需要 WPF 渐变选择器的示例
我正在寻找 WPF 渐变选择器示例和源代码。
目标是允许 WPF 应用程序的用户选择用于背景或前景的渐变画笔。我在 Blend(对于普通用户来说太混乱)和 Photo Shop 中见过选择器。我正在寻找与作为 WPF 对话框实现的 Photo Shop 选择器类似的 WPF 实现。
任何指向好的例子的指示都非常感谢。
谢谢。
I'm looking for a WPF Gradient Picker example and source code.
The goal is to allow the user of a WPF application to pick the gradient brush to use for a background or foreground. I've seen pickers in Blend (too confusing for a casual user) and Photo Shop. I'm looking for a WPF implementation of something along the line of the Photo Shop picker implemented as a WPF dialog box.
Any pointers to good examples much appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 CodeProject 上找到了它:.Net Protoshop 式渐变选择器。享受 ;)
Found it, this one too on the CodeProject: .Net Protoshop-like gradient picker. Enjoy ;)
随机渐变壁纸生成器。我能找到的最接近的东西...不幸的是它只有四个可能的梯度停止点,每个角都有一个...也许值得查看代码,并获得一些提示...
Random gradient wallpaper generator. closest thing I could find... unfortunately it only has four possible gradient stops, one in each corner... worth looking at the code perhaps, and getting a few tips...
就自定义控件而言,这似乎很容易编码。
只需要一个可以更改背景的画布,以及一些其他用于更改颜色和停止点的控件。
It seems like something that would be pretty easy to code, in terms of a custom control.
Just have a canvas that you change the background of, with some other controls for changing the colour and the stop points.