Ignore:
Timestamp:
Nov 9, 2010, 2:21:21 AM (11 years ago)
Author:
matkovic
Message:

-Major Style changes
-Fit to Screen added

File:
1 edited

Legend:

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

    r2007 r2067  
    2323    <Grid x:Name="MainGrid">
    2424
    25         <Grid>
    26             <Grid.Background>
     25        <Grid Background="{StaticResource ResourceKey=NormalBrush}">
     26            <!--<Grid.Background>
    2727                <ImageBrush ImageSource="/WorkspaceManager;component/View/Image/bg.png" Opacity="0.95" Stretch="UniformToFill"/>
    28             </Grid.Background>
     28            </Grid.Background>-->
    2929            <Grid.Effect>
    3030                <BlurEffect Radius="{Binding ElementName=InformationPanel, Path=Visibility, Converter={StaticResource ResourceKey=BlurIconConverter}}"></BlurEffect>
    3131            </Grid.Effect>
    3232            <Border>
    33                 <Grid>
     33                <Grid Name="ViewBoxParent">
    3434                    <ScrollViewer x:Name="ViewBox" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
    35                         <e:ModifiedCanvas Background="{StaticResource ResourceKey=GridBrush}" RenderTransformOrigin="0.5, 0.5" MouseLeftButtonDown="root_MouseLeftButtonDown" MouseMove="WorkSpaceEditorView_MouseMove">
    36                             <Grid Name="UserControlWrapperParent" Width="{Binding ElementName=MainGrid, Path=ActualWidth}" Height="{Binding ElementName=MainGrid, Path=ActualHeight}"/>
     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}"/>
    3738                            <e:ModifiedCanvas.LayoutTransform>
    3839                                <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>
     
    4041                        </e:ModifiedCanvas>
    4142                    </ScrollViewer>
    42                     <Border x:Name="BottomBoxParent" VerticalAlignment="Top">
     43                   
     44                    <Border x:Name="BottomBoxParent" VerticalAlignment="Bottom">
    4345                        <e:BottomBox></e:BottomBox>
    4446                    </Border>
    4547                </Grid>
    4648            </Border>
    47             <StackPanel Margin="0,0,0,0" Name="MainElementsBorder" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
    48                 <StackPanel.LayoutTransform>
    49                     <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
    50                 </StackPanel.LayoutTransform>
    51                 <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    52                     <Label Foreground="WhiteSmoke" VerticalAlignment="Top" ContentStringFormat="{}{0:F0} %" Content="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=OneWay, Converter={StaticResource ResourceKey=PercentageConverter}}" Width="42"></Label>
    53                 </Border>
    54                 <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    55                     <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_1">
    56                         <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
    57                     </Button>
    58                 </Border>
    59                 <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    60                     <Slider Name="SliderEditorSize" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
    61                                     Minimum="0.5" Maximum="2" Width="100" Height="22"
    62                                     Value="{Binding Source={x:Static p:Settings.Default}, Path=EditScale, Mode=TwoWay}"/>
    63                 </Border>
    64                 <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    65                     <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click">
    66                         <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
    67                     </Button>
    68                 </Border>
    69             </StackPanel>
    7049        </Grid>
    71        
    72         <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Width="100" Height="200" Visibility="Hidden">
    73             <Border Background="{StaticResource ResourceKey=HelpLinearBrush}" CornerRadius="0,10,10,0" BorderBrush="#406278" BorderThickness="1.5">
    74                
    75             </Border>   
    76         </Grid>
    77        
     50
    7851        <Grid Width="auto" Height="auto" Name="InformationPanel" Visibility="Hidden">
    7952            <Grid.Background>
     
    9972                    </Grid.Background>
    10073                </Grid>
    101                 <StackPanel DockPanel.Dock="Bottom" Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
    102                     <StackPanel.LayoutTransform>
    103                         <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
    104                     </StackPanel.LayoutTransform>
    105                     <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    106                         <Label Foreground="WhiteSmoke" VerticalAlignment="Top" ContentStringFormat="{}{0:F0} %" Content="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=OneWay, Converter={StaticResource ResourceKey=PercentageConverter}}" Width="42"></Label>
    107                     </Border>
    108                     <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    109                         <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_dec">
    110                             <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
    111                         </Button>
    112                     </Border>
    113                     <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    114                         <Slider x:Name="FullScreenScaleSlider" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
    115                                 Minimum="0.5" Maximum="2" Width="100" Height="22"
    116                                 Value="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=TwoWay}"/>
    117                     </Border>
    118                     <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
    119                         <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_inc">
    120                             <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
    121                         </Button>
    122                     </Border>
    123                 </StackPanel>
    12474                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="40">
    12575                    <Grid x:Name="PrstPanel" Panel.ZIndex="-100">
Note: See TracChangeset for help on using the changeset viewer.