Skip to content

)} )}

BrushAnimator.CreateAsync(Uri, RepeatBehavior, IProgress?) method

Defined in

Type: BrushAnimator Namespace: CrissCross.WPF.UI.Controls Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Overloads

  • 1. public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, IProgress<int>? progress = null)
  • 2. public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory, IProgress<int>? progress = null)
  • 3. public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior)
  • 4. public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory)

1. Overload

public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, IProgress<int>? progress = null)

Summary: Creates the asynchronous.

Parameters

NameTypeDescription
sourceUriUriThe source URI.
repeatBehaviorRepeatBehaviorThe repeat behavior.
progress = nullIProgress?The progress.

Returns: Task -- A BrushAnimator.

2. Overload

public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory, IProgress<int>? progress = null)

Summary: Creates the asynchronous.

Parameters

NameTypeDescription
sourceUriUriThe source URI.
repeatBehaviorRepeatBehaviorThe repeat behavior.
cacheFrameDataInMemoryboolif set to true [cache frame data in memory].
progress = nullIProgress?The progress.

Returns: Task -- A BrushAnimator.

3. Overload

public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior)

Summary: Creates the asynchronous.

Parameters

NameTypeDescription
sourceStreamStreamThe source stream.
repeatBehaviorRepeatBehaviorThe repeat behavior.

Returns: Task -- A BrushAnimator.

4. Overload

public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory)

Summary: Creates the asynchronous.

Parameters

NameTypeDescription
sourceStreamStreamThe source stream.
repeatBehaviorRepeatBehaviorThe repeat behavior.
cacheFrameDataInMemoryboolif set to true [cache frame data in memory].

Returns: Task -- A BrushAnimator.