UnpinApplication() public static méthode

public static UnpinApplication ( string appId ) : void
appId string
Résultat void
Exemple #1
0
        /// <summary>
        /// Unpins an application.
        /// </summary>
        public static void Unpin(this Application app)
        {
            var appId = ApplicationHelper.GetAppId(app.GetWindowHandle());

            if (appId == null)
            {
                return;
            }

            VirtualDesktop.UnpinApplication(appId);
        }
        public static void TogglePin(this Application app)
        {
            var appId = ApplicationHelper.GetAppId(app.GetWindowHandle());

            if (VirtualDesktop.IsPinnedApplication(appId))
            {
                VirtualDesktop.UnpinApplication(appId);
            }
            else
            {
                VirtualDesktop.PinApplication(appId);
            }
        }
 public static void Unpin(this Application app)
 {
     VirtualDesktop.UnpinApplication(ApplicationHelper.GetAppId(app.GetWindowHandle()));
 }