C# Class Gymnastika.Controls.SlidePanel

Inheritance: System.Windows.Controls.Panel
Show file Open project: weiqiyiji/Gymnastika

Public Properties

Property Type Description
DurationProperty System.Windows.DependencyProperty
SelectedIndexProperty System.Windows.DependencyProperty
VisibleItemsCountProperty System.Windows.DependencyProperty

Public Methods

Method Description
SlidePanel ( ) : System

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size
CalculateShortestDistance ( int from, int to ) : int

Return the shortest distance between the fromIndex and toIndex

MeasureOverride ( Size availableSize ) : Size

Private Methods

Method Description
Animate ( ) : void
MakeAnimation ( double to, double duration ) : System.Windows.Media.Animation.DoubleAnimation
MakeAnimation ( double to, double duration, EventHandler endEvent ) : System.Windows.Media.Animation.DoubleAnimation
MakeAnimation ( double from, double to, double duration ) : System.Windows.Media.Animation.DoubleAnimation
MakeAnimation ( double from, double to, double duration, EventHandler endEvent ) : System.Windows.Media.Animation.DoubleAnimation
OnSelectedIndexChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ScaleTo ( UIElement child, double xFactor, double yFactor, double duration ) : void
TranslateTo ( UIElement child, double x, double y, double duration ) : void
TranslateTo ( UIElement child, double fromX, double fromY, double toX, double toY, double duration ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

CalculateShortestDistance() protected method

Return the shortest distance between the fromIndex and toIndex
protected CalculateShortestDistance ( int from, int to ) : int
from int
to int
return int

MeasureOverride() protected method

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
return System.Windows.Size

SlidePanel() public method

public SlidePanel ( ) : System
return System

Property Details

DurationProperty public static property

public static DependencyProperty,System.Windows DurationProperty
return System.Windows.DependencyProperty

SelectedIndexProperty public static property

public static DependencyProperty,System.Windows SelectedIndexProperty
return System.Windows.DependencyProperty

VisibleItemsCountProperty public static property

public static DependencyProperty,System.Windows VisibleItemsCountProperty
return System.Windows.DependencyProperty