예제 #1
0
 private void front_canvas_MouseLeave(object sender, MouseEventArgs e)
 {
     this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     this.Maximize.Visibility        = System.Windows.Visibility.Hidden;
     this.Close.Visibility           = System.Windows.Visibility.Hidden;
     this.KeyBoardControl.Visibility = System.Windows.Visibility.Hidden;
 }
예제 #2
0
 private void front_canvas_MouseEnter(object sender, MouseEventArgs e)
 {
     KeyboardIconChange();
     this.Maximize.Visibility        = System.Windows.Visibility.Visible;
     this.Close.Visibility           = System.Windows.Visibility.Visible;
     this.KeyBoardControl.Visibility = System.Windows.Visibility.Visible;
     this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
 }
예제 #3
0
        private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (!isShow)
            {
                ShowPanel.BeginAnimation(Grid.MarginProperty, MarginB_Animation);
                IntPtr hBmp_arrow = Images.arrowUp.GetHbitmap();
                this.Arrow.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(hBmp_arrow, IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());
                Utils.DeleteObject(hBmp_arrow);
                this.Maximize.Visibility        = System.Windows.Visibility.Visible;
                this.Close.Visibility           = System.Windows.Visibility.Visible;
                this.KeyBoardControl.Visibility = System.Windows.Visibility.Visible;
                this.ScreenMode.Visibility      = System.Windows.Visibility.Visible;
                this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                ScreenMode.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
            }
            else
            {
                ShowPanel.BeginAnimation(Grid.MarginProperty, MarginE_Animation);
                IntPtr hBmp_arrow = Images._1427375812_double_arrow_down_32.GetHbitmap();
                this.Arrow.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(hBmp_arrow, IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());
                Utils.DeleteObject(hBmp_arrow);
                this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);

                ScreenMode.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                this.Maximize.Visibility        = System.Windows.Visibility.Hidden;
                this.Close.Visibility           = System.Windows.Visibility.Hidden;
                this.KeyBoardControl.Visibility = System.Windows.Visibility.Hidden;
                this.ScreenMode.Visibility      = System.Windows.Visibility.Hidden;
            }
            isShow = !isShow;
        }