C# Class BaconographyWP8.Common.ReorderListBoxItem

Inheritance: System.Windows.Controls.ListBoxItem
ファイルを表示 Open project: Synergex/Baconography Class Usage Examples

Public Properties

Property Type Description
DragHandleTemplateProperty System.Windows.DependencyProperty
DropIndicatorHeightProperty System.Windows.DependencyProperty
IsReorderEnabledProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void

Applies the control template, checks for required template parts, and initializes visual states.

ReorderListBoxItem ( ) : System

Creates a new ReorderListBoxItem and sets the default style key. The style key is used to locate the control template in Generic.xaml.

Protected Methods

Method Description
OnDropIndicatorHeightChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Updates the drop-indicator height value for visual state and transition animations.

This is a workaround for the inability of visual states and transitions to do template binding in Silverlight 3. In SL4, they could bind directly to the DropIndicatorHeight property instead.

OnIsReorderEnabledChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Private Methods

Method Description
GetVisualStateGroup ( FrameworkElement element, string groupName ) : System.Windows.VisualStateGroup

Gets a named VisualStateGroup for a framework element.

UpdateDropIndicatorAnimationHeight ( double height, Timeline animation ) : void

Helper for the UpdateDropIndicatorAnimationHeight method.

Method Details

OnApplyTemplate() public method

Applies the control template, checks for required template parts, and initializes visual states.
public OnApplyTemplate ( ) : void
return void

OnDropIndicatorHeightChanged() protected method

Updates the drop-indicator height value for visual state and transition animations.
This is a workaround for the inability of visual states and transitions to do template binding in Silverlight 3. In SL4, they could bind directly to the DropIndicatorHeight property instead.
protected OnDropIndicatorHeightChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnIsReorderEnabledChanged() protected method

protected OnIsReorderEnabledChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
return void

ReorderListBoxItem() public method

Creates a new ReorderListBoxItem and sets the default style key. The style key is used to locate the control template in Generic.xaml.
public ReorderListBoxItem ( ) : System
return System

Property Details

DragHandleTemplateProperty public_oe static_oe property

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

DropIndicatorHeightProperty public_oe static_oe property

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

IsReorderEnabledProperty public_oe static_oe property

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