source: trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/BottomBox.xaml.cs @ 1685

Last change on this file since 1685 was 1685, checked in by matkovic, 12 years ago

-Style changes

File size: 2.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
14using System.Windows.Media.Animation;
15
16namespace WorkspaceManager.View.VisualComponents
17{
18    /// <summary>
19    /// Interaktionslogik für Settings.xaml
20    /// </summary>
21    public partial class BottomBox : UserControl
22    {
23        public BottomBox()
24        {
25            this.Loaded += new RoutedEventHandler(BottomBox_Loaded);
26            InitializeComponent();
27        }
28
29        void BottomBox_Loaded(object sender, RoutedEventArgs e)
30        {
31            if (MainElementsBorder.Visibility == Visibility.Collapsed)
32                Main_MouseLeave(null, null);
33        }
34
35        private void Button_Click(object sender, RoutedEventArgs e)
36        {
37            SliderEditorSize.Value += 0.3;
38        }
39
40        private void Button_Click_1(object sender, RoutedEventArgs e)
41        {
42            SliderEditorSize.Value -= 0.3;
43        }
44
45        private void Main_MouseEnter(object sender, MouseEventArgs e)
46        {
47            if (Main.ActualHeight < 28)
48            {
49                //Sub.Visibility = Visibility.Collapsed;
50                Main.BeginStoryboard((this.Resources["IncrementHeigth"] as Storyboard));
51                //(this.Resources["Up"] as Storyboard).Stop(Sub);
52                MainElementsBorder.Visibility = Visibility.Visible;
53            }
54        }
55
56        private void Main_MouseLeave(object sender, MouseEventArgs e)
57        {
58            if (Main.ActualHeight == 28)
59            {
60                //Sub.Visibility = Visibility.Visible;
61                Main.BeginStoryboard((this.Resources["DecrementHeigth"] as Storyboard));
62                //Sub.BeginStoryboard((this.Resources["Up"] as Storyboard));
63                MainElementsBorder.Visibility = Visibility.Collapsed;
64            }
65        }
66    }
67}
Note: See TracBrowser for help on using the repository browser.