Changeset 1728


Ignore:
Timestamp:
Jul 6, 2010, 6:19:17 AM (11 years ago)
Author:
matkovic
Message:

-added Animations
-added loupe image

Location:
trunk/CrypPlugins/WorkspaceManager
Files:
1 added
5 edited

Legend:

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

    r1717 r1728  
    127127            </Grid>
    128128        </DockPanel>
    129         <Border Name="ShowAllData" Visibility="Collapsed" MaxHeight="250" MaxWidth="150" MinWidth="140" Margin="7,26,0,0" VerticalAlignment="Top" CornerRadius="{Binding ElementName=Window,Path=CornerRadius}" BorderBrush="{Binding ElementName=Window,Path=BorderBrush}" BorderThickness="{Binding ElementName=Window,Path=BorderThickness}">
     129        <Border Name="ShowAllData" Opacity="0" Panel.ZIndex="-1" Visibility="Visible" Width="125" Margin="-80,30,0,0" VerticalAlignment="Top" CornerRadius="{Binding ElementName=Window,Path=CornerRadius}" BorderBrush="{Binding ElementName=Window,Path=BorderBrush}" BorderThickness="{Binding ElementName=Window,Path=BorderThickness}">
     130            <Border.RenderTransform>
     131                <ScaleTransform ScaleX="0" ScaleY="0"></ScaleTransform>
     132            </Border.RenderTransform>
    130133            <Border.Effect>
    131134                <DropShadowEffect BlurRadius="10" Direction="0" Color="Black" RenderingBias="Quality" ShadowDepth="0" ></DropShadowEffect>
  • trunk/CrypPlugins/WorkspaceManager/View/Container/PluginContainerView.xaml.cs

    r1718 r1728  
    317317        private void ShowAllButton_Click(object sender, RoutedEventArgs e)
    318318        {
    319             if (ShowAllData.Visibility == Visibility.Collapsed)
    320             {
    321                 ShowAllData.Visibility = Visibility.Visible;
     319            if (ShowAllData.Opacity == 0)
     320            {
     321                ShowAllData.BeginStoryboard(Resources["Appear"] as Storyboard);
     322             
    322323                return;
    323324            }
    324325
    325             if (ShowAllData.Visibility == Visibility.Visible)
    326             {
    327                 ShowAllData.Visibility = Visibility.Collapsed;
     326            if (ShowAllData.Opacity == 1)
     327            {
     328                ShowAllData.BeginStoryboard(Resources["Disappear"] as Storyboard);
     329               
    328330                return;
    329331            }
  • trunk/CrypPlugins/WorkspaceManager/View/Resource/Animations.xaml

    r1717 r1728  
    3030    </Storyboard>
    3131
     32    <Storyboard x:Key="VisiblityCollapsed" BeginTime="00:00:00">
     33        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
     34            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Collapsed}" />
     35        </ObjectAnimationUsingKeyFrames>
     36    </Storyboard>
     37
     38    <Storyboard x:Key="VisiblityVisible" BeginTime="00:00:00.2">
     39        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
     40            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" />
     41        </ObjectAnimationUsingKeyFrames>
     42    </Storyboard>
     43
     44    <Storyboard x:Key="RollOut" AccelerationRatio="0.2" DecelerationRatio="0.2">
     45        <ThicknessAnimation
     46                Storyboard.TargetProperty="Margin"
     47                Duration="00:00:00.2" FillBehavior="HoldEnd" To="0,30,0,0" />
     48       
     49        <!--<ObjectAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetProperty="Visibility">
     50            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" />
     51        </ObjectAnimationUsingKeyFrames>-->
     52
     53    </Storyboard>
     54   
     55    <Storyboard x:Key="RollBack">
     56        <ThicknessAnimation
     57                Storyboard.TargetProperty="Margin"
     58                Duration="00:00:00.2" FillBehavior="HoldEnd" To="-80,30,0,0" />
     59       
     60        <!--<ObjectAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetProperty="Visibility">
     61            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Collapsed}" />
     62        </ObjectAnimationUsingKeyFrames>-->
     63
     64    </Storyboard>
     65
     66    <Storyboard x:Key="Disappear" AccelerationRatio="0.3" DecelerationRatio="0.3">
     67        <DoubleAnimation To="0" Duration="00:00:00.5" Storyboard.TargetProperty="Opacity"/>
     68        <DoubleAnimation To="0" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"/>
     69        <DoubleAnimation To="0" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"/>
     70        <ThicknessAnimation
     71                Storyboard.TargetProperty="Margin"
     72                Duration="00:00:00.5" FillBehavior="HoldEnd" To="-80,30,0,0" />
     73    </Storyboard>
     74
     75    <Storyboard x:Key="Appear" AccelerationRatio="0.3" DecelerationRatio="0.3">
     76        <DoubleAnimation To="1" Duration="00:00:00.5" Storyboard.TargetProperty="Opacity"/>
     77        <DoubleAnimation To="1" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"/>
     78        <DoubleAnimation To="1" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"/>
     79        <ThicknessAnimation
     80                Storyboard.TargetProperty="Margin"
     81                Duration="00:00:00.5" FillBehavior="HoldEnd" To="0,30,0,0" />
     82    </Storyboard>
     83   
     84   
     85
    3286</ResourceDictionary>
  • trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/Search.xaml

    r1717 r1728  
    3636                        <DropShadowEffect BlurRadius="3" Color="Black" Direction="0" ShadowDepth="0"  Opacity="1"></DropShadowEffect>
    3737                    </Border.Effect>
    38                    
     38                        <Image Source="/WorkspaceManager;component/View/Image/search.png" SnapsToDevicePixels="True" Margin="1,1,1,1" Opacity="0.3" HorizontalAlignment="Right"/>
     39         
    3940                </Border>
    4041            </Grid>
  • trunk/CrypPlugins/WorkspaceManager/WorkspaceManager.csproj

    r1717 r1728  
    220220    <Resource Include="View\Image\warning.png" />
    221221  </ItemGroup>
     222  <ItemGroup>
     223    <Resource Include="View\Image\search.png" />
     224  </ItemGroup>
    222225  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    223226  <!--<PropertyGroup>
Note: See TracChangeset for help on using the changeset viewer.