Storyboard as Resource : Storyboard « Animations « Silverlight






Storyboard as Resource

Storyboard as Resource
    

<UserControl x:Class='SilverlightApplication3.MainPage'
    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' 
    mc:Ignorable='d' 
    d:DesignWidth='640' d:DesignHeight='480'>
    <UserControl.Resources>
        <Storyboard x:Name="Move" Duration="00:00:00.00"/>
    </UserControl.Resources>
    <Canvas x:Name="LayoutRoot">
        <Ellipse Width="10" Height="10" Fill="#FFFFFF00" Stroke="#FF000000" x:Name="ball"/>
    </Canvas>
</UserControl>

   
    
    
    
  








Related examples in the same category

1.Rectangle Trigger and StoryboardRectangle Trigger and Storyboard
2.Storyboard EventsStoryboard Events
3.Storyboard PropertiesStoryboard Properties
4.Events of StoryBoardEvents of StoryBoard
5.Use two storyboards to control the slidein and slideoutUse two storyboards to control the slidein and slideout
6.Defining a Storyboard as a resource
7.Starting a Storyboard from code-behind
8.Syntax of Storyboard element with multiple animations
9.Animation overriding target of its parent StoryboardAnimation overriding target of its parent Storyboard
10.Start a story board with code
11.An animation that uses the playback methods and the Completed event
12.Pausing and resuming a storyboard with triggers