다음을 통해 공유


SecondaryTile.BackgroundColor 속성

정의

참고

BackgroundColor는 Windows 8.1 후 릴리스에서 변경되거나 사용할 수 없습니다. 대신 SecondaryTileVisualElements.BackgroundColor를 사용합니다.

타일의 배경색을 가져오거나 설정합니다.

public:
 property Color BackgroundColor { Color get(); void set(Color value); };
/// [get: Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [set: Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
Color BackgroundColor();

void BackgroundColor(Color value);
/// [get: Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
Color BackgroundColor();

void BackgroundColor(Color value);
public Color BackgroundColor { [Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; [Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] set; }
public Color BackgroundColor { [Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("BackgroundColor may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.BackgroundColor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] set; }
var color = secondaryTile.backgroundColor;
secondaryTile.backgroundColor = color;
Public Property BackgroundColor As Color

속성 값

배경색입니다.

특성

예제

다음 줄은 이 속성을 통해 색을 표현하는 다양한 방법을 보여줍니다.

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

설명

이 속성이 설정되지 않은 경우 해당 값은 부모 앱 타일의 배경색에서 상속됩니다.

적용 대상