Skip to content

Instantly share code, notes, and snippets.

@xerxesb
Created March 17, 2010 05:27
Show Gist options
  • Save xerxesb/334950 to your computer and use it in GitHub Desktop.
Save xerxesb/334950 to your computer and use it in GitHub Desktop.
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Class="HelloWOrld.MainPage"
Width="640" Height="480" mc:Ignorable="d">
<UserControl.Resources>
<Storyboard x:Name="Storyboard2">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)">
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-99"/>
<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<Border x:Name="border" Margin="65,111,236,0" BorderBrush="Black" Height="74" VerticalAlignment="Top" Background="#FF28C513">
<Border.Projection>
<PlaneProjection/>
</Border.Projection>
<TextBlock FontSize="48" TextWrapping="Wrap" ><Run Text="Some "/><Run Text="shit"/></TextBlock>
<Border.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard Storyboard="{StaticResource Storyboard2}" />
</EventTrigger>
</Border.Triggers>
</Border>
</Grid>
</UserControl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment