IsPinnedWindow() 공개 정적인 메소드

public static IsPinnedWindow ( IntPtr hWnd ) : bool
hWnd System.IntPtr
리턴 bool
예제 #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);
            }
        }
예제 #2
0
 /// <summary>
 /// Determines whether this window is pinned.
 /// </summary>
 public static bool IsPinned(this Window window)
 {
     return(VirtualDesktop.IsPinnedWindow(window.GetHandle()));
 }