C# Class trello.Interactions.DragVerticalInteraction

Represents a vertical drag operation that allows for automatic scrolling of an itemscontrol as well as reordering the list while moving.
Inheritance: InteractionBase
Datei anzeigen Open project: Bunk/trellow

Public Methods

Method Description
AddElement ( FrameworkElement element ) : void
DragVerticalInteraction ( DragImage dragImage, ItemsControl itemsControl, ScrollViewer scrollViewer, IEventAggregator eventAggregator ) : System
RemoveElement ( FrameworkElement element ) : void

Private Methods

Method Description
AutoScrollLayout ( ) : void
GetPotentialIndex ( int currentIndex, double dragPoint, bool downwardMotion ) : int
HoldCompleted ( object sender, System.Windows.Input.ManipulationCompletedEventArgs e ) : void
HoldDelta ( object sender, System.Windows.Input.ManipulationDeltaEventArgs e ) : void
HoldStarted ( object sender, GestureEventArgs e ) : void
OffsetItem ( double offset, FrameworkElement element ) : void
PopoutCard ( UIElement element, DragImage image, Point relativePosition ) : void
ReorganizeLayout ( ) : void
ShouldActivate ( System.Windows.Input.ManipulationDeltaEventArgs e ) : bool

Method Details

AddElement() public method

public AddElement ( FrameworkElement element ) : void
element System.Windows.FrameworkElement
return void

DragVerticalInteraction() public method

public DragVerticalInteraction ( DragImage dragImage, ItemsControl itemsControl, ScrollViewer scrollViewer, IEventAggregator eventAggregator ) : System
dragImage trello.Views.Cards.DragImage
itemsControl System.Windows.Controls.ItemsControl
scrollViewer System.Windows.Controls.ScrollViewer
eventAggregator IEventAggregator
return System

RemoveElement() public method

public RemoveElement ( FrameworkElement element ) : void
element System.Windows.FrameworkElement
return void