AcrylicBrush AcrylicBrush AcrylicBrush AcrylicBrush Class

Definition

Paints an area with a semi-transparent material that uses multiple effects including blur and a noise texture.

public : class AcrylicBrush : XamlCompositionBrushBase, IAcrylicBrush
public class AcrylicBrush : XamlCompositionBrushBase, IAcrylicBrush
Public Class AcrylicBrush Inherits XamlCompositionBrushBase Implements IAcrylicBrush
var acrylicBrush = new acrylicBrush();
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Constructors

AcrylicBrush() AcrylicBrush() AcrylicBrush() AcrylicBrush()

Initializes a new instance of the AcrylicBrush class.

public : AcrylicBrush()
public AcrylicBrush()
Public Sub New()
var acrylicBrush = new acrylicBrush();

Properties

AlwaysUseFallback AlwaysUseFallback AlwaysUseFallback AlwaysUseFallback

Gets or sets a value that specifies whether the brush is forced to the solid fallback color.

public : Platform::Boolean AlwaysUseFallback { get; set; }
public bool AlwaysUseFallback { get; set; }
Public ReadWrite Property AlwaysUseFallback As bool
var bool = acrylicBrush.alwaysUseFallback;
acrylicBrush.alwaysUseFallback = bool;
Value
Platform::Boolean bool bool bool

true to always replace the acrylic material with the solid fallback color. Otherwise, false. The default is false.

Remarks

By default, the acrylic material is replaced with a solid color when one of the fallback conditions is met (such as entering battery saver mode). You can set this property to true to always replace the acrylic material with a solid color. Setting this property will synchronously trigger a transition animation between the normal look and fallback color.

AlwaysUseFallbackProperty AlwaysUseFallbackProperty AlwaysUseFallbackProperty AlwaysUseFallbackProperty

Identifies the AlwaysUseFallback dependency property.

public : static DependencyProperty AlwaysUseFallbackProperty { get; }
public static DependencyProperty AlwaysUseFallbackProperty { get; }
Public Static ReadOnly Property AlwaysUseFallbackProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.AcrylicBrush.alwaysUseFallbackProperty;
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the AlwaysUseFallback dependency property.

BackgroundSource BackgroundSource BackgroundSource BackgroundSource

Gets or sets a value that specifies whether the brush samples from the app content or from the content behind the app window.

public : AcrylicBackgroundSource BackgroundSource { get; set; }
public AcrylicBackgroundSource BackgroundSource { get; set; }
Public ReadWrite Property BackgroundSource As AcrylicBackgroundSource
var acrylicBackgroundSource = acrylicBrush.backgroundSource;
acrylicBrush.backgroundSource = acrylicBackgroundSource;
Value
AcrylicBackgroundSource AcrylicBackgroundSource AcrylicBackgroundSource AcrylicBackgroundSource

A value of the enumeration that specifies whether the brush samples from the app content or from the content behind the app window.

BackgroundSourceProperty BackgroundSourceProperty BackgroundSourceProperty BackgroundSourceProperty

Identifies the BackgroundSource dependency property.

public : static DependencyProperty BackgroundSourceProperty { get; }
public static DependencyProperty BackgroundSourceProperty { get; }
Public Static ReadOnly Property BackgroundSourceProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.AcrylicBrush.backgroundSourceProperty;
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the BackgroundSource dependency property.

CompositionBrush CompositionBrush CompositionBrush CompositionBrush

Inherited from XamlCompositionBrushBase

Dispatcher Dispatcher Dispatcher Dispatcher

Inherited from DependencyObject

FallbackColor FallbackColor FallbackColor FallbackColor

Inherited from XamlCompositionBrushBase

FallbackColorProperty FallbackColorProperty FallbackColorProperty FallbackColorProperty

Inherited from XamlCompositionBrushBase

Opacity Opacity Opacity Opacity

Inherited from Brush

OpacityProperty OpacityProperty OpacityProperty OpacityProperty

Inherited from Brush

RelativeTransform RelativeTransform RelativeTransform RelativeTransform

Inherited from Brush

RelativeTransformProperty RelativeTransformProperty RelativeTransformProperty RelativeTransformProperty

Inherited from Brush

TintColor TintColor TintColor TintColor

Gets or sets the color tint for the semi-transparent acrylic material.

public : Color TintColor { get; set; }
public Color TintColor { get; set; }
Public ReadWrite Property TintColor As Color
var color = acrylicBrush.tintColor;
acrylicBrush.tintColor = color;
Value
Color Color Color Color

The color tint for the semi-transparent acrylic material.

TintColorProperty TintColorProperty TintColorProperty TintColorProperty

Identifies the TintColor dependency property.

public : static DependencyProperty TintColorProperty { get; }
public static DependencyProperty TintColorProperty { get; }
Public Static ReadOnly Property TintColorProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.AcrylicBrush.tintColorProperty;
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the TintColor dependency property.

TintOpacity TintOpacity TintOpacity TintOpacity

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

public : double TintOpacity { get; set; }
public double TintOpacity { get; set; }
Public ReadWrite Property TintOpacity As double
var double = acrylicBrush.tintOpacity;
acrylicBrush.tintOpacity = double;
<acrylicBrush TintOpacity="double"/>

Value
double double 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.

TintOpacityProperty TintOpacityProperty TintOpacityProperty TintOpacityProperty

Identifies the TintOpacity dependency property.

public : static DependencyProperty TintOpacityProperty { get; }
public static DependencyProperty TintOpacityProperty { get; }
Public Static ReadOnly Property TintOpacityProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.AcrylicBrush.tintOpacityProperty;
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the TintOpacity dependency property.

TintTransitionDuration TintTransitionDuration TintTransitionDuration TintTransitionDuration

Gets or sets the length of the automatic transition animation used when the TintColor changes.

public : TimeSpan TintTransitionDuration { get; set; }
public TimeSpan TintTransitionDuration { get; set; }
Public ReadWrite Property TintTransitionDuration As TimeSpan
var timeSpan = acrylicBrush.tintTransitionDuration;
acrylicBrush.tintTransitionDuration = timeSpan;
Value
TimeSpan TimeSpan TimeSpan TimeSpan

The length of the automatic transition animation used when the TintColor changes.

TintTransitionDurationProperty TintTransitionDurationProperty TintTransitionDurationProperty TintTransitionDurationProperty

Identifies the TintTransitionDuration dependency property.

public : static DependencyProperty TintTransitionDurationProperty { get; }
public static DependencyProperty TintTransitionDurationProperty { get; }
Public Static ReadOnly Property TintTransitionDurationProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.AcrylicBrush.tintTransitionDurationProperty;
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the TintTransitionDuration dependency property.

Transform Transform Transform Transform

Inherited from Brush

TransformProperty TransformProperty TransformProperty TransformProperty

Inherited from Brush

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Inherited from DependencyObject

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Inherited from DependencyObject

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Inherited from DependencyObject

OnConnected OnConnected OnConnected OnConnected

Inherited from XamlCompositionBrushBase

OnDisconnected OnDisconnected OnDisconnected OnDisconnected

Inherited from XamlCompositionBrushBase

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Inherited from DependencyObject

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Inherited from DependencyObject

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Inherited from DependencyObject

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Inherited from DependencyObject

See Also