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

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

-Major Style changes
-Fit to Screen added

File size: 5.5 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 Background="{StaticResource ResourceKey=NormalBrush}">
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 Name="ViewBoxParent">
34                    <ScrollViewer x:Name="ViewBox" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
35                        <e:ModifiedCanvas RenderTransformOrigin="0.5, 0.5" MouseLeftButtonDown="root_MouseLeftButtonDown" MouseMove="WorkSpaceEditorView_MouseMove">
36                            <Thumb Style="{StaticResource ResourceKey=NormalThumbStyle}" DragDelta="Thumb_DragDelta" DragStarted="Thumb_DragStarted" Width="{Binding Path=ActualWidth}" Height="{Binding Path=ActualHeight}"></Thumb>
37                            <Grid Name="UserControlWrapperParent" Width="{Binding Path=ActualWidth}" Height="{Binding Path=ActualHeight}"/>
38                            <e:ModifiedCanvas.LayoutTransform>
39                                <ScaleTransform x:Name="RootScale" 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>
40                            </e:ModifiedCanvas.LayoutTransform>
41                        </e:ModifiedCanvas>
42                    </ScrollViewer>
43                   
44                    <Border x:Name="BottomBoxParent" VerticalAlignment="Bottom">
45                        <e:BottomBox></e:BottomBox>
46                    </Border>
47                </Grid>
48            </Border>
49        </Grid>
50
51        <Grid Width="auto" Height="auto" Name="InformationPanel" Visibility="Hidden">
52            <Grid.Background>
53                <SolidColorBrush Opacity="0.2" Color="Gray"/>
54            </Grid.Background>
55            <Grid x:Name="ProgressbarPanel" Height="40" VerticalAlignment="Bottom">
56                <Grid x:Name="PercentageTextPanel" VerticalAlignment="Center" HorizontalAlignment="Center"></Grid>
57            </Grid>
58            <DockPanel LastChildFill="True">
59                <DockPanel DockPanel.Dock="Top">
60                    <DockPanel.Background>
61                        <SolidColorBrush Color="Black" Opacity="0.3"></SolidColorBrush>
62                    </DockPanel.Background>
63                    <TextBlock DockPanel.Dock="Left" Text="Fullscreen" Foreground="WhiteSmoke" FontSize="20" Padding="5"></TextBlock>
64                    <Button DockPanel.Dock="Right" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" Name="CloseSettingsButton" Height="30" Width="30" Click="CloseButton_Click" Margin="5">
65                        <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
66                    </Button>
67                    <Grid></Grid>
68                </DockPanel>
69                <Grid DockPanel.Dock="Top" x:Name="CtrPanel" HorizontalAlignment="Stretch" Width="auto">
70                    <Grid.Background>
71                        <SolidColorBrush Color="Gray" Opacity="0.1"></SolidColorBrush>
72                    </Grid.Background>
73                </Grid>
74                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="40">
75                    <Grid x:Name="PrstPanel" Panel.ZIndex="-100">
76                        <Grid.LayoutTransform>
77                            <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>
78                        </Grid.LayoutTransform>
79                    </Grid>
80                </ScrollViewer>
81            </DockPanel>
82
83        </Grid>
84    </Grid>
85</UserControl>
Note: See TracBrowser for help on using the repository browser.