Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (30 sloc) 1 KB
<!-- <SnippetFillBehaviorExampleWholePage> -->
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="FillBehavior Example">
<StackPanel Margin="10">
<!-- <SnippetFillBehaviorExampleRectangleInline> -->
<Rectangle
Name="MyRectangle"
Width="100"
Height="100"
Fill="Blue">
<Rectangle.Triggers>
<!-- Animates the rectangle's opacity. -->
<EventTrigger RoutedEvent="Rectangle.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="MyRectangle"
Storyboard.TargetProperty="Opacity"
From="1.0" To="0" Duration="0:0:5" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Rectangle.Triggers>
</Rectangle>
<!-- </SnippetFillBehaviorExampleRectangleInline> -->
</StackPanel>
</Page>
<!-- </SnippetFillBehaviorExampleWholePage> -->