~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to test/xaml/clock/clock15.xaml

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Canvas x:Name="parentCanvas"
 
2
        xmlns="http://schemas.microsoft.com/client/2007" 
 
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
 
4
        Width="640" Height="200">
 
5
 
 
6
        <Canvas.Triggers>
 
7
                <EventTrigger RoutedEvent="Canvas.Loaded">
 
8
                        <BeginStoryboard>
 
9
                                <Storyboard>
 
10
                                        <DoubleAnimation Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" Duration="00:00:05" />
 
11
                                </Storyboard>
 
12
                        </BeginStoryboard>
 
13
                        <BeginStoryboard>
 
14
                                <Storyboard BeginTime="00:00:5">
 
15
                                        <ColorAnimation Storyboard.TargetName="rectFill" Storyboard.TargetProperty="Color" To="Black" Duration="00:00:00.5"/>
 
16
                                </Storyboard>
 
17
                        </BeginStoryboard>
 
18
                </EventTrigger>
 
19
        </Canvas.Triggers>
 
20
 
 
21
                <Rectangle x:Name="measure1" Canvas.Left="10" Canvas.Top="7" Width="600" Height="3" Fill="Black" />
 
22
                <Rectangle x:Name="measure2" Canvas.Left="10" Canvas.Top="110" Width="600" Height="3" Fill="Black" />
 
23
        <Rectangle x:Name="rect" Canvas.Left="10" Canvas.Top="10" Width="100" Height="100">
 
24
                <Rectangle.Fill>
 
25
                        <SolidColorBrush x:Name="rectFill" Color="Red" />
 
26
                </Rectangle.Fill>
 
27
        </Rectangle>
 
28
 
 
29
        <TextBlock x:Name="description" Canvas.Left="20" Canvas.Top="150" Width="600" Height="30">
 
30
                <Run Text="The red block should take 5 seconds to move to the right, and stay there."/>
 
31
                <LineBreak/>
 
32
                <Run Text="After the block reaches the right, over 0.5 seconds it turns to Black."/>
 
33
        </TextBlock>
 
34
</Canvas>