Share via


AcrylicBrush.TintOpacity Property

Definition

Gets or sets the degree of opacity of the color tint.

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

public:
 property double TintOpacity { double get(); void set(double value); };
double TintOpacity();

void TintOpacity(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="AcrylicBrush::sc_defaultTintOpacity")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToZeroOneRange")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="AcrylicBrush::sc_defaultTintOpacity")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToZeroOneRange")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="AcrylicBrush::sc_defaultTintOpacity")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToZeroOneRange")]
double TintOpacity();

void TintOpacity(double value);
public double TintOpacity { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="AcrylicBrush::sc_defaultTintOpacity")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToZeroOneRange")]
public double TintOpacity { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="AcrylicBrush::sc_defaultTintOpacity")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToZeroOneRange")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="AcrylicBrush::sc_defaultTintOpacity")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToZeroOneRange")] set; }
Public Property TintOpacity As Double
<acrylicBrush TintOpacity="double"/>

Property Value

Double

double

The opacity expressed as a value between 0 and 1.0. The default value is 1.0, which is full opacity. 0 is transparent opacity.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallbackAttribute

Applies to