Author: toshok
Date: 2007-09-27 23:28:41 -0400 (Thu, 27 Sep 2007)
New Revision: 86544

Added:
   trunk/moon/test/xaml/clock/
   trunk/moon/test/xaml/clock/README.txt
   trunk/moon/test/xaml/clock/Silverlight.js
   trunk/moon/test/xaml/clock/clock1.html
   trunk/moon/test/xaml/clock/clock1.xaml
   trunk/moon/test/xaml/clock/clock10.html
   trunk/moon/test/xaml/clock/clock10.xaml
   trunk/moon/test/xaml/clock/clock11.html
   trunk/moon/test/xaml/clock/clock11.xaml
   trunk/moon/test/xaml/clock/clock12.html
   trunk/moon/test/xaml/clock/clock12.xaml
   trunk/moon/test/xaml/clock/clock13.html
   trunk/moon/test/xaml/clock/clock13.xaml
   trunk/moon/test/xaml/clock/clock14.html
   trunk/moon/test/xaml/clock/clock14.xaml
   trunk/moon/test/xaml/clock/clock15.html
   trunk/moon/test/xaml/clock/clock15.xaml
   trunk/moon/test/xaml/clock/clock2.html
   trunk/moon/test/xaml/clock/clock2.xaml
   trunk/moon/test/xaml/clock/clock3.html
   trunk/moon/test/xaml/clock/clock3.xaml
   trunk/moon/test/xaml/clock/clock4.html
   trunk/moon/test/xaml/clock/clock4.xaml
   trunk/moon/test/xaml/clock/clock5.html
   trunk/moon/test/xaml/clock/clock5.xaml
   trunk/moon/test/xaml/clock/clock6.html
   trunk/moon/test/xaml/clock/clock6.xaml
   trunk/moon/test/xaml/clock/clock7.html
   trunk/moon/test/xaml/clock/clock7.xaml
   trunk/moon/test/xaml/clock/clock8.html
   trunk/moon/test/xaml/clock/clock8.xaml
   trunk/moon/test/xaml/clock/clock9.html
   trunk/moon/test/xaml/clock/clock9.xaml
   trunk/moon/test/xaml/clock/index.html
Log:
some clock tests

Added: trunk/moon/test/xaml/clock/README.txt
===================================================================
--- trunk/moon/test/xaml/clock/README.txt       2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/README.txt       2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,14 @@
+clock1  - FillBehavior default (="HoldEnd").  no bells and whistles. 1 
animation.
+clock2  - same as clock1, but FillBehavior = "Stop" applied to storyboard
+clock3  - same as clock1, but FillBehavior = "Stop" applied to animation.
+clock4  - 2 animations, one moving right and the next (with a later BeginTime) 
moving down.
+clock5  - same as clock1, but with default Duration (=Automatic)
+clock6  - same as clock1, but with AutoReverse=true on the animation
+clock7  - same as clock4, but with AutoReverse=true on the storyboard
+clock8  - same as clock1, but with a speed ratio of 0.5 (so it take 20 seconds 
to run)
+clock9  - same as clock8, but with a speed ratio of 2 (so it take 5 seconds to 
run)
+clock10 - same as clock1, but the block should turn black at the beginning 
(immediately)
+clock11 - same as clock10, but with the instantaneous animation having 
FillBehavior=Stop
+clock12 - same as clock1, but it takes 2 seconds, and the block makes the 
journey over and over.
+clock13 - same as clock12, but specifies the RepeatBehavior as a double.  
Fails on windows (with an alert)
+clock14 - same as clock12, but specifies the RepeatBehavior as a 
timespan/duration.  Fails on windows (the red box stays on the right side.)

Added: trunk/moon/test/xaml/clock/Silverlight.js
===================================================================
--- trunk/moon/test/xaml/clock/Silverlight.js   2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/Silverlight.js   2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,15 @@
+///////////////////////////////////////////////////////////////////////////////
+//
+//  Silverlight.js                     version 1.0
+//
+//  This file is provided by Microsoft as a helper file for websites that
+//  incorporate Silverlight Objects. This file is provided under the 
Silverlight 
+//  SDK 1.0 license available at http://go.microsoft.com/fwlink/?linkid=94240. 
 
+//  You may not use or distribute this file or the code in this file except as 
+//  expressly permitted under that license.
+// 
+//  Copyright (c) 2007 Microsoft Corporation. All rights reserved.
+//
+///////////////////////////////////////////////////////////////////////////////
+
+if(!window.Silverlight)window.Silverlight={};Silverlight._silverlightCount=0;Silverlight.ua=null;Silverlight.available=false;Silverlight.fwlinkRoot="http://go.microsoft.com/fwlink/?LinkID=";Silverlight.StatusText="Get
 Microsoft 
Silverlight";Silverlight.EmptyText="";Silverlight.detectUserAgent=function(){var
 
a=window.navigator.userAgent;Silverlight.ua={OS:"Unsupported",Browser:"Unsupported"};if(a.indexOf("Windows
 NT")>=0)Silverlight.ua.OS="Windows";else if(a.indexOf("PPC Mac OS 
X")>=0)Silverlight.ua.OS="MacPPC";else if(a.indexOf("Intel Mac OS 
X")>=0)Silverlight.ua.OS="MacIntel";if(Silverlight.ua.OS!="Unsupported")if(a.indexOf("MSIE")>=0){if(navigator.userAgent.indexOf("Win64")==-1)if(parseInt(a.split("MSIE")[1])>=6)Silverlight.ua.Browser="MSIE"}else
 if(a.indexOf("Firefox")>=0){var 
b=a.split("Firefox/")[1].split("."),c=parseInt(b[0]);if(c>=2)Silverlight.ua.Browser="Firefox";else{var
 d=parseInt(b[1]);if(c==1&&d>=5)Silverlight.ua.Browser="Firefox"}}else 
if(a.indexOf("Safari")>=0
 
)Silverlight.ua.Browser="Safari"};Silverlight.detectUserAgent();Silverlight.isInstalled=function(d){var
 c=false,a=null;try{var b=null;if(Silverlight.ua.Browser=="MSIE")b=new 
ActiveXObject("AgControl.AgControl");else if(navigator.plugins["Silverlight 
Plug-In"]){a=document.createElement("div");document.body.appendChild(a);a.innerHTML='<embed
 type="application/x-silverlight" 
/>';b=a.childNodes[0]}if(b.IsVersionSupported(d))c=true;b=null;Silverlight.available=true}catch(e){c=false}if(a)document.body.removeChild(a);return
 c};Silverlight.createObject=function(l,g,m,j,k,i,h){var 
b={},a=j,c=k;a.source=l;b.parentElement=g;b.id=Silverlight.HtmlAttributeEncode(m);b.width=Silverlight.HtmlAttributeEncode(a.width);b.height=Silverlight.HtmlAttributeEncode(a.height);b.ignoreBrowserVer=Boolean(a.ignoreBrowserVer);b.inplaceInstallPrompt=Boolean(a.inplaceInstallPrompt);var
 
e=a.version.split(".");b.shortVer=e[0]+"."+e[1];b.version=a.version;a.initParams=i;a.windowless=a.isWindowless;a.maxFramer
 ate=a.framerate;for(var d in 
c)if(c[d]&&d!="onLoad"&&d!="onError"){a[d]=c[d];c[d]=null}delete a.width;delete 
a.height;delete a.id;delete a.onLoad;delete a.onError;delete 
a.ignoreBrowserVer;delete a.inplaceInstallPrompt;delete a.version;delete 
a.isWindowless;delete 
a.framerate;if(Silverlight.isInstalled(b.version)){if(Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener("onunload",Silverlight.__cleanup,false);else
 window.attachEvent("onunload",Silverlight.__cleanup);var 
f=Silverlight._silverlightCount++;a.onLoad="__slLoad"+f;a.onError="__slError"+f;window[a.onLoad]=function(a){if(c.onLoad)c.onLoad(document.getElementById(b.id),h,a)};window[a.onError]=function(a,b){if(c.onError)c.onError(a,b);else
 
Silverlight.default_error_handler(a,b)};slPluginHTML=Silverlight.buildHTML(b,a)}else
 
slPluginHTML=Silverlight.buildPromptHTML(b);if(b.parentElement)b.parentElement.innerHTML=slPluginHTML;else
 return slPluginHTML};Silverlight.supportedUserAgent=function(
 ){var 
a=Silverlight.ua,b=a.OS=="Unsupported"||a.Browser=="Unsupported"||a.OS=="Windows"&&a.Browser=="Safari"||a.OS.indexOf("Mac")>=0&&a.Browser=="IE";return
 !b};Silverlight.buildHTML=function(c,d){var 
a=[],e,i,g,f,h;if(Silverlight.ua.Browser=="Safari"){a.push("<embed ");e="";i=" 
";g='="';f='"';h=' type="application/x-silverlight"/>'+"<iframe 
style='visibility:hidden;height:0;width:0'/>"}else{a.push('<object 
type="application/x-silverlight"');e=">";i=' <param name="';g='" value="';f='" 
/>';h="</object>"}a.push(' id="'+c.id+'" width="'+c.width+'" 
height="'+c.height+'" '+e);for(var b in 
d)if(d[b])a.push(i+Silverlight.HtmlAttributeEncode(b)+g+Silverlight.HtmlAttributeEncode(d[b])+f);a.push(h);return
 a.join("")};Silverlight.default_error_handler=function(e,b){var 
d,c=b.ErrorType;d=b.ErrorCode;var a="\nSilverlight error message     
\n";a+="ErrorCode: "+d+"\n";a+="ErrorType: "+c+"       \n";a+="Message: 
"+b.ErrorMessage+"     \n";if(c=="ParserError"){a+="XamlFile: "+b.xamlFile+"   
   \n";a+="Line: "+b.lineNumber+"     \n";a+="Position: "+b.charPosition+"     
\n"}else if(c=="RuntimeError"){if(b.lineNumber!=0){a+="Line: "+b.lineNumber+"   
  \n";a+="Position: "+b.charPosition+"     \n"}a+="MethodName: "+b.methodName+" 
    \n"}alert(a)};Silverlight.createObjectEx=function(b){var 
a=b,c=Silverlight.createObject(a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null)return
 c};Silverlight.buildPromptHTML=function(i){var 
a=null,f=Silverlight.fwlinkRoot,c=Silverlight.ua.OS,b="92822",d;if(i.inplaceInstallPrompt){var
 h;if(Silverlight.available){d="94376";h="94382"}else{d="92802";h="94381"}var 
g="93481",e="93483";if(c=="Windows"){b="92799";g="92803";e="92805"}else 
if(c=="MacIntel"){b="92808";g="92804";e="92806"}else 
if(c=="MacPPC"){b="92807";g="92815";e="92816"}a='<table border="0" 
cellpadding="0" cellspacing="0" width="205px"><tr><td><img title="Get Microsoft 
Silverlight" onclick="javascript:Silverlight.followFWLink({0
 });" style="border:0; cursor:pointer" src="{1}"/></td></tr><tr><td 
style="background:#C7C7BD; text-align: center; color: black; font-family: 
Verdana; font-size: 9px; padding-bottom: 0.05cm; ;padding-top: 0.05cm" >By 
clicking <b>Get Microsoft Silverlight</b> you accept the <a title="Silverlight 
License Agreement" href="{2}" target="_top" style="text-decoration: underline; 
color: #36A6C6"><b>Silverlight license agreement</b></a>.</td></tr><tr><td 
style="border-left-style: solid; border-right-style: solid; border-width: 2px; 
border-color:#c7c7bd; background: #817d77; color: #FFFFFF; text-align: center; 
font-family: Verdana; font-size: 9px">Silverlight updates automatically, <a 
title="Silverlight Privacy Statement" href="{3}" target="_top" 
style="text-decoration: underline; color: #36A6C6"><b>learn 
more</b></a>.</td></tr><tr><td><img 
src="{4}"/></td></tr></table>';a=a.replace("{2}",f+g);a=a.replace("{3}",f+e);a=a.replace("{4}",f+h)}else{if(Silverlight.available)d="94377";else
 d=
 "92801";if(c=="Windows")b="92800";else if(c=="MacIntel")b="92812";else 
if(c=="MacPPC")b="92811";a='<div style="width: 205px; height: 67px; 
background-color: #FFFFFF"><img 
onclick="javascript:Silverlight.followFWLink({0});" style="border:0; 
cursor:pointer" src="{1}" alt="Get Microsoft 
Silverlight"/></div>'}a=a.replace("{0}",b);a=a.replace("{1}",f+d);return 
a};Silverlight.__cleanup=function(){for(var 
a=Silverlight._silverlightCount-1;a>=0;a--){window["__slLoad"+a]=null;window["__slError"+a]=null}if(window.removeEventListener)window.removeEventListener("unload",Silverlight.__cleanup,false);else
 
window.detachEvent("onunload",Silverlight.__cleanup)};Silverlight.followFWLink=function(a){top.location=Silverlight.fwlinkRoot+String(a)};Silverlight.HtmlAttributeEncode=function(c){var
 a,b="";if(c==null)return null;for(var 
d=0;d<c.length;d++){a=c.charCodeAt(d);if(a>96&&a<123||a>64&&a<91||a>43&&a<58&&a!=47||a==95)b=b+String.fromCharCode(a);else
 b=b+"&#"+a+";"}return b}
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock1.html
===================================================================
--- trunk/moon/test/xaml/clock/clock1.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock1.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock1.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock1.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock1.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock1.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,22 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" />
+                               </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="150" 
Width="600" Height="30"
+                          Text="The red block should take 10 seconds to move 
to the right, and stay there."/>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock10.html
===================================================================
--- trunk/moon/test/xaml/clock/clock10.html     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock10.html     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock10.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock10.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock10.xaml     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock10.xaml     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,31 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <ColorAnimation 
Storyboard.TargetName="rectFill" Storyboard.TargetProperty="Color" To="Black" 
Duration="00:00:00" />
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" />
+                               </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">
+               <Rectangle.Fill>
+                       <SolidColorBrush x:Name="rectFill" Color="Red"/>
+               </Rectangle.Fill>
+       </Rectangle>
+
+       <TextBlock x:Name="description" Canvas.Left="20" Canvas.Top="150" 
Width="600" Height="30">
+               <Run Text="The block should turn black immediately (you should 
never see red),"/>
+               <LineBreak/>
+               <Run Text="and it should take 10 seconds to move to the right, 
and stay there."/>
+       </TextBlock>
+                          
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock11.html
===================================================================
--- trunk/moon/test/xaml/clock/clock11.html     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock11.html     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock11.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock11.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock11.xaml     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock11.xaml     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,31 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <ColorAnimation 
Storyboard.TargetName="rectFill" Storyboard.TargetProperty="Color" To="Black" 
Duration="00:00:00" FillBehavior="Stop"/>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" />
+                               </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">
+               <Rectangle.Fill>
+                       <SolidColorBrush x:Name="rectFill" Color="Red"/>
+               </Rectangle.Fill>
+       </Rectangle>
+
+       <TextBlock x:Name="description" Canvas.Left="20" Canvas.Top="150" 
Width="600" Height="30">
+               <Run Text="The block should remain red (you shouldn't see a 
flash to black),"/>
+               <LineBreak/>
+               <Run Text="and should take 10 seconds to move to the right, and 
stay there."/>
+       </TextBlock>
+                          
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock12.html
===================================================================
--- trunk/moon/test/xaml/clock/clock12.html     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock12.html     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock12.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock12.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock12.xaml     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock12.xaml     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,25 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:2" RepeatBehavior="Forever"/>
+                               </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="150" 
Width="600" Height="30">
+               <Run Text="The red block should take 2 seconds to move to the 
right, then return"/>
+               <LineBreak/>
+               <Run Text="to the left side and repeat the trip.  forever."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock13.html
===================================================================
--- trunk/moon/test/xaml/clock/clock13.html     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock13.html     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock13.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock13.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock13.xaml     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock13.xaml     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,25 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:2" RepeatBehavior="4.0"/>
+                               </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="150" 
Width="600" Height="30">
+               <Run Text="The red block should take 2 seconds to move to the 
right, then return"/>
+               <LineBreak/>
+               <Run Text="to the left side and repeat the trip 4 times."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock14.html
===================================================================
--- trunk/moon/test/xaml/clock/clock14.html     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock14.html     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock14.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock14.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock14.xaml     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock14.xaml     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,25 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:2" RepeatBehavior="00:00:08"/>
+                               </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="150" 
Width="600" Height="30">
+               <Run Text="The red block should take 2 seconds to move to the 
right, then return"/>
+               <LineBreak/>
+               <Run Text="to the left side and repeat the trip 4 times."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock15.html
===================================================================
--- trunk/moon/test/xaml/clock/clock15.html     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock15.html     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock15.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock15.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock15.xaml     2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock15.xaml     2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,34 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:05" />
+                               </Storyboard>
+                       </BeginStoryboard>
+                       <BeginStoryboard>
+                               <Storyboard BeginTime="00:00:5">
+                                       <ColorAnimation 
Storyboard.TargetName="rectFill" Storyboard.TargetProperty="Color" To="Black" 
Duration="00:00:00.5"/>
+                               </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">
+               <Rectangle.Fill>
+                       <SolidColorBrush x:Name="rectFill" Color="Red" />
+               </Rectangle.Fill>
+       </Rectangle>
+
+       <TextBlock x:Name="description" Canvas.Left="20" Canvas.Top="150" 
Width="600" Height="30">
+               <Run Text="The red block should take 5 seconds to move to the 
right, and stay there."/>
+               <LineBreak/>
+               <Run Text="After the block reaches the right, over 0.5 seconds 
it turns to Black."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock2.html
===================================================================
--- trunk/moon/test/xaml/clock/clock2.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock2.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock2.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/clock2.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock2.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock2.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,24 @@
+<Canvas xmlns="http://schemas.microsoft.com/client/2007";
+       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
+       Width="640" Height="480">
+
+       <Canvas.Triggers>
+               <EventTrigger RoutedEvent="Canvas.Loaded">
+                       <BeginStoryboard>
+                               <Storyboard FillBehavior="Stop">
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" />
+                               </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 10 seconds to move to the 
right,"/>
+               <LineBreak/>
+               <Run Text="then bounce back to the left."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock3.html
===================================================================
--- trunk/moon/test/xaml/clock/clock3.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock3.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock3.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock3.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock3.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock3.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,24 @@
+<Canvas xmlns="http://schemas.microsoft.com/client/2007";
+       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
+       Width="640" Height="480">
+
+       <Canvas.Triggers>
+               <EventTrigger RoutedEvent="Canvas.Loaded">
+                       <BeginStoryboard>
+                               <Storyboard>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" FillBehavior="Stop"/>
+                               </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 10 seconds to move to the 
right,"/>
+               <LineBreak/>
+               <Run Text="then bounce back to the left."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock4.html
===================================================================
--- trunk/moon/test/xaml/clock/clock4.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock4.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock4.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: 480px; }
+    </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/clock4.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock4.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock4.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,27 @@
+<Canvas xmlns="http://schemas.microsoft.com/client/2007";
+       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
+       Width="640" Height="480">
+
+       <Canvas.Triggers>
+               <EventTrigger RoutedEvent="Canvas.Loaded">
+                       <BeginStoryboard>
+                               <Storyboard>
+                                       <DoubleAnimation x:Name="right" 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10"/>
+                                       <DoubleAnimation x:Name="down" 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Top)" By="100" 
BeginTime="00:00:10" 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="500" Height="3" Fill="Black" />
+               <Rectangle x:Name="measure3" Canvas.Left="610" Canvas.Top="7" 
Width="3" Height="203" Fill="Black" />
+               <Rectangle x:Name="measure4" Canvas.Left="507" Canvas.Top="110" 
Width="3" Height="100" 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 10 seconds to move to the 
right,"/>
+               <LineBreak/>
+               <Run Text="then take 5 seconds to move to the bottom."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock5.html
===================================================================
--- trunk/moon/test/xaml/clock/clock5.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock5.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock5.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/clock5.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock5.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock5.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,22 @@
+<Canvas xmlns="http://schemas.microsoft.com/client/2007";
+       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
+       Width="640" Height="480">
+
+       <Canvas.Triggers>
+               <EventTrigger RoutedEvent="Canvas.Loaded">
+                       <BeginStoryboard>
+                               <Storyboard>
+                                       <DoubleAnimation x:Name="right" 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" 
By="500"/>
+                               </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 1 second to move to the 
right and stay there"/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock6.html
===================================================================
--- trunk/moon/test/xaml/clock/clock6.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock6.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock6.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock6.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock6.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock6.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,26 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" AutoReverse="true"/>
+                               </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 10 seconds to move to the 
right,"/>
+               <LineBreak/>
+               <Run Text="then take 10 seconds to move back to the left."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock7.html
===================================================================
--- trunk/moon/test/xaml/clock/clock7.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock7.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock7.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: 480px; }
+    </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/clock7.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock7.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock7.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,34 @@
+<Canvas xmlns="http://schemas.microsoft.com/client/2007";
+       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
+       Width="640" Height="480">
+
+       <Canvas.Triggers>
+               <EventTrigger RoutedEvent="Canvas.Loaded">
+                       <BeginStoryboard>
+                               <Storyboard AutoReverse="true">
+                                       <DoubleAnimation x:Name="right" 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10"/>
+                                       <DoubleAnimation x:Name="down" 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Top)" By="100" 
BeginTime="00:00:10" 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="500" Height="3" Fill="Black" />
+               <Rectangle x:Name="measure3" Canvas.Left="610" Canvas.Top="7" 
Width="3" Height="203" Fill="Black" />
+               <Rectangle x:Name="measure4" Canvas.Left="507" Canvas.Top="110" 
Width="3" Height="100" 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="100">
+               <Run Text="The red block should take 10 seconds to move to the 
right,"/>
+               <LineBreak/>
+               <Run Text="then take 5 seconds to move to the bottom."/>
+               
+               <LineBreak/>
+               <LineBreak/>
+               
+               <Run Text="Then it reverses, taking 5 seconds to move back up"/>
+               <LineBreak/>
+               <Run Text="and 10 seconds to move to the left."/>
+       </TextBlock>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock8.html
===================================================================
--- trunk/moon/test/xaml/clock/clock8.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock8.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock8.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock8.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock8.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock8.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,22 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" SpeedRatio="0.5"/>
+                               </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="150" 
Width="600" Height="30"
+                          Text="The red block should take 20 seconds to move 
to the right, and stay there."/>
+</Canvas>

Added: trunk/moon/test/xaml/clock/clock9.html
===================================================================
--- trunk/moon/test/xaml/clock/clock9.html      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock9.html      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="Silverlight.js"></script>
+<script lang="text/javascript">
+function createSilverlight()
+{
+       Silverlight.createObjectEx({
+               source: "clock9.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>
\ No newline at end of file

Added: trunk/moon/test/xaml/clock/clock9.xaml
===================================================================
--- trunk/moon/test/xaml/clock/clock9.xaml      2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/clock9.xaml      2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,22 @@
+<Canvas x:Name="parentCanvas"
+        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>
+                                       <DoubleAnimation 
Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" 
Duration="00:00:10" SpeedRatio="2.0"/>
+                               </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="150" 
Width="600" Height="30"
+                          Text="The red block should take 5 seconds to move to 
the right, and stay there."/>
+</Canvas>

Added: trunk/moon/test/xaml/clock/index.html
===================================================================
--- trunk/moon/test/xaml/clock/index.html       2007-09-28 00:21:45 UTC (rev 
86543)
+++ trunk/moon/test/xaml/clock/index.html       2007-09-28 03:28:41 UTC (rev 
86544)
@@ -0,0 +1,38 @@
+<html>
+
+<head>
+       <title>Moonlight Browser Plugin</title>
+       <script type="text/javascript" src="tests.js"></script>
+</head>
+
+<body bgcolor="gray" onload="AfterLoadTests()">
+
+       <h2>Moonlight Browser Plugin Test</h2>
+
+       <object id="moonControl1" width="400" height="180" 
type="application/ag-plugin">
+               <param name="background" value="#c0c0c0" />
+               <param name="source" value="circle.xaml" />
+       </object>
+
+       <object id="moonControl2" width="200" height="190" 
type="application/ag-plugin">
+               <param name="background" value="#ffebcd" />
+               <param name="enableFramerateCounter" value="true" />
+               <param name="enableHtmlAccess" value="true" />
+               <param name="initParams" value="paramValue1, paramValue2" />
+               <param name="maxFrameRate" value="30" />
+               <param name="onError" value="myErrorHandler" />
+               <param name="onLoad" value="onLoad" />
+               <param name="source" value="emote.xaml" />
+               <param name="windowless" value="false" />
+       </object>
+
+       <form name="form">
+               <textarea id="outputtext" rows="30" cols="80"></textarea>
+       </form>
+
+    <script type="text/javascript">
+               SetupTests ();
+    </script>
+
+</body>
+</html>

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

Reply via email to