ImageThemingUtilities.ImageBackgroundColorProperty Field
Gets or sets the color used for image theming. The target color is used to map the "halo" color in an image with the target background color. It should be attached on the same UIElement that the gackground color is set on when images are drawn directly on that Background. The reasons why the background is not used directly:
1. Backgrounds that are set to Transparent would require a visual tree walk to find the real background.
2. The 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.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared ReadOnly ImageBackgroundColorProperty As DependencyProperty
public static readonly DependencyProperty ImageBackgroundColorProperty
public:
static initonly DependencyProperty^ ImageBackgroundColorProperty
static val ImageBackgroundColorProperty: DependencyProperty
public static final var ImageBackgroundColorProperty : DependencyProperty
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.