Author: toshok
Date: 2007-10-03 23:28:10 -0400 (Wed, 03 Oct 2007)
New Revision: 86843

Added:
   trunk/moon/test/xaml/clock/clock16.html
   trunk/moon/test/xaml/clock/clock16.xaml
Log:
add another clock test

Added: trunk/moon/test/xaml/clock/clock16.html
===================================================================
--- trunk/moon/test/xaml/clock/clock16.html     2007-10-04 03:22:41 UTC (rev 
86842)
+++ trunk/moon/test/xaml/clock/clock16.html     2007-10-04 03:28:10 UTC (rev 
86843)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock16.xaml",
+               parentElement: 
document.getElementById("SilverlightControlHost"),
+               id: "SilverlightControl",
+               properties: {
+                       width: "100%",
+                       height: "100%",
+                       version: "1.1",
+                       enableHtmlAccess: "true"
+               },
+               events: {}
+       });
+          
+       // Give the keyboard focus to the Silverlight control by default
+    document.body.onload = function() {
+      var silverlightControl = document.getElementById('SilverlightControl');
+      if (silverlightControl)
+      silverlightControl.focus();
+    }
+
+}
+</script>
+    <style type="text/css">
+        .silverlightHost { width: 640px; height: 200px; }
+    </style>
+    </head>
+    
+<body bgcolor="gray">
+
+    <div id="SilverlightControlHost" class="silverlightHost" >
+        <script type="text/javascript">
+            createSilverlight();
+        </script>
+    </div>
+</body>
+</html>

Added: trunk/moon/test/xaml/clock/clock16.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock16.xaml     2007-10-04 03:22:41 UTC (rev 
86842)
+++ trunk/moon/test/xaml/clock/clock16.xaml     2007-10-04 03:28:10 UTC (rev 
86843)
@@ -0,0 +1,24 @@
+<Canvas xmlns="http://schemas.microsoft.com/client/2007";
+       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
+        Width="640" Height="200">
+
+       <Canvas.Triggers>
+               <EventTrigger RoutedEvent="Canvas.Loaded">
+                       <BeginStoryboard>
+                               <Storyboard Duration="00:00:10" 
FillBehavior="Stop">
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:05" />
+                               </Storyboard>
+                       </BeginStoryboard>
+               </EventTrigger>
+       </Canvas.Triggers>
+
+               <Rectangle x:Name="measure1" Canvas.Left="10" Canvas.Top="7" 
Width="600" Height="3" Fill="Black" />
+               <Rectangle x:Name="measure2" Canvas.Left="10" Canvas.Top="110" 
Width="600" Height="3" Fill="Black" />
+               <Rectangle x:Name="rect" Canvas.Left="10" Canvas.Top="10" 
Width="100" Height="100" Fill="Red" />
+
+       <TextBlock x:Name="description" Canvas.Left="20" Canvas.Top="140" 
Width="600" Height="50">
+               <Run Text="The red block should take 5 seconds to move to the 
right,"/>
+               <LineBreak/>
+               <Run Text="then after 5 seconds should bounce back to the 
left."/>
+       </TextBlock>
+</Canvas>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to