C# Класс XamlAnimatedGif.AnimationBehavior

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AnimateInDesignModeProperty DependencyProperty
AnimatorProperty DependencyProperty
AutoStartProperty DependencyProperty
DownloadProgressEvent System.Windows.RoutedEvent
ErrorEvent System.Windows.RoutedEvent
LoadedEvent System.Windows.RoutedEvent
RepeatBehaviorProperty DependencyProperty
SourceStreamProperty DependencyProperty
SourceUriProperty DependencyProperty

Открытые методы

Метод Описание
AddDownloadProgressHandler ( DependencyObject d, DownloadProgressEventHandler handler ) : void
AddErrorHandler ( DependencyObject d, AnimationErrorEventHandler handler ) : void
AddLoadedHandler ( DependencyObject d, RoutedEventHandler handler ) : void
GetAnimateInDesignMode ( DependencyObject obj ) : bool
GetAnimator ( DependencyObject obj ) : XamlAnimatedGif.Animator
RemoveDownloadProgressHandler ( DependencyObject d, DownloadProgressEventHandler handler ) : void
RemoveErrorHandler ( DependencyObject d, AnimationErrorEventHandler handler ) : void
RemoveLoadedHandler ( DependencyObject d, RoutedEventHandler handler ) : void
SetAnimateInDesignMode ( DependencyObject obj, bool value ) : void
SetAutoStart ( DependencyObject obj, bool value ) : void
SetRepeatBehavior ( DependencyObject obj, RepeatBehavior value ) : void
SetSourceStream ( DependencyObject obj, Stream value ) : void
SetSourceUri ( Image image, Uri value ) : void

Приватные методы

Метод Описание
AnimateInDesignModeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
AnimatorError ( object sender, XamlAnimatedGif.AnimationErrorEventArgs e ) : void
CheckDesignMode ( Image image, Uri sourceUri, Stream sourceStream ) : bool
ClearAnimatorCore ( Image image ) : void
GetAbsoluteUri ( Image image ) : Uri
GetAutoStart ( DependencyObject obj ) : bool
GetRepeatBehavior ( DependencyObject obj ) : RepeatBehavior
GetSeqNum ( DependencyObject obj ) : int
GetSourceStream ( DependencyObject obj ) : Stream
GetSourceUri ( Image image ) : Uri
Image_Loaded ( object sender, RoutedEventArgs e ) : void
Image_Unloaded ( object sender, RoutedEventArgs e ) : void
InitAnimation ( Image image ) : void
InitAnimationAsync ( Image image, Stream stream, RepeatBehavior repeatBehavior, int seqNum ) : void
InitAnimationAsync ( Image image, Uri sourceUri, RepeatBehavior repeatBehavior, int seqNum ) : void
IsInDesignMode ( DependencyObject obj ) : bool
IsLoaded ( FrameworkElement element ) : bool
OnDownloadProgress ( Image image, int downloadPercentage ) : void
OnError ( Image image, Exception exception, AnimationErrorKind kind ) : void
OnLoaded ( Image sender ) : void
RepeatBehaviorChanged ( DependencyObject o, DependencyPropertyChangedEventArgs e ) : void
SetAnimator ( DependencyObject obj, XamlAnimatedGif.Animator value ) : void
SetAnimatorCoreAsync ( Image image, XamlAnimatedGif.Animator animator ) : Task
SetSeqNum ( DependencyObject obj, int value ) : void
SourceChanged ( DependencyObject o, DependencyPropertyChangedEventArgs e ) : void

Описание методов

AddDownloadProgressHandler() публичный статический Метод

public static AddDownloadProgressHandler ( DependencyObject d, DownloadProgressEventHandler handler ) : void
d DependencyObject
handler DownloadProgressEventHandler
Результат void

AddErrorHandler() публичный статический Метод

public static AddErrorHandler ( DependencyObject d, AnimationErrorEventHandler handler ) : void
d DependencyObject
handler AnimationErrorEventHandler
Результат void

AddLoadedHandler() публичный статический Метод

public static AddLoadedHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d DependencyObject
handler RoutedEventHandler
Результат void

GetAnimateInDesignMode() публичный статический Метод

public static GetAnimateInDesignMode ( DependencyObject obj ) : bool
obj DependencyObject
Результат bool

GetAnimator() публичный статический Метод

public static GetAnimator ( DependencyObject obj ) : XamlAnimatedGif.Animator
obj DependencyObject
Результат XamlAnimatedGif.Animator

RemoveDownloadProgressHandler() публичный статический Метод

public static RemoveDownloadProgressHandler ( DependencyObject d, DownloadProgressEventHandler handler ) : void
d DependencyObject
handler DownloadProgressEventHandler
Результат void

RemoveErrorHandler() публичный статический Метод

public static RemoveErrorHandler ( DependencyObject d, AnimationErrorEventHandler handler ) : void
d DependencyObject
handler AnimationErrorEventHandler
Результат void

RemoveLoadedHandler() публичный статический Метод

public static RemoveLoadedHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d DependencyObject
handler RoutedEventHandler
Результат void

SetAnimateInDesignMode() публичный статический Метод

public static SetAnimateInDesignMode ( DependencyObject obj, bool value ) : void
obj DependencyObject
value bool
Результат void

SetAutoStart() публичный статический Метод

public static SetAutoStart ( DependencyObject obj, bool value ) : void
obj DependencyObject
value bool
Результат void

SetRepeatBehavior() публичный статический Метод

public static SetRepeatBehavior ( DependencyObject obj, RepeatBehavior value ) : void
obj DependencyObject
value RepeatBehavior
Результат void

SetSourceStream() публичный статический Метод

public static SetSourceStream ( DependencyObject obj, Stream value ) : void
obj DependencyObject
value Stream
Результат void

SetSourceUri() публичный статический Метод

public static SetSourceUri ( Image image, Uri value ) : void
image Image
value System.Uri
Результат void

Описание свойств

AnimateInDesignModeProperty публичное статическое свойство

public static DependencyProperty AnimateInDesignModeProperty
Результат DependencyProperty

AnimatorProperty публичное статическое свойство

public static DependencyProperty AnimatorProperty
Результат DependencyProperty

AutoStartProperty публичное статическое свойство

public static DependencyProperty AutoStartProperty
Результат DependencyProperty

DownloadProgressEvent публичное статическое свойство

public static RoutedEvent,System.Windows DownloadProgressEvent
Результат System.Windows.RoutedEvent

ErrorEvent публичное статическое свойство

public static RoutedEvent,System.Windows ErrorEvent
Результат System.Windows.RoutedEvent

LoadedEvent публичное статическое свойство

public static RoutedEvent,System.Windows LoadedEvent
Результат System.Windows.RoutedEvent

RepeatBehaviorProperty публичное статическое свойство

public static DependencyProperty RepeatBehaviorProperty
Результат DependencyProperty

SourceStreamProperty публичное статическое свойство

public static DependencyProperty SourceStreamProperty
Результат DependencyProperty

SourceUriProperty публичное статическое свойство

public static DependencyProperty SourceUriProperty
Результат DependencyProperty