Diskuze: C# - animace pohybu obrázku z hora gridu do spodu gridu (Na ose Y)
V předchozím kvízu, Test znalostí C# .NET online, jsme si ověřili nabyté zkušenosti z kurzu.
Zobrazeno 2 zpráv z 2.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
V předchozím kvízu, Test znalostí C# .NET online, jsme si ověřili nabyté zkušenosti z kurzu.
toto?
<Grid HorizontalAlignment="Left" Height="250" Margin="69,54,0,0" VerticalAlignment="Top" Width="100" RenderTransformOrigin="0.5,0.5">
<Grid.RenderTransform>
<ScaleTransform ScaleY="-1" ScaleX="1"/>
</Grid.RenderTransform>
<Border ClipToBounds="True" >
<StackPanel Margin="0,-25,0,0" Name="stack" >
<StackPanel.Triggers>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard>
<Storyboard Storyboard.TargetName="stack" Storyboard.TargetProperty="Margin">
<ThicknessAnimation From="0,-25,0,0" To="0,-325,0,0" BeginTime="0:0:1" Duration="0:0:3" >
<ThicknessAnimation.EasingFunction>
<BackEase Amplitude="0.4"/>
</ThicknessAnimation.EasingFunction>
</ThicknessAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</StackPanel.Triggers>
<Rectangle Height="100" Width="100" Fill="Red"/>
<Rectangle Height="100" Width="100" Fill="Green"/>
<Rectangle Height="100" Width="100" Fill="Blue"/>
<Rectangle Height="100" Width="100" Fill="Gray"/>
<Rectangle Height="100" Width="100" Fill="Orange"/>
<Rectangle Height="100" Width="100" Fill="Purple"/>
<Rectangle Height="100" Width="100" Fill="YellowGreen"/>
</StackPanel>
</Border>
<Border BorderBrush="Black" BorderThickness="2" Width="100" Height="100" />
</Grid>
Zobrazeno 2 zpráv z 2.