Exemplo n.º 1
0
        void contextCircle_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount == 2)
            {
                StickyWindowAnimations animations = new StickyWindowAnimations(this);

                switch (MyWindowState)
                {
                case WindowState.Minimized:
                    animations.RestoreAnimation();
                    this.ToolTip = new ToolTip();
                    break;

                case WindowState.Normal:
                    animations.MinimizeAnimation();
                    UpdateToolTip();
                    break;
                }

                e.Handled = true;
            }
        }
Exemplo n.º 2
0
        //Restore menuCommand
        public void RestoreCmdExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);

            animations.RestoreAnimation();
        }
Exemplo n.º 3
0
        void contextCircle_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount == 2)
            {
                StickyWindowAnimations animations = new StickyWindowAnimations(this);

                switch (MyWindowState)
                {
                    case WindowState.Minimized:
                        animations.RestoreAnimation();
                        this.ToolTip = new ToolTip();
                        break;

                    case WindowState.Normal:
                        animations.MinimizeAnimation();
                        UpdateToolTip();
                        break;
                }

                e.Handled = true;
            }
        }
Exemplo n.º 4
0
 //Restore menuCommand
 public void RestoreCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);
     animations.RestoreAnimation();
 }