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

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

-WorkSpaceEditorView: Fullscreen -> Zoom is now working & a lot more space for 'presentations'

File size: 8.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    <ContentControl x:Name="Main" Background="Aqua">
24        <Grid x:Name="MainGrid">
25            <Grid Background="{StaticResource ResourceKey=NormalBrush}">
26                <Grid.Effect>
27                    <BlurEffect Radius="{Binding ElementName=InformationPanel, Path=Visibility, Converter={StaticResource ResourceKey=BlurIconConverter}}"></BlurEffect>
28                </Grid.Effect>
29                <Border>
30                    <DockPanel Name="ViewBoxParent" LastChildFill="True">
31                        <Border x:Name="BottomBoxParent" DockPanel.Dock="Bottom">
32                            <e:BottomBox></e:BottomBox>
33                        </Border>
34                        <ScrollViewer x:Name="scrollViewer" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
35                            <e:ModifiedCanvas RenderTransformOrigin="0.5, 0.5" MouseLeftButtonDown="root_MouseLeftButtonDown" MouseMove="WorkSpaceEditorView_MouseMove">
36                                <Thumb PreviewMouseLeftButtonDown="Thumb_MouseLeftButtonDown" PreviewMouseLeftButtonUp="Thumb_MouseLeftButtonUp" 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                                <Rectangle Panel.ZIndex="10000000" Fill="#14FFFFFF" StrokeDashArray="5" Stroke="#FFFFFFFF" Visibility="Hidden" x:Name="rectangle" Width="50" Height="50"
39                            StrokeDashOffset="0" StrokeThickness="1" RadiusX="0" RadiusY="0" Canvas.Left="0" Canvas.Top="0">
40                                    <Rectangle.RenderTransform>
41                                        <TranslateTransform X="0" Y="0"></TranslateTransform>
42                                    </Rectangle.RenderTransform>
43                                </Rectangle>
44                                <e:ModifiedCanvas.LayoutTransform>
45                                    <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>
46                                </e:ModifiedCanvas.LayoutTransform>
47                            </e:ModifiedCanvas>
48                        </ScrollViewer>
49
50                    </DockPanel>
51                </Border>
52            </Grid>
53
54            <DockPanel Width="auto" Height="auto" Name="InformationPanel" Visibility="Hidden" LastChildFill="True">
55                <DockPanel.Background>
56                    <SolidColorBrush Color="#AA222222"/>
57                </DockPanel.Background>
58                <Grid x:Name="ProgressbarPanel" DockPanel.Dock="Bottom" Height="20" VerticalAlignment="Bottom" Background="#11FFFFFF">
59                    <Grid x:Name="PercentageTextPanel" VerticalAlignment="Center" HorizontalAlignment="Center"></Grid>
60                </Grid>
61                <DockPanel LastChildFill="True">
62                    <Grid DockPanel.Dock="Top">
63                        <Grid x:Name="CtrPanel" HorizontalAlignment="Stretch" Width="auto">
64                           
65                        </Grid>
66                        <DockPanel>
67                            <TextBlock DockPanel.Dock="Left" Text="Fullscreen" Foreground="WhiteSmoke" FontWeight="Medium" FontSize="14" Padding="2"></TextBlock>
68                            <Button DockPanel.Dock="Right" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" VerticalAlignment="Top" Name="CloseSettingsButton" Height="20" Width="20" Click="CloseButton_Click" Margin="3">
69                                <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
70                            </Button>
71                            <Grid></Grid>
72                        </DockPanel>
73                    </Grid>
74                    <StackPanel DockPanel.Dock="Bottom" Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
75                        <StackPanel.LayoutTransform>
76                            <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
77                        </StackPanel.LayoutTransform>
78                        <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
79                            <Label Foreground="Black" FontWeight="ExtraBold" VerticalAlignment="Top" FontSize="16" ContentStringFormat="{}{0:F0} %" Content="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=OneWay, Converter={StaticResource ResourceKey=PercentageConverter}}"></Label>
80                        </Border>
81                        <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
82                            <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_dec">
83                                <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
84                            </Button>
85                        </Border>
86                        <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
87                            <Slider x:Name="FullScreenScaleSlider" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
88                                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"
89                                Value="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=TwoWay}"/>
90                        </Border>
91                        <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
92                            <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_inc">
93                                <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
94                            </Button>
95                        </Border>
96                    </StackPanel>
97                    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" x:Name="PrstPanelRoot">
98                        <Grid x:Name="PrstPanel">
99                            <Grid.LayoutTransform>
100                                <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>
101                            </Grid.LayoutTransform>
102                        </Grid>
103                    </ScrollViewer>
104                </DockPanel>
105
106            </DockPanel>
107        </Grid>
108    </ContentControl>
109
110</UserControl>
Note: See TracBrowser for help on using the repository browser.