Class Animation
Inherited Members
Namespace: Mapsui.Animations
Assembly: Mapsui.dll
Syntax
public static class AnimationMethods
| Edit this page View SourceStart<T>(AnimationEntry<T>, long)
List of all active animations
Declaration
public static void Start<T>(AnimationEntry<T> entry, long duration)Parameters
| Type | Name | Description | 
|---|---|---|
| AnimationEntry<T> | entry | AnimationEntry to start | 
| long | duration | Duration im ms for the given AnimationEntry | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
Start<T>(IEnumerable<AnimationEntry<T>>, long)
Start a list of AnimationEntrys
Declaration
public static void Start<T>(IEnumerable<AnimationEntry<T>> entries, long duration)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<AnimationEntry<T>> | entries | List of AnimationEntry to start | 
| long | duration | Duration im ms for the given AnimationEntry | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
Remarks
All AnimationEntries are started at the same time.
Stop<T>(T, AnimationEntry<T>, bool)
Stop a given AnimationEntry
Declaration
public static AnimationResult<T> Stop<T>(T target, AnimationEntry<T> entry, bool callFinal = true)Parameters
| Type | Name | Description | 
|---|---|---|
| T | target | |
| AnimationEntry<T> | entry | AnimationEntry to stop | 
| bool | callFinal | Final function is called, if callFinal is true | 
Returns
| Type | Description | 
|---|---|
| AnimationResult<T> | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
Stop<T>(T, IEnumerable<AnimationEntry<T>>, bool)
Stop all AnimationEntries in a given list
Declaration
public static void Stop<T>(T target, IEnumerable<AnimationEntry<T>> entries, bool callFinal = true)Parameters
| Type | Name | Description | 
|---|---|---|
| T | target | |
| IEnumerable<AnimationEntry<T>> | entries | AnimationEntry to stop | 
| bool | callFinal | Final function is called, if callFinal is true | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
UpdateAnimations<T>(T, IEnumerable<AnimationEntry<T>>)
Update all AnimationEntrys and check, if a redraw is needed
Declaration
public static AnimationResult<T> UpdateAnimations<T>(T target, IEnumerable<AnimationEntry<T>> entries)Parameters
| Type | Name | Description | 
|---|---|---|
| T | target | |
| IEnumerable<AnimationEntry<T>> | entries | 
Returns
| Type | Description | 
|---|---|
| AnimationResult<T> | True, if a redraw of the screen is needed | 
Type Parameters
| Name | Description | 
|---|---|
| T |