WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Utilities

    Show / Hide Table of Contents

    Class Utilities

    Presents kit class for dragging

    Inheritance
    System.Object
    Utilities
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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)

    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 Description
    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 true [has vertical orientation].

    Returns
    Type Description
    System.Boolean

    true if [is in first half] [the specified container]; otherwise, false.

    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

    true if [is movement big enough] [the specified initial position]; otherwise, false.

    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

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved