public static FloatingItemSnapShot Take(DockItem dockItem)
        {
            if (dockItem == null)
            {
                throw new ArgumentNullException(nameof(dockItem));
            }

            return(new FloatingItemSnapShot(
                       dockItem.Content,
                       new Rect(dockItem.X, dockItem.Y, dockItem.Width, dockItem.Height),
                       dockItem.GetValue(Visual.ZIndexProperty),
                       Layout.GetFloatingItemState(dockItem)));
        }
 /// <summary>Gets a value indicates whether the mouse is over the auto-hide tab of specified <see cref="DockItem"/>.
 /// Getter of <b>IsMouseOverTab</b> attached property.</summary>
 /// <param name="element">The specified <see cref="DockItem"/>.</param>
 /// <returns><see langword="true"/> if the mouse is over the auto-hide tab of specified <see cref="DockItem"/>, otherwise <see langword="false"/>.</returns>
 internal static bool GetIsMouseOverTab(DockItem element)
 {
     return((bool)element.GetValue(IsMouseOverTabProperty));
 }