Ignore:
Timestamp:
Jan 4, 2011, 7:23:10 AM (11 years ago)
Author:
matkovic
Message:

-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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/Container/WorkSpaceEditorView.xaml

    r2067 r2280  
    2121        </ResourceDictionary>
    2222    </UserControl.Resources>
    23     <Grid x:Name="MainGrid">
     23    <ContentControl x:Name="Main" Background="Aqua">
     24        <Grid x:Name="MainGrid">
    2425
    25         <Grid Background="{StaticResource ResourceKey=NormalBrush}">
    26             <!--<Grid.Background>
     26            <Grid Background="{StaticResource ResourceKey=NormalBrush}">
     27                <!--<Grid.Background>
    2728                <ImageBrush ImageSource="/WorkspaceManager;component/View/Image/bg.png" Opacity="0.95" Stretch="UniformToFill"/>
    2829            </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>
     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>
    4281                    </ScrollViewer>
    43                    
    44                     <Border x:Name="BottomBoxParent" VerticalAlignment="Bottom">
    45                         <e:BottomBox></e:BottomBox>
    46                     </Border>
    47                 </Grid>
    48             </Border>
     82                </DockPanel>
     83
     84            </Grid>
    4985        </Grid>
     86    </ContentControl>
    5087
    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>
    8588</UserControl>
Note: See TracChangeset for help on using the changeset viewer.