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

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

-Style changes

File size: 4.4 KB
Line 
1<UserControl x:Class="WorkspaceManager.View.VisualComponents.BottomBox"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5    xmlns:z="clr-namespace:WorkspaceManager.View.Converter"
6    xmlns:p="clr-namespace:WorkspaceManager.Properties"
7    Width="auto">
8    <UserControl.Resources>
9        <ResourceDictionary>
10            <ResourceDictionary.MergedDictionaries>
11                <ResourceDictionary Source="../Resource/Styles.xaml"/>
12                <ResourceDictionary Source="../Resource/Animations.xaml"/>
13            </ResourceDictionary.MergedDictionaries>
14            <z:ScaleToPercentageConverter x:Key="PercentageConverter"></z:ScaleToPercentageConverter>
15        </ResourceDictionary>
16    </UserControl.Resources>
17   
18    <UserControl.LayoutTransform>
19        <ScaleTransform ScaleX="0.85" ScaleY="0.85"></ScaleTransform>
20    </UserControl.LayoutTransform>
21   
22    <UserControl.Effect>
23        <DropShadowEffect BlurRadius="10" Color="Black" ShadowDepth="0.5" Direction="90" Opacity="0.4"></DropShadowEffect>
24    </UserControl.Effect>
25
26    <DockPanel Name="Root" MouseEnter="Main_MouseEnter" MouseLeave="Main_MouseLeave">
27        <DockPanel.Background>
28            <SolidColorBrush Opacity="0.01" Color="#444444"></SolidColorBrush>
29        </DockPanel.Background>
30        <Border Name="Main" Height="10" DockPanel.Dock="Bottom" VerticalAlignment="Bottom" ClipToBounds="True" Background="{StaticResource ResourceKey=BottomBoxBrushLinearBrush}" BorderBrush="#bfd0f5" BorderThickness="0.5" CornerRadius="15,15,0,0">
31            <StackPanel Name="MainElementsBorder" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Visibility="Collapsed">
32                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
33                    <Label Foreground="WhiteSmoke" VerticalAlignment="Top" ContentStringFormat="{}{0:F0} %" Content="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=OneWay, Converter={StaticResource ResourceKey=PercentageConverter}}" Width="42"></Label>
34                </Border>
35                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
36                    <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_1">
37                        <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
38                    </Button>
39                </Border>
40                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
41                    <Slider Name="SliderEditorSize" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
42                                    Minimum="0.5" Maximum="2" Width="100" Height="22"
43                                    Value="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=TwoWay}"/>
44                </Border>
45                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
46                    <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click">
47                        <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
48                    </Button>
49                </Border>
50            </StackPanel>
51        </Border>
52
53        <!--<StackPanel Orientation="Horizontal" Name="Sub" HorizontalAlignment="Center" Opacity="0.6" DockPanel.Dock="Bottom" Height="23" VerticalAlignment="Bottom" Visibility="Visible">
54            <StackPanel.RenderTransform>
55                <TranslateTransform></TranslateTransform>
56            </StackPanel.RenderTransform>
57            <Image VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="10,0,5,0" Source="/WorkspaceManager;component/View/Image/arrow.png" Width="14"/>
58            <Image VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,2" Source="/WorkspaceManager;component/View/Image/arrow.png" Width="17"/>
59            <Image VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="5,0,10,0" Source="/WorkspaceManager;component/View/Image/arrow.png" Width="14"/>
60        </StackPanel>-->
61    </DockPanel>
62</UserControl>
Note: See TracBrowser for help on using the repository browser.