开发者

Overlay/Mask UIElement

开发者 https://www.devze.com 2023-03-14 10:56 出处:网络
I have a ContentControl, which I use the Content Property to place some geometry inside (path, ellipses etc).

I have a ContentControl, which I use the Content Property to place some geometry inside (path, ellipses etc).

I need to make a "copy" of the content in a different color... for example, if i have a red ellipse inside the control, i would like to copy that ellipse in a blue color.

We do this when we have a colored pic, and we convert them to an black/white pic. I 开发者_JAVA技巧have thought about the visualBrush, but not the best aproach and until now, i havent find a good solution.

Any ideas?


Make two copies of the control, place them at the same spot, and then use the Visibility property to decide which one is visible. Change the BodyColor property on one of them to get the different color effect.

0

精彩评论

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

关注公众号