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

Last change on this file since 1847 was 1847, checked in by kopal, 11 years ago
  • added support for serializing/deserializing pictures into model files
File size: 6.2 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                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
34                    <Canvas Name="root" Background="{StaticResource ResourceKey=GridBrush}" RenderTransformOrigin="0.5, 0.5">
35                        <Grid Name="UserControlWrapper" 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                </ScrollViewer>
41            </Border>
42            <StackPanel Margin="0,0,0,0" Name="MainElementsBorder" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
43                <StackPanel.LayoutTransform>
44                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
45                </StackPanel.LayoutTransform>
46                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
47                    <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>
48                </Border>
49                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
50                    <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_1">
51                        <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
52                    </Button>
53                </Border>
54                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
55                    <Slider Name="SliderEditorSize" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
56                                    Minimum="0.5" Maximum="2" Width="100" Height="22"
57                                    Value="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=TwoWay}"/>
58                </Border>
59                <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
60                    <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click">
61                        <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
62                    </Button>
63                </Border>
64            </StackPanel>
65        </Grid>
66       
67        <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Width="100" Height="200" Visibility="Hidden">
68            <Border Background="{StaticResource ResourceKey=HelpLinearBrush}" CornerRadius="0,10,10,0" BorderBrush="#406278" BorderThickness="1.5">
69               
70            </Border>   
71        </Grid>
72       
73        <Grid Width="auto" Height="auto" Name="InformationPanel" Visibility="Hidden">
74            <Grid.Background>
75                <SolidColorBrush Opacity="0.2" Color="Gray"/>
76            </Grid.Background>
77            <DockPanel LastChildFill="True">
78                <DockPanel DockPanel.Dock="Top">
79                    <DockPanel.Background>
80                        <SolidColorBrush Color="Black" Opacity="0.3"></SolidColorBrush>
81                    </DockPanel.Background>
82                    <TextBlock DockPanel.Dock="Left" Text="Fullscreen" Foreground="WhiteSmoke" FontSize="20" Padding="5"></TextBlock>
83                    <Button DockPanel.Dock="Right" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" Name="CloseSettingsButton" Height="30" Width="30" Click="CloseSettingsButton_Click" Margin="5">
84                        <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
85                    </Button>
86                    <Grid></Grid>
87                </DockPanel>
88
89                <Grid x:Name="FullPresentation" Margin="100"></Grid>
90            </DockPanel>
91
92        </Grid>
93    </Grid>
94</UserControl>
Note: See TracBrowser for help on using the repository browser.