PipelineBrush Class

Definition

A Windows.UI.Xaml.Media.Brush that renders a customizable Composition/Win2D effects pipeline

[Windows.UI.Xaml.Markup.ContentProperty(Name="Effects")]
public sealed class PipelineBrush : Microsoft.Toolkit.Uwp.UI.Media.XamlCompositionEffectBrushBase
[<Windows.UI.Xaml.Markup.ContentProperty(Name="Effects")>]
type PipelineBrush = class
    inherit XamlCompositionEffectBrushBase
Public NotInheritable Class PipelineBrush
Inherits XamlCompositionEffectBrushBase
Inheritance
Windows.UI.Xaml.Media.XamlCompositionBrushBase
PipelineBrush
Attributes
Windows.UI.Xaml.Markup.ContentPropertyAttribute

Constructors

PipelineBrush()

Fields

EffectsProperty

Identifies the dependency property.

Properties

Effects

Gets or sets the collection of effects to use in the current pipeline.

IsEnabled

Gets or sets a value indicating whether the current brush is using the provided pipeline, or the fallback color.

(Inherited from XamlCompositionEffectBrushBase)
Source

Gets or sets the source for the current pipeline (defaults to a BackdropSourceExtension with Windows.UI.Xaml.Media.AcrylicBackgroundSource.Backdrop source).

Methods

OnBrushRequested()

A method that builds and returns the PipelineBuilder pipeline to use in the current instance.

This method can also be used to store any needed EffectSetter<T> or EffectAnimation<T> instances in local fields, for later use (they will need to be called upon Windows.UI.Xaml.Media.XamlCompositionBrushBase.CompositionBrush). (Inherited from XamlCompositionEffectBrushBase)
OnCompositionBrushUpdated()

Invoked whenever the Windows.UI.Xaml.Media.XamlCompositionBrushBase.CompositionBrush property is updated.

(Inherited from XamlCompositionEffectBrushBase)
OnConnected() (Inherited from XamlCompositionEffectBrushBase)
OnDisconnected() (Inherited from XamlCompositionEffectBrushBase)
OnEnabledToggled(Boolean)

Updates the Windows.UI.Xaml.Media.XamlCompositionBrushBase.CompositionBrush property depending on the input value.

(Inherited from XamlCompositionEffectBrushBase)
OnPipelineRequested()

A method that builds and returns the PipelineBuilder pipeline to use in the current instance.

This method can also be used to store any needed EffectSetter<T> or EffectAnimation<T> instances in local fields, for later use (they will need to be called upon Windows.UI.Xaml.Media.XamlCompositionBrushBase.CompositionBrush). (Inherited from XamlCompositionEffectBrushBase)

Applies to