ImageThemingUtilities.ImageBackgroundColorProperty Field

Definition

Gets or sets the Color used for image theming. This target color is used to map the "halo" color in an image with the target background color. This value should be attached on the same UIElement that the Background color is set on when images are drawn directly on that Background. The reason Background is not used directly is twofold:

  1. Backgrounds which are set to Transparent would require a visual tree walk to find the real background.
  2. Background is a Brush, not a Color, which would require interpretation to arrive at a Color instead.
  3. The ultimate background the image is drawn on may not be the desired image to use for theming, for example when a selection brush is conditionally shown in a 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 

Field Value

Applies to