IsPinnedWindow() public static method

public static IsPinnedWindow ( IntPtr hWnd ) : bool
hWnd System.IntPtr
return bool
Exemplo n.º 1
0
        /// <summary>
        /// Toggles a window between being pinned and unpinned.
        /// </summary>
        public static void TogglePin(this Window window)
        {
            var handle = window.GetHandle();

            if (VirtualDesktop.IsPinnedWindow(handle))
            {
                VirtualDesktop.UnpinWindow(handle);
            }
            else
            {
                VirtualDesktop.PinWindow(handle);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Determines whether this window is pinned.
 /// </summary>
 public static bool IsPinned(this Window window)
 {
     return(VirtualDesktop.IsPinnedWindow(window.GetHandle()));
 }