RevealBrush.TargetTheme Property

Definition

Important

RevealBrush is available for use in the operating systems specified in the Requirements section. However, we do not recommend its use as it may be altered or unavailable in subsequent versions.

Gets or sets a value that specifies the theme used to draw the brush and light, to ensure that the correct composition effect recipe is used for the desired theme.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property ApplicationTheme TargetTheme { ApplicationTheme get(); void set(ApplicationTheme value); };
ApplicationTheme TargetTheme();

void TargetTheme(ApplicationTheme value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ApplicationTheme::Light")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ApplicationTheme::Light")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ApplicationTheme::Light")]
ApplicationTheme TargetTheme();

void TargetTheme(ApplicationTheme value);
public ApplicationTheme TargetTheme { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ApplicationTheme::Light")]
public ApplicationTheme TargetTheme { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ApplicationTheme::Light")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ApplicationTheme::Light")] set; }
Public Property TargetTheme As ApplicationTheme

Property Value

An ApplicationTheme value.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Applies to