C# Class XamlAnimatedGif.AnimationBehavior

Mostrar archivo Open project: thomaslevesque/XamlAnimatedGif Class Usage Examples

Public Properties

Property Type Description
AnimateInDesignModeProperty DependencyProperty
AnimatorProperty DependencyProperty
AutoStartProperty DependencyProperty
DownloadProgressEvent System.Windows.RoutedEvent
ErrorEvent System.Windows.RoutedEvent
LoadedEvent System.Windows.RoutedEvent
RepeatBehaviorProperty DependencyProperty
SourceStreamProperty DependencyProperty
SourceUriProperty DependencyProperty

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddDownloadProgressHandler() public static method

public static AddDownloadProgressHandler ( DependencyObject d, DownloadProgressEventHandler handler ) : void
d DependencyObject
handler DownloadProgressEventHandler
return void

AddErrorHandler() public static method

public static AddErrorHandler ( DependencyObject d, AnimationErrorEventHandler handler ) : void
d DependencyObject
handler AnimationErrorEventHandler
return void

AddLoadedHandler() public static method

public static AddLoadedHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d DependencyObject
handler RoutedEventHandler
return void

GetAnimateInDesignMode() public static method

public static GetAnimateInDesignMode ( DependencyObject obj ) : bool
obj DependencyObject
return bool

GetAnimator() public static method

public static GetAnimator ( DependencyObject obj ) : XamlAnimatedGif.Animator
obj DependencyObject
return XamlAnimatedGif.Animator

RemoveDownloadProgressHandler() public static method

public static RemoveDownloadProgressHandler ( DependencyObject d, DownloadProgressEventHandler handler ) : void
d DependencyObject
handler DownloadProgressEventHandler
return void

RemoveErrorHandler() public static method

public static RemoveErrorHandler ( DependencyObject d, AnimationErrorEventHandler handler ) : void
d DependencyObject
handler AnimationErrorEventHandler
return void

RemoveLoadedHandler() public static method

public static RemoveLoadedHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d DependencyObject
handler RoutedEventHandler
return void

SetAnimateInDesignMode() public static method

public static SetAnimateInDesignMode ( DependencyObject obj, bool value ) : void
obj DependencyObject
value bool
return void

SetAutoStart() public static method

public static SetAutoStart ( DependencyObject obj, bool value ) : void
obj DependencyObject
value bool
return void

SetRepeatBehavior() public static method

public static SetRepeatBehavior ( DependencyObject obj, RepeatBehavior value ) : void
obj DependencyObject
value RepeatBehavior
return void

SetSourceStream() public static method

public static SetSourceStream ( DependencyObject obj, Stream value ) : void
obj DependencyObject
value Stream
return void

SetSourceUri() public static method

public static SetSourceUri ( Image image, Uri value ) : void
image Image
value System.Uri
return void

Property Details

AnimateInDesignModeProperty public_oe static_oe property

public static DependencyProperty AnimateInDesignModeProperty
return DependencyProperty

AnimatorProperty public_oe static_oe property

public static DependencyProperty AnimatorProperty
return DependencyProperty

AutoStartProperty public_oe static_oe property

public static DependencyProperty AutoStartProperty
return DependencyProperty

DownloadProgressEvent public_oe static_oe property

public static RoutedEvent,System.Windows DownloadProgressEvent
return System.Windows.RoutedEvent

ErrorEvent public_oe static_oe property

public static RoutedEvent,System.Windows ErrorEvent
return System.Windows.RoutedEvent

LoadedEvent public_oe static_oe property

public static RoutedEvent,System.Windows LoadedEvent
return System.Windows.RoutedEvent

RepeatBehaviorProperty public_oe static_oe property

public static DependencyProperty RepeatBehaviorProperty
return DependencyProperty

SourceStreamProperty public_oe static_oe property

public static DependencyProperty SourceStreamProperty
return DependencyProperty

SourceUriProperty public_oe static_oe property

public static DependencyProperty SourceUriProperty
return DependencyProperty