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
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Méthodes publiques

Свойство Type Description
DragContainmentProperty System.Windows.DependencyProperty
EasingProperty System.Windows.DependencyProperty
ItemsSourceProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty
SlideDurationProperty System.Windows.DependencyProperty

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DraggableStackPanel ( ) : System
Résultat System

HandleLoaded() public méthode

public HandleLoaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Résultat void

Handle_Child_Dragging() public méthode

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

Handle_Child_IsDraggingChanged() public méthode

public Handle_Child_IsDraggingChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Handle_CollectionChanged() public méthode

public Handle_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
sender object
e System.Collections.Specialized.NotifyCollectionChangedEventArgs
Résultat 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
Résultat 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
Résultat 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
Résultat 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
Résultat 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
Résultat System.Windows.DependencyProperty