source: trunk/CrypPlugins/WorkspaceManager/View/Container/WorkSpaceEditorView.xaml @ 1892

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

-Fullscreen enhanced
-TextInput added
-Picture scaling added
-Textinput scaling added
-Textinput format command added
-Several style changes
-Progressbar redesigned
-Last log message now appearing
-IControlContainer commenced
-Several icons added
-Plugin state now stored and loaded
-Plugin height and width now storing and loading
-Several misc changes

File size: 9.4 KB
Line 
1<UserControl x:Class="WorkspaceManager.View.Container.WorkSpaceEditorView"
2             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6             xmlns:e="clr-namespace:WorkspaceManager.View.VisualComponents"
7             xmlns:f="clr-namespace:WorkspaceManager.View.Container"
8             xmlns:p="clr-namespace:WorkspaceManager.Properties"
9             xmlns:z="clr-namespace:WorkspaceManager.View.Converter"
10             AllowDrop="True"
11             mc:Ignorable="d"
12             d:DesignHeight="300" d:DesignWidth="300" ClipToBounds="True">
13    <UserControl.Resources>
14        <ResourceDictionary>
15            <ResourceDictionary.MergedDictionaries>
16                <ResourceDictionary Source="../Resource/Styles.xaml"/>
17                <ResourceDictionary Source="../Resource/Animations.xaml"/>
18            </ResourceDictionary.MergedDictionaries>
19            <z:ScaleToPercentageConverter x:Key="PercentageConverter"></z:ScaleToPercentageConverter>
20            <z:BlurIconConverter x:Key="BlurIconConverter"></z:BlurIconConverter>
21        </ResourceDictionary>
22    </UserControl.Resources>
23    <Grid x:Name="MainGrid">
24
25        <Grid>
26            <Grid.Background>
27                <ImageBrush ImageSource="/WorkspaceManager;component/View/Image/bg.png" Opacity="0.95" Stretch="UniformToFill"/>
28            </Grid.Background>
29            <Grid.Effect>
30                <BlurEffect Radius="{Binding ElementName=InformationPanel, Path=Visibility, Converter={StaticResource ResourceKey=BlurIconConverter}}"></BlurEffect>
31            </Grid.Effect>
32            <Border>
33                <Grid>
34                    <Canvas Name="root" Background="{StaticResource ResourceKey=GridBrush}" RenderTransformOrigin="0.5, 0.5" MouseLeftButtonDown="root_MouseLeftButtonDown">
35                        <Grid Name="UserControlWrapperParent" Width="{Binding ElementName=MainGrid, Path=ActualWidth}" Height="{Binding ElementName=MainGrid, Path=ActualHeight}"/>
36                        <Canvas.LayoutTransform>
37                            <ScaleTransform x:Name="Scale" ScaleX="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=OneWay}" ScaleY="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=OneWay}"></ScaleTransform>
38                        </Canvas.LayoutTransform>
39                    </Canvas>
40                    <Border x:Name="BottomBoxParent" VerticalAlignment="Top">
41                        <e:BottomBox></e:BottomBox>
42                    </Border>
43                </Grid>
44            </Border>
45            <StackPanel Margin="0,0,0,0" Name="MainElementsBorder" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
46                <StackPanel.LayoutTransform>
47                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
48                </StackPanel.LayoutTransform>
49                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
50                    <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>
51                </Border>
52                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
53                    <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_1">
54                        <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
55                    </Button>
56                </Border>
57                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
58                    <Slider Name="SliderEditorSize" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
59                                    Minimum="0.5" Maximum="2" Width="100" Height="22"
60                                    Value="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=TwoWay}"/>
61                </Border>
62                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
63                    <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click">
64                        <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
65                    </Button>
66                </Border>
67            </StackPanel>
68        </Grid>
69       
70        <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Width="100" Height="200" Visibility="Hidden">
71            <Border Background="{StaticResource ResourceKey=HelpLinearBrush}" CornerRadius="0,10,10,0" BorderBrush="#406278" BorderThickness="1.5">
72               
73            </Border>   
74        </Grid>
75       
76        <Grid Width="auto" Height="auto" Name="InformationPanel" Visibility="Hidden">
77            <Grid.Background>
78                <SolidColorBrush Opacity="0.2" Color="Gray"/>
79            </Grid.Background>
80            <Grid x:Name="ProgressbarPanel">
81               
82            </Grid>
83            <DockPanel LastChildFill="True">
84                <DockPanel DockPanel.Dock="Top">
85                    <DockPanel.Background>
86                        <SolidColorBrush Color="Black" Opacity="0.3"></SolidColorBrush>
87                    </DockPanel.Background>
88                    <TextBlock DockPanel.Dock="Left" Text="Fullscreen" Foreground="WhiteSmoke" FontSize="20" Padding="5"></TextBlock>
89                    <Button DockPanel.Dock="Right" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" Name="CloseSettingsButton" Height="30" Width="30" Click="CloseButton_Click" Margin="5">
90                        <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
91                    </Button>
92                    <Grid></Grid>
93                </DockPanel>
94                <Grid DockPanel.Dock="Top" x:Name="CtrPanel" HorizontalAlignment="Stretch" Width="auto">
95                    <Grid.Background>
96                        <SolidColorBrush Color="Gray" Opacity="0.1"></SolidColorBrush>
97                    </Grid.Background>
98                </Grid>
99                <StackPanel DockPanel.Dock="Bottom" Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
100                    <StackPanel.LayoutTransform>
101                        <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
102                    </StackPanel.LayoutTransform>
103                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
104                        <Label Foreground="WhiteSmoke" VerticalAlignment="Top" ContentStringFormat="{}{0:F0} %" Content="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=OneWay, Converter={StaticResource ResourceKey=PercentageConverter}}" Width="42"></Label>
105                    </Border>
106                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
107                        <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_dec">
108                            <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
109                        </Button>
110                    </Border>
111                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
112                        <Slider x:Name="FullScreenScaleSlider" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
113                                Minimum="0.5" Maximum="2" Width="100" Height="22"
114                                Value="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=TwoWay}"/>
115                    </Border>
116                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
117                        <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_inc">
118                            <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
119                        </Button>
120                    </Border>
121                </StackPanel>
122                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
123                    <Grid x:Name="PrstPanel" Margin="100" Panel.ZIndex="-100">
124                        <Grid.LayoutTransform>
125                            <ScaleTransform x:Name="Scale2" ScaleX="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=OneWay}" ScaleY="{Binding Source={x:Static p:Settings.Default}, Path=FullScreenScale, Mode=OneWay}"></ScaleTransform>
126                        </Grid.LayoutTransform>
127                    </Grid>
128                </ScrollViewer>
129            </DockPanel>
130
131        </Grid>
132    </Grid>
133</UserControl>
Note: See TracBrowser for help on using the repository browser.