C# Class MetroIde.Controls.DragDropListBox.Utilities

ファイルを表示 Open project: ChadSki/Quickbeam

Public Methods

Method Description
HasVerticalOrientation ( FrameworkElement itemContainer ) : bool
InsertItemInItemsControl ( ItemsControl itemsControl, object itemToInsert, int insertionIndex ) : void
IsInFirstHalf ( FrameworkElement container, Point clickedPoint, bool hasVerticalOrientation ) : bool
IsMovementBigEnough ( Point initialMousePosition, Point currentPosition ) : bool
RemoveItemFromItemsControl ( ItemsControl itemsControl, object itemToRemove ) : int

Method Details

HasVerticalOrientation() public static method

public static HasVerticalOrientation ( FrameworkElement itemContainer ) : bool
itemContainer System.Windows.FrameworkElement
return bool

InsertItemInItemsControl() public static method

public static InsertItemInItemsControl ( ItemsControl itemsControl, object itemToInsert, int insertionIndex ) : void
itemsControl System.Windows.Controls.ItemsControl
itemToInsert object
insertionIndex int
return void

IsInFirstHalf() public static method

public static IsInFirstHalf ( FrameworkElement container, Point clickedPoint, bool hasVerticalOrientation ) : bool
container System.Windows.FrameworkElement
clickedPoint Point
hasVerticalOrientation bool
return bool

IsMovementBigEnough() public static method

public static IsMovementBigEnough ( Point initialMousePosition, Point currentPosition ) : bool
initialMousePosition Point
currentPosition Point
return bool

RemoveItemFromItemsControl() public static method

public static RemoveItemFromItemsControl ( ItemsControl itemsControl, object itemToRemove ) : int
itemsControl System.Windows.Controls.ItemsControl
itemToRemove object
return int