Class Utilities
Presents kit class for dragging
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public static class Utilities
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)
Determines whether a clicked point within a container lies in the first half of the container, based on the tab strip placement and orientation.
Declaration
public static bool IsInFirstHalf(FrameworkElement container, Dock TabStripPlacement, Point clickedPoint, bool hasVerticalOrientation)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.FrameworkElement | container | The UI element that contains the clicked point. |
| System.Windows.Controls.Dock | TabStripPlacement | The dock position of the tab strip (Top, Bottom, Left, Right). |
| System.Windows.Point | clickedPoint | The point that was clicked, relative to the container. |
| System.Boolean | hasVerticalOrientation | Indicates whether the layout is vertically oriented. |
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 |