Share via


SecondaryTileVisualElements.BackgroundColor Property

Definition

Gets or sets the secondary tile's background color.

public:
 property Color BackgroundColor { Color get(); void set(Color value); };
Color BackgroundColor();

void BackgroundColor(Color value);
public Color BackgroundColor { get; set; }
var color = secondaryTileVisualElements.backgroundColor;
secondaryTileVisualElements.backgroundColor = color;
Public Property BackgroundColor As Color

Property Value

The background color. Specify in #ffffff format.

For Windows Phone 8.x app, set this value to "transparent" to use the system's accent color, which is chosen by the user in Settings.

Examples

The following lines show different ways to express the color through this property.

secondaryTileVisualElements.BackgroundColor = Windows.UI.Color.Magenta;
secondaryTileVisualElements.BackgroundColor = Windows.UI.Color.FromArgb(255, 255, 255, 255);
secondaryTileVisualElements.BackgroundColor(Windows::UI::Colors::Magenta());
secondaryTileVisualElements.BackgroundColor(Windows::UI::ColorHelper::FromArgb(0, 255, 255, 120));
secondaryTileVisualElements->BackgroundColor = Windows::UI::Colors::Magenta;
secondaryTileVisualElements->BackgroundColor = Windows::UI::ColorHelper::FromArgb(0, 255, 255, 120);

Remarks

If this property is not set, its value is inherited from the background color of the parent app's tile.

Applies to

See also