Class Utilities
Presents kit class for dragging
Inheritance
System.Object
Utilities
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public static class Utilities : Object
Methods
GetItemContainer(DocumentTabControl, Visual)
Gets the item container.
Declaration
public static TabItemExt GetItemContainer(DocumentTabControl itemsControl, Visual bottomMostVisual)
Parameters
Type | Name | Description |
---|---|---|
DocumentTabControl | itemsControl | The items control. |
System.Windows.Media.Visual | bottomMostVisual | The bottom most visual. |
Returns
Type | Description |
---|---|
TabItemExt | TabItemExt itemContainer |
InsertItemInItemsControl(DocumentTabControl, Object, Int32)
Inserts the item in items control.
Declaration
public static void InsertItemInItemsControl(DocumentTabControl itemsControl, object itemToInsert, int insertionIndex)
Parameters
Type | Name | Description |
---|---|---|
DocumentTabControl | itemsControl | The items control. |
System.Object | itemToInsert | The item to insert. |
System.Int32 | insertionIndex | Index of the insertion. |
IsInFirstHalf(FrameworkElement, Dock, Point, Boolean)
Declaration
public static bool IsInFirstHalf(FrameworkElement container, Dock TabStripPlacement, Point clickedPoint, bool hasVerticalOrientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | container | |
System.Windows.Controls.Dock | TabStripPlacement | |
System.Windows.Point | clickedPoint | |
System.Boolean | hasVerticalOrientation |
Returns
Type |
---|
System.Boolean |
IsInFirstHalf(FrameworkElement, Point, Boolean)
Determines whether [is in first half] [the specified container].
Declaration
public static bool IsInFirstHalf(FrameworkElement container, Point clickedPoint, bool hasVerticalOrientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | container | The container. |
System.Windows.Point | clickedPoint | The clicked point. |
System.Boolean | hasVerticalOrientation | if set to |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsMovementBigEnough(Point, Point)
Determines whether [is movement big enough] [the specified initial position].
Declaration
public static bool IsMovementBigEnough(Point initialPosition, Point currentPosition)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | initialPosition | The initial position. |
System.Windows.Point | currentPosition | The current position. |
Returns
Type | Description |
---|---|
System.Boolean |
|
RemoveItemFromItemsControl(DocumentTabControl, Object)
Removes the item from items control.
Declaration
public static int RemoveItemFromItemsControl(DocumentTabControl itemsControl, object itemToRemove)
Parameters
Type | Name | Description |
---|---|---|
DocumentTabControl | itemsControl | The items control. |
System.Object | itemToRemove | The item to remove. |
Returns
Type | Description |
---|---|
System.Int32 | int indexToBeRemoved |