ImageThemingUtilities.ImageBackgroundColor 附加属性

定义

获取或设置图像主题使用的颜色。 目标颜色用于将图像中的 "光环" 颜色映射为目标背景色。 当直接在该背景上绘制图像时,应将其连接到与 gackground 颜色设置相同的 UIElement。 不会直接使用背景的原因:1。 设置为透明的背景需要可视化树遍历才能找到实际背景。2。 背景是一个画笔,而不是一种颜色,这将要求解释为一种颜色。3。 绘制图像的最终背景可能不是要用于主题的所需图像,例如,在 TreeView 中有条件地显示选择画笔。

see GetImageBackgroundColor, and SetImageBackgroundColor
see GetImageBackgroundColor, and SetImageBackgroundColor
see GetImageBackgroundColor, and SetImageBackgroundColor

适用于