C# Class GW2PAO.PresentationCore.DragDrop.DragDropUtilities

ファイルを表示 Open project: SamHurne/gw2pao Class Usage Examples

Public Methods

Method Description
HasVerticalOrientation ( FrameworkElement itemContainer ) : bool
InsertItemInItemsControl ( ItemsControl itemsControl, object itemToInsert, int insertionIndex ) : void
IsInFirstHalf ( FrameworkElement container, Point clickedPoint, bool hasVerticalOrientation ) : 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

RemoveItemFromItemsControl() public static method

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