C# Class Open.Core.UI.Silverlight.Controls.DraggableStackPanel

Stacks a set of child items along an axis (horizontal or vertical) and makes each child dragable enabling re-ordering.
Inheritance: System.Windows.Controls.Canvas
Exibir arquivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
DragContainmentProperty System.Windows.DependencyProperty
EasingProperty System.Windows.DependencyProperty
ItemsSourceProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty
SlideDurationProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
ArrangeChild void
ArrangeChildren void
ArrangeChildren void
CalculateNewLayout List
GetChild Child
GetCurrentChildOrder IEnumerable
OnItemsSourceChanged void
OnOrientationChanged void
ReorderCollection void
SyncChildProperties void
UpdateChildItemsCollection void
WireCollection void

Public Methods

Method Description
DraggableStackPanel ( ) : System
HandleLoaded ( object sender, RoutedEventArgs e ) : void
Handle_Child_Dragging ( object sender, DraggingEventArgs e ) : void
Handle_Child_IsDraggingChanged ( object sender, EventArgs e ) : void
Handle_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Private Methods

Method Description
ArrangeChild ( UIElement element, Rect bounds ) : void
ArrangeChildren ( ) : void
ArrangeChildren ( bool force ) : void
CalculateNewLayout ( ) : List
GetChild ( UIElement element ) : Child
GetCurrentChildOrder ( ) : IEnumerable
OnItemsSourceChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnOrientationChanged ( ) : void
ReorderCollection ( ) : void
SyncChildProperties ( ) : void
UpdateChildItemsCollection ( bool force ) : void
WireCollection ( INotifyCollectionChanged collection, bool add ) : void

Method Details

DraggableStackPanel() public method

public DraggableStackPanel ( ) : System
return System

HandleLoaded() public method

public HandleLoaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

Handle_Child_Dragging() public method

public Handle_Child_Dragging ( object sender, DraggingEventArgs e ) : void
sender object
e Open.Core.Common.AttachedBehavior.DraggingEventArgs
return void

Handle_Child_IsDraggingChanged() public method

public Handle_Child_IsDraggingChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Handle_CollectionChanged() public method

public Handle_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
sender object
e System.Collections.Specialized.NotifyCollectionChangedEventArgs
return void

Property Details

DragContainmentProperty public_oe static_oe property

Gets or sets how the child elements are contained within it's parent.
public static DependencyProperty,System.Windows DragContainmentProperty
return System.Windows.DependencyProperty

EasingProperty public_oe static_oe property

Gets or sets the easing function to use when sliding items within the stack.
public static DependencyProperty,System.Windows EasingProperty
return System.Windows.DependencyProperty

ItemsSourceProperty public_oe static_oe property

Gets or sets the collection data-source of the master ItemsControl that this panel is housed within.
For updates to be monitored, makes sure the bound value is an ObservableCollection (or some other collection that that implements 'INotifyCollectionChanged').
public static DependencyProperty,System.Windows ItemsSourceProperty
return System.Windows.DependencyProperty

OrientationProperty public_oe static_oe property

Gets or sets the orientation in which child items are stacked within the panel.
public static DependencyProperty,System.Windows OrientationProperty
return System.Windows.DependencyProperty

SlideDurationProperty public_oe static_oe property

Gets or sets the duration of the slide animation when moving items within the stack.
public static DependencyProperty,System.Windows SlideDurationProperty
return System.Windows.DependencyProperty