Ignore:
Timestamp:
Sep 2, 2010, 10:06:52 AM (11 years ago)
Author:
matkovic
Message:

-Fullscreen enhanced
-TextInput added
-Picture scaling added
-Textinput scaling added
-Textinput format command added
-Several style changes
-Progressbar redesigned
-Last log message now appearing
-IControlContainer commenced
-Several icons added
-Plugin state now stored and loaded
-Plugin height and width now storing and loading
-Several misc changes

File:
1 edited

Legend:

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

    r1847 r1892  
    3131            </Grid.Effect>
    3232            <Border>
    33                 <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
    34                     <Canvas Name="root" Background="{StaticResource ResourceKey=GridBrush}" RenderTransformOrigin="0.5, 0.5">
    35                         <Grid Name="UserControlWrapper" Width="{Binding ElementName=MainGrid, Path=ActualWidth}" Height="{Binding ElementName=MainGrid, Path=ActualHeight}"/>
     33                <Grid>
     34                    <Canvas Name="root" Background="{StaticResource ResourceKey=GridBrush}" RenderTransformOrigin="0.5, 0.5" MouseLeftButtonDown="root_MouseLeftButtonDown">
     35                        <Grid Name="UserControlWrapperParent" Width="{Binding ElementName=MainGrid, Path=ActualWidth}" Height="{Binding ElementName=MainGrid, Path=ActualHeight}"/>
    3636                        <Canvas.LayoutTransform>
    3737                            <ScaleTransform x:Name="Scale" 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>
    3838                        </Canvas.LayoutTransform>
    3939                    </Canvas>
    40                 </ScrollViewer>
     40                    <Border x:Name="BottomBoxParent" VerticalAlignment="Top">
     41                        <e:BottomBox></e:BottomBox>
     42                    </Border>
     43                </Grid>
    4144            </Border>
    4245            <StackPanel Margin="0,0,0,0" Name="MainElementsBorder" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
     
    7578                <SolidColorBrush Opacity="0.2" Color="Gray"/>
    7679            </Grid.Background>
     80            <Grid x:Name="ProgressbarPanel">
     81               
     82            </Grid>
    7783            <DockPanel LastChildFill="True">
    7884                <DockPanel DockPanel.Dock="Top">
     
    8187                    </DockPanel.Background>
    8288                    <TextBlock DockPanel.Dock="Left" Text="Fullscreen" Foreground="WhiteSmoke" FontSize="20" Padding="5"></TextBlock>
    83                     <Button DockPanel.Dock="Right" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" Name="CloseSettingsButton" Height="30" Width="30" Click="CloseSettingsButton_Click" Margin="5">
     89                    <Button DockPanel.Dock="Right" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" Name="CloseSettingsButton" Height="30" Width="30" Click="CloseButton_Click" Margin="5">
    8490                        <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
    8591                    </Button>
    8692                    <Grid></Grid>
    8793                </DockPanel>
    88 
    89                 <Grid x:Name="FullPresentation" Margin="100"></Grid>
     94                <Grid DockPanel.Dock="Top" x:Name="CtrPanel" HorizontalAlignment="Stretch" Width="auto">
     95                    <Grid.Background>
     96                        <SolidColorBrush Color="Gray" Opacity="0.1"></SolidColorBrush>
     97                    </Grid.Background>
     98                </Grid>
     99                <StackPanel DockPanel.Dock="Bottom" Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
     100                    <StackPanel.LayoutTransform>
     101                        <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
     102                    </StackPanel.LayoutTransform>
     103                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
     104                        <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>
     105                    </Border>
     106                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
     107                        <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_dec">
     108                            <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/reduce.png" Width="18" Height="18"></Image>
     109                        </Button>
     110                    </Border>
     111                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
     112                        <Slider x:Name="FullScreenScaleSlider" Ticks="1,2" TickPlacement="BottomRight" Style="{StaticResource ResourceKey=SliderStyle}"
     113                                Minimum="0.5" Maximum="2" Width="100" Height="22"
     114                                Value="{Binding Source={x:Static p:Settings.Default}, Path=FullscreenScale, Mode=TwoWay}"/>
     115                    </Border>
     116                    <Border Margin="1,1,1,1" Opacity="0.85" CornerRadius="5,5,0,0">
     117                        <Button Height="18" Margin="5,2,5,0" Style="{StaticResource ResourceKey=ScalePluginContainerButtonStyle}" Click="Button_Click_Full_inc">
     118                            <Image VerticalAlignment="Top" Source="/WorkspaceManager;component/View/Image/increase.png" Width="18" Height="18"></Image>
     119                        </Button>
     120                    </Border>
     121                </StackPanel>
     122                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
     123                    <Grid x:Name="PrstPanel" Margin="100" Panel.ZIndex="-100">
     124                        <Grid.LayoutTransform>
     125                            <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>
     126                        </Grid.LayoutTransform>
     127                    </Grid>
     128                </ScrollViewer>
    90129            </DockPanel>
    91130
Note: See TracChangeset for help on using the changeset viewer.