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

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

-fixed "Fit to Screen"
-fixed Scrollbars
-fixed Dragging
-added custom names
-New: IControl- Presentation
--Loading adjusted
-New: Multi selection
-New: Copy /Past (not complete)
-New: Multi Dragging
-New: PluginContainerView Highlighting added

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