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;
            }
        }
 void sContextCircle_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
 {
     StickyWindowAnimations animations = new StickyWindowAnimations(this);
     animations.ContextShrinkAnimation();
 }
        void sContextCircle_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
        {
            StickyWindowAnimations animations = new StickyWindowAnimations(this);

            animations.ContextShrinkAnimation();
        }
Example #4
0
        //Restore menuCommand
        public void RestoreCmdExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);

            animations.RestoreAnimation();
        }
        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;
            }
        }
Example #6
0
        //Minimize menuCommand
        public void MinizmizeCmdExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);

            animations.MinimizeAnimation();
        }
Example #7
0
        //FitContent menuCommand
        public void FitContentCmdExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);

            animations.FitContentAnimation();
        }
Example #8
0
 //FitContent menuCommand
 public void FitContentCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);
     animations.FitContentAnimation();
 }
Example #9
0
 //Restore menuCommand
 public void RestoreCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);
     animations.RestoreAnimation();
 }
Example #10
0
 //Minimize menuCommand
 public void MinizmizeCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     StickyWindowAnimations animations = new StickyWindowAnimations(stickyWindow);
     animations.MinimizeAnimation();
 }