开发者

Understanding Brushes in WPF

开发者 https://www.devze.com 2023-02-12 16:16 出处:网络
Beside SolidColorBrush, LinearGradientBrush, and RadialGradientBrush there are also three other types of brushes:

Beside SolidColorBrush, LinearGradientBrush, and RadialGradientBrush there are also three other types of brushes:

  • VisualBrush,
  • DrawingBrush,
  • and ImageBrush.

The first three types are self-explanatory. I've some troubles to understand VisualBru开发者_开发百科sh, DrawingBrush, and ImageBrush. Maybe it's easier to understand the purpose of these brushes. What are the best practices for these brushes? Are there any canonical examples? When should I use these brushes?


There is a good page about the different WPF brushes in the MSDN here. Have you seen that yet? Maybe this will answer a few of your questions

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号