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/PluginContainerView.xaml

    r1853 r1892  
    1919            <z:OverlapConverter x:Key="OverlapConverter"></z:OverlapConverter>
    2020            <z:BlurViewStateConverter x:Key="BlurViewStateConverter"></z:BlurViewStateConverter>
     21            <z:ViewStateIconConverter x:Key="ViewStateIconConverter"></z:ViewStateIconConverter>
    2122
    2223            <Button x:Key="SettingButton" Name="SettingButton" ToolTip="Settings" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" MouseEnter="SettingButton_MouseEnter" Height="30" Width="30" Click="OptionChooseHandler">
     
    3637            </Button>
    3738
    38             <Button x:Key="MaxButton" Name="MaxButton" ToolTip="Full View" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" MouseEnter="SettingButton_MouseEnter" Height="30" Width="30" Click="OptionChooseHandler">
     39            <Button x:Key="MaxButton" Name="MaxButton" ToolTip="Full View" Style="{StaticResource ResourceKey=OptionPluginContainerButtonStyle}" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=Fullscreen}" MouseEnter="SettingButton_MouseEnter" Height="30" Width="30" Click="OptionChooseHandler">
    3940                <Image Source="/WorkspaceManager;component/View/Image/max.png" HorizontalAlignment="Center" SnapsToDevicePixels="True">
    4041                    <Image.Effect>
     
    7172    <DockPanel Name="Root" LastChildFill="True">
    7273       
    73         <DockPanel x:Name="PluginBase" DockPanel.Dock="Left" VerticalAlignment="Top" MinHeight="105" MinWidth="90" Width="90" Height="105">
     74        <DockPanel x:Name="PluginBase" DockPanel.Dock="Left" VerticalAlignment="Top" MinHeight="115" MinWidth="100" Width="100" Height="115">
    7475            <DockPanel.Background>
    7576                <SolidColorBrush Opacity="0.01" Color="#444444"></SolidColorBrush>
     
    7778           
    7879            <Grid DockPanel.Dock="Top">
    79                 <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="{Binding ElementName=Window, Path=ActualWidth}">
    80                     <Grid.RenderTransform>
    81                         <TranslateTransform Y="20"></TranslateTransform>
    82                     </Grid.RenderTransform>
    83                     <ProgressBar VerticalAlignment="Center" x:Name="ProgressBar" Height="12" Width="Auto" Background="Black" OverridesDefaultStyle="True" Foreground="Blue" Maximum="1">
    84                         <!--<ProgressBar.OpacityMask>
    85                             <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
    86                                 <GradientBrush.GradientStops>
    87                                     <GradientStopCollection>
    88                                         <GradientStop Color="Transparent" Offset="0.0"/>
    89                                         <GradientStop Color="Black" Offset="0.5"/>
    90                                         <GradientStop Color="Transparent" Offset="1.0"/>
    91                                     </GradientStopCollection>
    92                                 </GradientBrush.GradientStops>
    93                             </LinearGradientBrush>
    94                         </ProgressBar.OpacityMask>
    95                         <ProgressBar.Resources>
    96                             <ResourceDictionary Source="/PresentationFramework.Aero;v3.0.0.0;31bf3856ad364e35;component/themes/aero.normalcolor.xaml"/>
    97                         </ProgressBar.Resources>-->
    98                     </ProgressBar>
    99                     <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
    100                         <TextBlock x:Name="Percentage" FontSize="11" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="WhiteSmoke" Text="{Binding ElementName=ProgressBar, Path=Value, Converter={StaticResource ResourceKey=PercentageConverter}, FallbackValue=error}" />
    101                         <TextBlock FontSize="11" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="WhiteSmoke" Text="%"/>
    102                     </StackPanel>
    103                 </Grid>
    104 
    10580                <StackPanel Name="ControlPanel" Visibility="Visible" Opacity="0" Orientation="Horizontal" HorizontalAlignment="Right">
    10681
     
    10984                            <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
    11085                        </Button.LayoutTransform>
    111                         <Image Source="/WorkspaceManager;component/View/Image/minimize.png" HorizontalAlignment="Center" SnapsToDevicePixels="True">
     86                        <Image Source="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateIconConverter}}" HorizontalAlignment="Center" SnapsToDevicePixels="True">
    11287                            <Image.Effect>
    11388                                <DropShadowEffect Color="Black" ShadowDepth="0"></DropShadowEffect>
    11489                            </Image.Effect>
    11590                        </Image>
    116                     </Button>
    117 
    118                     <Button x:Name="play" Height="20" Width="20" Style="{StaticResource ResourceKey=DeletePluginContainerButtonStyle}" Margin="0,0,0,5" Click="Button_Click">
    119                         <Button.LayoutTransform>
    120                             <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
    121                         </Button.LayoutTransform>
    122                         <Image Source="/WorkspaceManager;component/View/Image/play.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
    12391                    </Button>
    12492
     
    160128                <Grid Margin="3">
    161129                    <Border Name="Window" BorderThickness="0" BorderBrush="Transparent" Margin="8">
     130                       
    162131                        <Grid>
    163                             <DockPanel LastChildFill="True">
     132                            <Grid x:Name="ProgressbarRoot">
     133                                <Grid x:Name="ProgressbarParent">
     134                                    <ProgressBar VerticalAlignment="Stretch" Margin="0,0,0,0" x:Name="ProgressBar" Height="auto" Width="Auto" Background="Transparent" Style="{StaticResource ResourceKey=ProgressbarStyle}" Maximum="1" Foreground="{StaticResource ResourceKey=ProgressbarLinearGradientBrush}">
     135                                    </ProgressBar>
     136                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,0">
     137                                        <StackPanel.RenderTransform>
     138                                            <TranslateTransform Y="4"></TranslateTransform>
     139                                        </StackPanel.RenderTransform>
     140                                        <TextBlock x:Name="Percentage" FontFamily="IrisUPC" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="WhiteSmoke" Text="{Binding ElementName=ProgressBar, Path=Value, Converter={StaticResource ResourceKey=PercentageConverter}, FallbackValue=error}" />
     141                                        <TextBlock FontSize="20" FontFamily="IrisUPC" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="WhiteSmoke" Text="%"/>
     142                                    </StackPanel>
     143                                </Grid>
     144                            </Grid>
     145                            <DockPanel LastChildFill="True" Margin="5">
    164146
    165147                                <Border Panel.ZIndex="-1" Name="Window2" CornerRadius="5,5,5,5" BorderThickness="0" BorderBrush="Transparent" MinWidth="50">
     
    183165                                            <RowDefinition Height="*"/>
    184166                                        </Grid.RowDefinitions>
    185                                         <Grid Grid.Row="0">
     167                                        <Grid x:Name="OptPanelParent" Grid.Row="0">
    186168                                            <Border x:Name="IconPanel" Visibility="{Binding ElementName=ViewPanel, Path=Visibility, Converter={StaticResource ResourceKey=VisibilityConverter}}">
    187                                                 <Border.Effect>
     169                                                <!--<Border.Effect>
    188170                                                    <BlurEffect Radius="{Binding ElementName=OptionPanel, Path=Visibility, Converter={StaticResource ResourceKey=BlurValueConverter}}"></BlurEffect>
    189                                                 </Border.Effect>
     171                                                </Border.Effect>-->
    190172
    191173                                            </Border>
    192                                             <Grid x:Name="OptionPanel" Height="50" Visibility="Collapsed">
     174                                            <Grid x:Name="OptionPanel" Height="50" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=OptionPanel}">
    193175                                                <Grid.Background>
    194                                                     <SolidColorBrush Color="Black" Opacity="0.5"></SolidColorBrush>
     176                                                    <SolidColorBrush Color="Black" Opacity="0.3"></SolidColorBrush>
    195177                                                </Grid.Background>
    196178                                                <Border Height="13" VerticalAlignment="Bottom">
     
    253235                                            </Grid>
    254236                                        </Grid>
    255                                        
    256                                         <Grid Name="ViewPanel" Width="Auto" Height="Auto" Grid.Row="1" Visibility="Collapsed" Margin="5,5,5,5">
    257                                             <Border x:Name="SettingsPanel" Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=SettingsPanel}" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=SettingsPanel}"></Border>
    258                                             <Border x:Name="PresentationPanel" Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=PresentationPanel}" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=PresentationPanel}"></Border>
    259                                             <Border x:Name="LogPanel" Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=LogPanel}" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=LogPanel}">
    260                                                 <e:LogPresentation></e:LogPresentation>
    261                                             </Border>
    262                                             <ScrollViewer Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=DataPanel}" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
    263                                                 <StackPanel Orientation="Vertical" x:Name="DataPanel" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=DataPanel}"></StackPanel>
    264                                             </ScrollViewer>
     237
     238                                        <Grid x:Name="ViewPanelParent" Grid.Row="1" Margin="8.5">
     239                                            <Grid Name="ViewPanel" Width="Auto" Height="Auto" Visibility="Collapsed" Margin="5,5,5,5">
     240                                                <Border x:Name="SettingsPanel" Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=SettingsPanel}" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=SettingsPanel}"></Border>
     241                                                <Border x:Name="PresentationPanel" Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=PresentationPanel}" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=PresentationPanel}"></Border>
     242                                                <Border x:Name="LogPanel" Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=LogPanel}" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=LogPanel}">
     243                                                    <e:LogPresentation></e:LogPresentation>
     244                                                </Border>
     245                                                <ScrollViewer Panel.ZIndex="{Binding Path=ViewState, Converter={StaticResource ResourceKey=OverlapConverter}, ConverterParameter=DataPanel}" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
     246                                                    <StackPanel Orientation="Vertical" x:Name="DataPanel" Visibility="{Binding Path=ViewState, Converter={StaticResource ResourceKey=ViewStateConverter}, ConverterParameter=DataPanel}"></StackPanel>
     247                                                </ScrollViewer>
     248                                            </Grid>
    265249                                        </Grid>
     250                                        <Button x:Name="play" Height="25" Width="25" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right" Style="{StaticResource ResourceKey=DeletePluginContainerButtonStyle}" Click="Button_Click">
     251                                            <Button.LayoutTransform>
     252                                                <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
     253                                            </Button.LayoutTransform>
     254                                            <Image x:Name="playimg" Source="/WorkspaceManager;component/View/Image/play.png" RenderOptions.ClearTypeHint="Enabled" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
     255                                        </Button>
    266256                                    </Grid>
    267257                                   
     
    273263            </Grid>
    274264        </DockPanel>
    275         <Popup x:Name="BubblePopup" PopupAnimation="Fade" HorizontalOffset="70" VerticalOffset="25" PlacementTarget="{Binding ElementName=ControlPanel}" Placement="Top" StaysOpen="False" AllowsTransparency="True" Width="130" Height="70">
     265        <Popup x:Name="BubblePopup" PopupAnimation="Fade" HorizontalOffset="-50" VerticalOffset="25" PlacementTarget="{Binding ElementName=ControlPanel}" Placement="Top" StaysOpen="False" AllowsTransparency="True" Width="300" Height="120">
    276266            <Grid x:Name="BubbleGrid" Margin="2">
    277267                <Grid.Effect>
     
    350340                                </StackPanel>
    351341                            </Button>
    352 
    353342                        </StackPanel>
     343                        <ScrollViewer Height="100" Width="300">
     344                            <Grid>
     345                                <TextBlock x:Name="LogReport" TextWrapping="Wrap" FontSize="18"></TextBlock>
     346                            </Grid>
     347                        </ScrollViewer>
    354348                    </StackPanel>
    355349                </Border>
    356                 <Path Fill="#ffffec" Stretch="Fill" Stroke="#f8f692" HorizontalAlignment="Left" Margin="30,-1.35,0,0" Width="25" Grid.Row="1" Data="M18,154.45381 L29.999666,187.66699 40.791059,154.54395">
     350                <Path Fill="#ffffec" Stretch="Fill" Stroke="#f8f692" HorizontalAlignment="Left" Margin="-40,-1.35,0,0" Width="25" Grid.Row="1" Data="M18,154.45381 L29.999666,187.66699 40.791059,154.54395">
    357351                    <Path.RenderTransform>
    358352                        <ScaleTransform ScaleY="0.5"></ScaleTransform>
Note: See TracChangeset for help on using the changeset viewer.