Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <!-- <SnippetRectangleOpacityFadeExampleWholePage> --> | |
| <Page | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| WindowTitle="Fading Rectangle Example"> | |
| <StackPanel Margin="10"> | |
| <!-- <SnippetRectangleOpacityFadeExampleInline_1> --> | |
| <Rectangle | |
| Name="MyRectangle" | |
| Width="100" | |
| Height="100" | |
| Fill="Blue"> | |
| <Rectangle.Triggers> | |
| <!-- <SnippetRectangleOpacityFadeExampleInline_2> --> | |
| <!-- Animates the rectangle's opacity. --> | |
| <EventTrigger RoutedEvent="Rectangle.Loaded"> | |
| <!-- <SnippetRectangleOpacityFadeExampleInline_3> --> | |
| <BeginStoryboard> | |
| <!-- <SnippetRectangleOpacityFadeExampleInline_4> --> | |
| <Storyboard> | |
| <DoubleAnimation | |
| Storyboard.TargetName="MyRectangle" | |
| Storyboard.TargetProperty="Opacity" | |
| From="1.0" To="0.0" Duration="0:0:5" | |
| AutoReverse="True" RepeatBehavior="Forever" /> | |
| </Storyboard> | |
| <!-- </SnippetRectangleOpacityFadeExampleInline_4> --> | |
| </BeginStoryboard> | |
| <!-- </SnippetRectangleOpacityFadeExampleInline_3> --> | |
| </EventTrigger> | |
| <!-- </SnippetRectangleOpacityFadeExampleInline_2> --> | |
| </Rectangle.Triggers> | |
| </Rectangle> | |
| <!-- </SnippetRectangleOpacityFadeExampleInline_1> --> | |
| </StackPanel> | |
| </Page> | |
| <!-- </SnippetRectangleOpacityFadeExampleWholePage> --> |