مشاركة عبر


AcrylicBrush.TintLuminosityOpacity Property

Definition

Gets or sets the brightness amount between the TintColor and the underlying pixels behind the Acrylic surface.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Media.AcrylicBrush.TintLuminosityOpacity (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property IReference<double> ^ TintLuminosityOpacity { IReference<double> ^ get(); void set(IReference<double> ^ value); };
IReference<double> TintLuminosityOpacity();

void TintLuminosityOpacity(IReference<double> value);
public System.Nullable<double> TintLuminosityOpacity { get; set; }
var iReference = acrylicBrush.tintLuminosityOpacity;
acrylicBrush.tintLuminosityOpacity = iReference;
Public Property TintLuminosityOpacity As Nullable(Of Double)

Property Value

The amount of luminosity that is visible through the surface where Acrylic is applied.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

The TintLuminosityOpacity determines how much brightness, from the underlying pixels behind the Acrylic, to let through the blurred surface. A lower value means more brightness from the underlying pixels will be allowed through and a higher value means more brightness from the TintColor property will be applied across the Acrylic surface.

TintLuminosityOpacity also helps balance any blacks or whites behind the Acrylic.

Applies to