Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道 WPF 是否有任何额外的渐变画笔可用,例如轮廓填充?甚至是否有可能制造一个?线性和径向并不总是以所需的方式填充形状。我注意到两者都派生自System.Windows.Media.GradientBrush这表明它可能会做得更多。我知道 Expression SDK 中有额外的效果,但没有任何额外的画笔类型。
该线程处理类似的问题。基本上,您不能从 Brush 继承。