PipelineBuilder.Effect Method

Definition

Overloads

Effect(Func<IGraphicsEffectSource,Task<IGraphicsEffectSource>>, IEnumerable<String>, IEnumerable<BrushProvider>)

Applies a custom effect to the current pipeline

Effect(Func<IGraphicsEffectSource,IGraphicsEffectSource>, IEnumerable<String>, IEnumerable<BrushProvider>)

Applies a custom effect to the current pipeline

Effect(Func<IGraphicsEffectSource,Task<IGraphicsEffectSource>>, IEnumerable<String>, IEnumerable<BrushProvider>)

Applies a custom effect to the current pipeline

public Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder Effect (Func<Windows.Graphics.Effects.IGraphicsEffectSource,System.Threading.Tasks.Task<Windows.Graphics.Effects.IGraphicsEffectSource>> factory, System.Collections.Generic.IEnumerable<string> animations = default, System.Collections.Generic.IEnumerable<Microsoft.Toolkit.Uwp.UI.Media.Pipelines.BrushProvider> initializers = default);
member this.Effect : Func<Windows.Graphics.Effects.IGraphicsEffectSource, System.Threading.Tasks.Task<Windows.Graphics.Effects.IGraphicsEffectSource>> * seq<string> * seq<Microsoft.Toolkit.Uwp.UI.Media.Pipelines.BrushProvider> -> Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder
Public Function Effect (factory As Func(Of IGraphicsEffectSource, Task(Of IGraphicsEffectSource)), Optional animations As IEnumerable(Of String) = Nothing, Optional initializers As IEnumerable(Of BrushProvider) = Nothing) As PipelineBuilder

Parameters

factory
Func<Windows.Graphics.Effects.IGraphicsEffectSource,Task<Windows.Graphics.Effects.IGraphicsEffectSource>>

An asynchronous Func<T,TResult> that takes the current Windows.Graphics.Effects.IGraphicsEffectSource instance and produces a new effect to display

animations
IEnumerable<String>

The list of optional animatable properties in the returned effect

initializers
IEnumerable<BrushProvider>

The list of source parameters that require deferred initialization (see Windows.UI.Composition.CompositionEffectSourceParameter for more info)

Returns

A new PipelineBuilder instance to use to keep adding new effects

Applies to

Effect(Func<IGraphicsEffectSource,IGraphicsEffectSource>, IEnumerable<String>, IEnumerable<BrushProvider>)

Applies a custom effect to the current pipeline

public Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder Effect (Func<Windows.Graphics.Effects.IGraphicsEffectSource,Windows.Graphics.Effects.IGraphicsEffectSource> factory, System.Collections.Generic.IEnumerable<string> animations = default, System.Collections.Generic.IEnumerable<Microsoft.Toolkit.Uwp.UI.Media.Pipelines.BrushProvider> initializers = default);
member this.Effect : Func<Windows.Graphics.Effects.IGraphicsEffectSource, Windows.Graphics.Effects.IGraphicsEffectSource> * seq<string> * seq<Microsoft.Toolkit.Uwp.UI.Media.Pipelines.BrushProvider> -> Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder
Public Function Effect (factory As Func(Of IGraphicsEffectSource, IGraphicsEffectSource), Optional animations As IEnumerable(Of String) = Nothing, Optional initializers As IEnumerable(Of BrushProvider) = Nothing) As PipelineBuilder

Parameters

factory
Func<Windows.Graphics.Effects.IGraphicsEffectSource,Windows.Graphics.Effects.IGraphicsEffectSource>

A Func<T,TResult> that takes the current Windows.Graphics.Effects.IGraphicsEffectSource instance and produces a new effect to display

animations
IEnumerable<String>

The list of optional animatable properties in the returned effect

initializers
IEnumerable<BrushProvider>

The list of source parameters that require deferred initialization (see Windows.UI.Composition.CompositionEffectSourceParameter for more info)

Returns

A new PipelineBuilder instance to use to keep adding new effects

Applies to