C# Class Open.Core.Common.AttachedBehavior.SizeAnimation

An attached-property animation that alters the size of the element.
Inheritance: PropertyAnimation
Mostra file Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
HeightPropertyNameProperty System.Windows.DependencyProperty
SyncSizeOnLoadProperty System.Windows.DependencyProperty
WidthPropertyNameProperty System.Windows.DependencyProperty

Protected Methods

Method Description
Initialize ( ) : void
OnViewModelPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
Animate ( double fromValue, double toValue, string propertyName ) : void
AnimateHeight ( ) : void
AnimateWidth ( ) : void
GetDimensionValue ( string propertyName ) : double?
SyncSize ( ) : void

Method Details

Initialize() protected method

protected Initialize ( ) : void
return void

OnViewModelPropertyChanged() protected method

protected OnViewModelPropertyChanged ( string propertyName ) : void
propertyName string
return void

Property Details

HeightPropertyNameProperty public_oe static_oe property

Gets or sets the name of the double property that specifies the 'Height' value to monitor on the ViewModel.
public static DependencyProperty,System.Windows HeightPropertyNameProperty
return System.Windows.DependencyProperty

SyncSizeOnLoadProperty public_oe static_oe property

Gets or sets whether the initial size of the element should be synced with the view-model upon loading.
public static DependencyProperty,System.Windows SyncSizeOnLoadProperty
return System.Windows.DependencyProperty

WidthPropertyNameProperty public_oe static_oe property

Gets or sets the name of the double property that specifies the 'Width' value to monitor on the ViewModel.
public static DependencyProperty,System.Windows WidthPropertyNameProperty
return System.Windows.DependencyProperty