C# Class WinRTXamlToolkit.Controls.Extensions.AnimationHelper

A simple pair of helper attached dependency properties that allows to configure a single Storyboard to run on an element.
Show file Open project: xyzzer/WinRTXamlToolkit

Public Properties

Property Type Description
IsPlayingProperty Windows.UI.Xaml.DependencyProperty
StoryboardProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
GetIsPlaying ( DependencyObject d ) : bool

Gets the IsPlaying property. This dependency property indicates whether the storyboard is playing.

GetStoryboard ( DependencyObject d ) : Storyboard

Gets the Storyboard property. This dependency property indicates the storyboard to play.

SetIsPlaying ( DependencyObject d, bool value ) : void

Sets the IsPlaying property. This dependency property indicates whether the storyboard is playing.

SetStoryboard ( DependencyObject d, Storyboard value ) : void

Sets the Storyboard property. This dependency property indicates the storyboard to play.

Private Methods

Method Description
OnIsPlayingChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsPlaying property.

OnStoryboardChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Storyboard property.

Method Details

GetIsPlaying() public static method

Gets the IsPlaying property. This dependency property indicates whether the storyboard is playing.
public static GetIsPlaying ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
return bool

GetStoryboard() public static method

Gets the Storyboard property. This dependency property indicates the storyboard to play.
public static GetStoryboard ( DependencyObject d ) : Storyboard
d Windows.UI.Xaml.DependencyObject
return Windows.UI.Xaml.Media.Animation.Storyboard

SetIsPlaying() public static method

Sets the IsPlaying property. This dependency property indicates whether the storyboard is playing.
public static SetIsPlaying ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
return void

SetStoryboard() public static method

Sets the Storyboard property. This dependency property indicates the storyboard to play.
public static SetStoryboard ( DependencyObject d, Storyboard value ) : void
d Windows.UI.Xaml.DependencyObject
value Windows.UI.Xaml.Media.Animation.Storyboard
return void

Property Details

IsPlayingProperty public static property

IsPlaying Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsPlayingProperty
return Windows.UI.Xaml.DependencyProperty

StoryboardProperty public static property

Storyboard Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml StoryboardProperty
return Windows.UI.Xaml.DependencyProperty