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

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

-fixed a Line issue
-Path finding only at "Mouse-Drop"

File size: 6.3 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            <Grid Width="auto" Height="auto" Name="InformationPanel" Visibility="Hidden">
55                <Grid.Background>
56                    <SolidColorBrush Opacity="0.2" Color="Gray"/>
57                </Grid.Background>
58                <Grid x:Name="ProgressbarPanel" Height="40" VerticalAlignment="Bottom">
59                    <Grid x:Name="PercentageTextPanel" VerticalAlignment="Center" HorizontalAlignment="Center"></Grid>
60                </Grid>
61                <DockPanel LastChildFill="True">
62                    <DockPanel DockPanel.Dock="Top">
63                        <DockPanel.Background>
64                            <SolidColorBrush Color="Black" Opacity="0.3"></SolidColorBrush>
65                        </DockPanel.Background>
66                        <TextBlock DockPanel.Dock="Left" Text="Fullscreen" Foreground="WhiteSmoke" FontSize="20" Padding="5"></TextBlock>
67                        <Button DockPanel.Dock="Right" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" Name="CloseSettingsButton" Height="30" Width="30" Click="CloseButton_Click" Margin="5">
68                            <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
69                        </Button>
70                        <Grid></Grid>
71                    </DockPanel>
72                    <Grid DockPanel.Dock="Top" x:Name="CtrPanel" HorizontalAlignment="Stretch" Width="auto">
73                        <Grid.Background>
74                            <SolidColorBrush Color="Gray" Opacity="0.1"></SolidColorBrush>
75                        </Grid.Background>
76                    </Grid>
77                    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="40">
78                        <Grid x:Name="PrstPanel" Panel.ZIndex="-100">
79                            <Grid.LayoutTransform>
80                                <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>
81                            </Grid.LayoutTransform>
82                        </Grid>
83                    </ScrollViewer>
84                </DockPanel>
85
86            </Grid>
87        </Grid>
88    </ContentControl>
89
90</UserControl>
Note: See TracBrowser for help on using the repository browser.