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

Last change on this file since 2280 was 2280, checked in by matkovic, 11 years ago

-fixed "Fit to Screen"
-fixed Scrollbars
-fixed Dragging
-added custom names
-New: IControl- Presentation
--Loading adjusted
-New: Multi selection
-New: Copy /Past (not complete)
-New: Multi Dragging
-New: PluginContainerView Highlighting added

File size: 4.8 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    <UserControl.Resources>
8        <ResourceDictionary>
9            <ResourceDictionary.MergedDictionaries>
10                <ResourceDictionary Source="../Resource/Styles.xaml"/>
11                <ResourceDictionary Source="../Resource/Animations.xaml"/>
12            </ResourceDictionary.MergedDictionaries>
13            <z:ScaleToPercentageConverter x:Key="PercentageConverter"></z:ScaleToPercentageConverter>
14        </ResourceDictionary>
15    </UserControl.Resources>
16    <UserControl.LayoutTransform>
17        <ScaleTransform ScaleX="0.85" ScaleY="0.85"></ScaleTransform>
18    </UserControl.LayoutTransform>
19
20    <DockPanel Name="Root" HorizontalAlignment="Stretch">
21        <Border DockPanel.Dock="Top" Background="Black" Height="1"></Border>
22        <Border Name="Main" Height="35"  DockPanel.Dock="Bottom" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" ClipToBounds="True" Background="{StaticResource ResourceKey=BlueRadientBrush}">
23            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
24
25                <Button Style="{StaticResource ResourceKey=BottomBoxBtnStyle}" ToolTip="Fit to Screen" Name="F2S" Click="Button_Click" Foreground="WhiteSmoke">
26                    <Image VerticalAlignment="Center" Source="/WorkspaceManager;component/View/Image/f2s-small.png" Width="30" Height="30"></Image>
27                </Button>
28
29                <Button Style="{StaticResource ResourceKey=BottomBoxBtnStyle}" ToolTip="Add Image to Workspace" Name="ADDIMG" Click="Button_Click" Foreground="WhiteSmoke">
30                    <Image VerticalAlignment="Center" Source="/WorkspaceManager;component/View/Image/addimg-small.png" Width="30" Height="30"></Image>
31                </Button>
32
33                <Button Margin="5,0,0,0" Style="{StaticResource ResourceKey=BottomBoxBtnStyle}" ToolTip="Add Text to Workspace" Name="ADDTXT" Click="Button_Click" Foreground="WhiteSmoke">
34                    <Image VerticalAlignment="Center" Source="/WorkspaceManager;component/View/Image/addtxt-small.png" Width="30" Height="30"></Image>
35                </Button>
36
37                <StackPanel DockPanel.Dock="Bottom" Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
38                    <StackPanel.LayoutTransform>
39                        <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
40                    </StackPanel.LayoutTransform>
41                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
42                        <Label Foreground="Black" FontWeight="ExtraBold" VerticalAlignment="Top" FontSize="18" ContentStringFormat="{}{0:F0} %" Content="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=OneWay, Converter={StaticResource ResourceKey=PercentageConverter}}"></Label>
43                    </Border>
44                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
45                        <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_dec">
46                            <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
47                        </Button>
48                    </Border>
49                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
50                        <Slider x:Name="FullScreenScaleSlider" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
51                                Minimum="{Binding Source={x:Static p:Settings.Default}, Path=MinScale, Mode=OneWay}" Maximum="{Binding Source={x:Static p:Settings.Default}, Path=MaxScale, Mode=OneWay}" Width="100" Height="22"
52                                Value="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=TwoWay}"/>
53                    </Border>
54                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
55                        <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_inc">
56                            <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
57                        </Button>
58                    </Border>
59                </StackPanel>
60            </StackPanel>
61           
62        </Border>
63    </DockPanel>
64</UserControl>
Note: See TracBrowser for help on using the repository browser.