ImageThemingUtilities.ImageBackgroundColorProperty 字段

定义

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

public: static initonly System::Windows::DependencyProperty ^ ImageBackgroundColorProperty;
public static readonly System.Windows.DependencyProperty ImageBackgroundColorProperty;
 staticval mutable ImageBackgroundColorProperty : System.Windows.DependencyProperty
Public ReadOnly ImageBackgroundColorProperty As DependencyProperty 

字段值

DependencyProperty

适用于