diff --git a/4262.pdf b/4262.pdf
new file mode 100644
index 0000000..9acf81c
Binary files /dev/null and b/4262.pdf differ
diff --git a/4263.pdf b/4263.pdf
new file mode 100644
index 0000000..d9ea00f
Binary files /dev/null and b/4263.pdf differ
diff --git a/9781590599525.jpg b/9781590599525.jpg
new file mode 100644
index 0000000..e156cd1
Binary files /dev/null and b/9781590599525.jpg differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.sln b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.sln
new file mode 100644
index 0000000..5b42e9a
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.sln
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ch10_BlendAnimation", "Ch10_BlendAnimation\Ch10_BlendAnimation.csproj", "{197B2DAE-40FB-4FC3-9D9D-943AA10838ED}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {197B2DAE-40FB-4FC3-9D9D-943AA10838ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {197B2DAE-40FB-4FC3-9D9D-943AA10838ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {197B2DAE-40FB-4FC3-9D9D-943AA10838ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {197B2DAE-40FB-4FC3-9D9D-943AA10838ED}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.sln.cache b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.sln.cache
new file mode 100644
index 0000000..91335e3
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.sln.cache
@@ -0,0 +1,115 @@
+
+
+ <_SolutionProjectConfiguration>Debug|Any CPU
+ <_SolutionProjectToolsVersion>3.5
+ <_SolutionProjectCacheVersion>3.5
+
+
+ <_SolutionProjectProjects Include="Ch10_BlendAnimation\Ch10_BlendAnimation.csproj" />
+
+
+
+ Debug
+ AnyCPU
+
+
+
+
+ Release
+ AnyCPU
+
+
+
+
+
+ Debug
+
+
+ Any CPU
+
+
+ $(Configuration)
+
+
+ C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\
+ .sln
+ Ch10_BlendAnimation.sln
+ Ch10_BlendAnimation
+ C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation.sln
+
+
+ v2.0
+ v3.5
+
+
+
+
+ Debug|AnyCPU
+
+
+
+
+
+
+ Release|AnyCPU
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.suo b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.suo
new file mode 100644
index 0000000..f94bbbd
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation.suo differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/App.xaml b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/App.xaml
new file mode 100644
index 0000000..6f8bf15
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/App.xaml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/App.xaml.cs b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/App.xaml.cs
new file mode 100644
index 0000000..702978b
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/App.xaml.cs
@@ -0,0 +1,48 @@
+using System.Windows;
+using System;
+
+namespace Ch10_BlendAnimation
+{
+ public partial class App : Application
+ {
+
+ public App()
+ {
+ this.Startup += this.OnStartup;
+ this.Exit += this.OnExit;
+ this.UnhandledException += this.Application_UnhandledException;
+
+ InitializeComponent();
+ }
+
+ private void OnStartup(object sender, StartupEventArgs e)
+ {
+ // Load the main control here
+ this.RootVisual = new Page();
+ }
+
+ private void OnExit(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+ {
+ if (!System.Diagnostics.Debugger.IsAttached)
+ {
+ e.Handled = true;
+
+ try
+ {
+ string errorMsg = e.ExceptionObject.Message + @"\n" + e.ExceptionObject.StackTrace;
+ errorMsg = errorMsg.Replace("\"", "\\\"").Replace("\r\n", @"\n");
+
+ System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight 2 Application: " + errorMsg + "\");");
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Ch10_BlendAnimation.csproj b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Ch10_BlendAnimation.csproj
new file mode 100644
index 0000000..fd3ed5c
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Ch10_BlendAnimation.csproj
@@ -0,0 +1,70 @@
+
+
+ Debug
+ AnyCPU
+ Ch10_BlendAnimation
+ Ch10_BlendAnimation
+ Ch10_BlendAnimation
+ 1.0.0.*
+ 0
+ false
+ 2.1.1535.0
+ {197B2DAE-40FB-4FC3-9D9D-943AA10838ED}
+ Library
+ true
+ v3.5
+ {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ Default.html
+ true
+ Ch10_BlendAnimation.xap
+ true
+ Properties\AppManifest.xml
+ Ch10_BlendAnimation.App
+ true
+ Default.html
+ SILVERLIGHT
+ true
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+ App.xaml
+
+
+ Page.xaml
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Page.xaml b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Page.xaml
new file mode 100644
index 0000000..a4cfaaa
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Page.xaml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Page.xaml.cs b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Page.xaml.cs
new file mode 100644
index 0000000..b8fd84b
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Page.xaml.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace Ch10_BlendAnimation
+{
+ public partial class Page : UserControl
+ {
+ public Page()
+ {
+ // Required to initialize variables
+ InitializeComponent();
+ this.Loaded += new RoutedEventHandler(Page_Loaded);
+ }
+
+ void Page_Loaded(object sender, RoutedEventArgs e)
+ {
+ this.BounceBall.Begin();
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Properties/AppManifest.xml b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Properties/AppManifest.xml
new file mode 100644
index 0000000..7bc277b
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Properties/AppManifest.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Properties/AssemblyInfo.cs b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..e9ddadf
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/Properties/AssemblyInfo.cs
@@ -0,0 +1,37 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Ch10_BlendAnimation")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Ch10_BlendAnimation")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("197b2dae-40fb-4fc3-9d9d-943aa10838ed")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/AppManifest.xaml b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/AppManifest.xaml
new file mode 100644
index 0000000..520c143
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/AppManifest.xaml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.dll b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.dll
new file mode 100644
index 0000000..5938b4c
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.dll differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.pdb b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.pdb
new file mode 100644
index 0000000..bb24cb5
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.pdb differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.xap b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.xap
new file mode 100644
index 0000000..78ed54b
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Ch10_BlendAnimation.xap differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Default.html b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Default.html
new file mode 100644
index 0000000..ee251d4
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/bin/Debug/Default.html
@@ -0,0 +1,76 @@
+
+
+
+
+ Silverlight Project Test Page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/App.g.cs b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/App.g.cs
new file mode 100644
index 0000000..cab0307
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/App.g.cs
@@ -0,0 +1,50 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "26F0117616CEFE5E12849BA248BA110E"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_BlendAnimation {
+
+
+ public partial class App : System.Windows.Application {
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_BlendAnimation;component/App.xaml", System.UriKind.Relative));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.csproj.FileListAbsolute.txt b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..29008da
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.csproj.FileListAbsolute.txt
@@ -0,0 +1,12 @@
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\bin\Debug\Ch10_BlendAnimation.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\bin\Debug\Ch10_BlendAnimation.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\bin\Debug\AppManifest.xaml
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\bin\Debug\Ch10_BlendAnimation.xap
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\bin\Debug\Default.html
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\obj\Debug\ResolveAssemblyReference.cache
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\obj\Debug\App.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\obj\Debug\Page.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\obj\Debug\Ch10_BlendAnimation.g.resources
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\obj\Debug\Ch10_BlendAnimation.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\obj\Debug\Ch10_BlendAnimation.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\obj\Debug\XapCacheFile.xml
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.dll b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.dll
new file mode 100644
index 0000000..5938b4c
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.dll differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.g.resources b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.g.resources
new file mode 100644
index 0000000..c3acb2f
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.g.resources differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.pdb b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.pdb
new file mode 100644
index 0000000..bb24cb5
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Ch10_BlendAnimation.pdb differ
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Page.g.cs b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Page.g.cs
new file mode 100644
index 0000000..7aa823a
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/Page.g.cs
@@ -0,0 +1,59 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendAnimation\Ch10_BlendAnimation\Page.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9D735721E7D24E9D9609A429670D9DEC"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_BlendAnimation {
+
+
+ public partial class Page : System.Windows.Controls.UserControl {
+
+ internal System.Windows.Media.Animation.Storyboard BounceBall;
+
+ internal System.Windows.Controls.Grid LayoutRoot;
+
+ internal System.Windows.Shapes.Ellipse ellipse;
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_BlendAnimation;component/Page.xaml", System.UriKind.Relative));
+ this.BounceBall = ((System.Windows.Media.Animation.Storyboard)(this.FindName("BounceBall")));
+ this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
+ this.ellipse = ((System.Windows.Shapes.Ellipse)(this.FindName("ellipse")));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/XapCacheFile.xml b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/XapCacheFile.xml
new file mode 100644
index 0000000..91b5bb2
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendAnimation/Ch10_BlendAnimation/obj/Debug/XapCacheFile.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms.sln b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms.sln
new file mode 100644
index 0000000..c2c637d
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms.sln
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ch10_BlendTransforms", "Ch10_BlendTransforms\Ch10_BlendTransforms.csproj", "{2B42B595-6293-48AF-9A54-307242075C63}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {2B42B595-6293-48AF-9A54-307242075C63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2B42B595-6293-48AF-9A54-307242075C63}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2B42B595-6293-48AF-9A54-307242075C63}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2B42B595-6293-48AF-9A54-307242075C63}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms.suo b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms.suo
new file mode 100644
index 0000000..54f2da8
Binary files /dev/null and b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms.suo differ
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/App.xaml b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/App.xaml
new file mode 100644
index 0000000..cb51d7d
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/App.xaml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/App.xaml.cs b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/App.xaml.cs
new file mode 100644
index 0000000..92a5b08
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/App.xaml.cs
@@ -0,0 +1,48 @@
+using System.Windows;
+using System;
+
+namespace Ch10_BlendTransforms
+{
+ public partial class App : Application
+ {
+
+ public App()
+ {
+ this.Startup += this.OnStartup;
+ this.Exit += this.OnExit;
+ this.UnhandledException += this.Application_UnhandledException;
+
+ InitializeComponent();
+ }
+
+ private void OnStartup(object sender, StartupEventArgs e)
+ {
+ // Load the main control here
+ this.RootVisual = new Page();
+ }
+
+ private void OnExit(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+ {
+ if (!System.Diagnostics.Debugger.IsAttached)
+ {
+ e.Handled = true;
+
+ try
+ {
+ string errorMsg = e.ExceptionObject.Message + @"\n" + e.ExceptionObject.StackTrace;
+ errorMsg = errorMsg.Replace("\"", "\\\"").Replace("\r\n", @"\n");
+
+ System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight 2 Application: " + errorMsg + "\");");
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Ch10_BlendTransforms.csproj b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Ch10_BlendTransforms.csproj
new file mode 100644
index 0000000..7aa2bcb
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Ch10_BlendTransforms.csproj
@@ -0,0 +1,70 @@
+
+
+ Debug
+ AnyCPU
+ Ch10_BlendTransforms
+ Ch10_BlendTransforms
+ Ch10_BlendTransforms
+ 1.0.0.*
+ 0
+ false
+ 2.1.1535.0
+ {2B42B595-6293-48AF-9A54-307242075C63}
+ Library
+ true
+ v3.5
+ {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ Default.html
+ true
+ Ch10_BlendTransforms.xap
+ true
+ Properties\AppManifest.xml
+ Ch10_BlendTransforms.App
+ true
+ Default.html
+ SILVERLIGHT
+ true
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+ App.xaml
+
+
+ Page.xaml
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Page.xaml b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Page.xaml
new file mode 100644
index 0000000..a3b1198
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Page.xaml
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Page.xaml.cs b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Page.xaml.cs
new file mode 100644
index 0000000..397d48e
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Page.xaml.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace Ch10_BlendTransforms
+{
+ public partial class Page : UserControl
+ {
+ public Page()
+ {
+ // Required to initialize variables
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Properties/AppManifest.xml b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Properties/AppManifest.xml
new file mode 100644
index 0000000..7bc277b
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Properties/AppManifest.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Properties/AssemblyInfo.cs b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..6a31f4e
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/Properties/AssemblyInfo.cs
@@ -0,0 +1,37 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Ch10_BlendTransforms")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Ch10_BlendTransforms")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("2b42b595-6293-48af-9a54-307242075c63")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/obj/Debug/App.g.cs b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/obj/Debug/App.g.cs
new file mode 100644
index 0000000..f604e62
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/obj/Debug/App.g.cs
@@ -0,0 +1,50 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendTransforms\Ch10_BlendTransforms\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "34280459BCF86CAE98341278CB2F6235"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_BlendTransforms {
+
+
+ public partial class App : System.Windows.Application {
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_BlendTransforms;component/App.xaml", System.UriKind.Relative));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/obj/Debug/Page.g.cs b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/obj/Debug/Page.g.cs
new file mode 100644
index 0000000..0d4536b
--- /dev/null
+++ b/BegSilverlight2/Ch10_BlendTransforms/Ch10_BlendTransforms/obj/Debug/Page.g.cs
@@ -0,0 +1,65 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_BlendTransforms\Ch10_BlendTransforms\Page.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DD490BF7435667B396847449AC4995D3"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_BlendTransforms {
+
+
+ public partial class Page : System.Windows.Controls.UserControl {
+
+ internal System.Windows.Controls.Grid LayoutRoot;
+
+ internal System.Windows.Shapes.Rectangle recTrans;
+
+ internal System.Windows.Shapes.Rectangle recRotate;
+
+ internal System.Windows.Shapes.Rectangle rectScale;
+
+ internal System.Windows.Shapes.Rectangle rectSkew;
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_BlendTransforms;component/Page.xaml", System.UriKind.Relative));
+ this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
+ this.recTrans = ((System.Windows.Shapes.Rectangle)(this.FindName("recTrans")));
+ this.recRotate = ((System.Windows.Shapes.Rectangle)(this.FindName("recRotate")));
+ this.rectScale = ((System.Windows.Shapes.Rectangle)(this.FindName("rectScale")));
+ this.rectSkew = ((System.Windows.Shapes.Rectangle)(this.FindName("rectSkew")));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation.sln b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation.sln
new file mode 100644
index 0000000..17b986d
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation.sln
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ch10_ExampleAnimation", "Ch10_ExampleAnimation\Ch10_ExampleAnimation.csproj", "{17CB2B4D-161E-4E69-BD22-0403BB3DF695}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {17CB2B4D-161E-4E69-BD22-0403BB3DF695}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {17CB2B4D-161E-4E69-BD22-0403BB3DF695}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {17CB2B4D-161E-4E69-BD22-0403BB3DF695}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {17CB2B4D-161E-4E69-BD22-0403BB3DF695}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation.suo b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation.suo
new file mode 100644
index 0000000..03cd1ff
Binary files /dev/null and b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation.suo differ
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/App.xaml b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/App.xaml
new file mode 100644
index 0000000..08040f0
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/App.xaml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/App.xaml.cs b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/App.xaml.cs
new file mode 100644
index 0000000..3fe2a41
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/App.xaml.cs
@@ -0,0 +1,48 @@
+using System.Windows;
+using System;
+
+namespace Ch10_ExampleAnimation
+{
+ public partial class App : Application
+ {
+
+ public App()
+ {
+ this.Startup += this.OnStartup;
+ this.Exit += this.OnExit;
+ this.UnhandledException += this.Application_UnhandledException;
+
+ InitializeComponent();
+ }
+
+ private void OnStartup(object sender, StartupEventArgs e)
+ {
+ // Load the main control here
+ this.RootVisual = new Page();
+ }
+
+ private void OnExit(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+ {
+ if (!System.Diagnostics.Debugger.IsAttached)
+ {
+ e.Handled = true;
+
+ try
+ {
+ string errorMsg = e.ExceptionObject.Message + @"\n" + e.ExceptionObject.StackTrace;
+ errorMsg = errorMsg.Replace("\"", "\\\"").Replace("\r\n", @"\n");
+
+ System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight 2 Application: " + errorMsg + "\");");
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Ch10_ExampleAnimation.csproj b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Ch10_ExampleAnimation.csproj
new file mode 100644
index 0000000..daed335
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Ch10_ExampleAnimation.csproj
@@ -0,0 +1,70 @@
+
+
+ Debug
+ AnyCPU
+ Ch10_ExampleAnimation
+ Ch10_ExampleAnimation
+ Ch10_ExampleAnimation
+ 1.0.0.*
+ 0
+ false
+ 2.1.1535.0
+ {17CB2B4D-161E-4E69-BD22-0403BB3DF695}
+ Library
+ true
+ v3.5
+ {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ Default.html
+ true
+ Ch10_ExampleAnimation.xap
+ true
+ Properties\AppManifest.xml
+ Ch10_ExampleAnimation.App
+ true
+ Default.html
+ SILVERLIGHT
+ true
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+ App.xaml
+
+
+ Page.xaml
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Page.xaml b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Page.xaml
new file mode 100644
index 0000000..843a16b
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Page.xaml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Page.xaml.cs b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Page.xaml.cs
new file mode 100644
index 0000000..810e5fb
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Page.xaml.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace Ch10_ExampleAnimation
+{
+ public partial class Page : UserControl
+ {
+ public Page()
+ {
+ // Required to initialize variables
+ InitializeComponent();
+ this.rectangle.MouseLeftButtonUp += new MouseButtonEventHandler(rectangle_MouseLeftButtonUp);
+ }
+
+ void rectangle_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
+ {
+ this.Storyboard1.Begin();
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Properties/AppManifest.xml b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Properties/AppManifest.xml
new file mode 100644
index 0000000..7bc277b
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Properties/AppManifest.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Properties/AssemblyInfo.cs b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..7711cce
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/Properties/AssemblyInfo.cs
@@ -0,0 +1,37 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Ch10_ExampleAnimation")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Ch10_ExampleAnimation")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("17cb2b4d-161e-4e69-bd22-0403bb3df695")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/AppManifest.xaml b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/AppManifest.xaml
new file mode 100644
index 0000000..018ca75
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/AppManifest.xaml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.dll b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.dll
new file mode 100644
index 0000000..5aab87d
Binary files /dev/null and b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.dll differ
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.pdb b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.pdb
new file mode 100644
index 0000000..795181e
Binary files /dev/null and b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.pdb differ
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.xap b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.xap
new file mode 100644
index 0000000..5cdee6b
Binary files /dev/null and b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Ch10_ExampleAnimation.xap differ
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Default.html b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Default.html
new file mode 100644
index 0000000..85e8481
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/bin/Debug/Default.html
@@ -0,0 +1,76 @@
+
+
+
+
+ Silverlight Project Test Page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/App.g.cs b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/App.g.cs
new file mode 100644
index 0000000..b169883
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/App.g.cs
@@ -0,0 +1,50 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "95718A71FBD54B56C320881601B3654F"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_ExampleAnimation {
+
+
+ public partial class App : System.Windows.Application {
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_ExampleAnimation;component/App.xaml", System.UriKind.Relative));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.csproj.FileListAbsolute.txt b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..243ecf3
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.csproj.FileListAbsolute.txt
@@ -0,0 +1,12 @@
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\bin\Debug\Ch10_ExampleAnimation.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\bin\Debug\Ch10_ExampleAnimation.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\bin\Debug\AppManifest.xaml
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\bin\Debug\Ch10_ExampleAnimation.xap
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\bin\Debug\Default.html
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\obj\Debug\ResolveAssemblyReference.cache
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\obj\Debug\App.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\obj\Debug\Page.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\obj\Debug\Ch10_ExampleAnimation.g.resources
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\obj\Debug\Ch10_ExampleAnimation.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\obj\Debug\Ch10_ExampleAnimation.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\obj\Debug\XapCacheFile.xml
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.dll b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.dll
new file mode 100644
index 0000000..5aab87d
Binary files /dev/null and b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.dll differ
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.g.resources b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.g.resources
new file mode 100644
index 0000000..d62d584
Binary files /dev/null and b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.g.resources differ
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.pdb b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.pdb
new file mode 100644
index 0000000..795181e
Binary files /dev/null and b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Ch10_ExampleAnimation.pdb differ
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Page.g.cs b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Page.g.cs
new file mode 100644
index 0000000..028348e
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/Page.g.cs
@@ -0,0 +1,59 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ExampleAnimation\Ch10_ExampleAnimation\Page.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F85FEEBFF3DBCFEDA05EA409556CB889"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_ExampleAnimation {
+
+
+ public partial class Page : System.Windows.Controls.UserControl {
+
+ internal System.Windows.Media.Animation.Storyboard Storyboard1;
+
+ internal System.Windows.Controls.Grid LayoutRoot;
+
+ internal System.Windows.Shapes.Rectangle rectangle;
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_ExampleAnimation;component/Page.xaml", System.UriKind.Relative));
+ this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1")));
+ this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
+ this.rectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("rectangle")));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/XapCacheFile.xml b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/XapCacheFile.xml
new file mode 100644
index 0000000..6800ce6
--- /dev/null
+++ b/BegSilverlight2/Ch10_ExampleAnimation/Ch10_ExampleAnimation/obj/Debug/XapCacheFile.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations.sln b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations.sln
new file mode 100644
index 0000000..956c12a
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations.sln
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ch10_ProgramAnimations", "Ch10_ProgramAnimations\Ch10_ProgramAnimations.csproj", "{65F0BF0B-85BD-4E18-AE87-07A3D723918A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {65F0BF0B-85BD-4E18-AE87-07A3D723918A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {65F0BF0B-85BD-4E18-AE87-07A3D723918A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {65F0BF0B-85BD-4E18-AE87-07A3D723918A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {65F0BF0B-85BD-4E18-AE87-07A3D723918A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations.suo b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations.suo
new file mode 100644
index 0000000..26c7e6a
Binary files /dev/null and b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations.suo differ
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/App.xaml b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/App.xaml
new file mode 100644
index 0000000..9da50ba
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/App.xaml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/App.xaml.cs b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/App.xaml.cs
new file mode 100644
index 0000000..e21055e
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/App.xaml.cs
@@ -0,0 +1,48 @@
+using System.Windows;
+using System;
+
+namespace Ch10_ProgramAnimations
+{
+ public partial class App : Application
+ {
+
+ public App()
+ {
+ this.Startup += this.OnStartup;
+ this.Exit += this.OnExit;
+ this.UnhandledException += this.Application_UnhandledException;
+
+ InitializeComponent();
+ }
+
+ private void OnStartup(object sender, StartupEventArgs e)
+ {
+ // Load the main control here
+ this.RootVisual = new Page();
+ }
+
+ private void OnExit(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+ {
+ if (!System.Diagnostics.Debugger.IsAttached)
+ {
+ e.Handled = true;
+
+ try
+ {
+ string errorMsg = e.ExceptionObject.Message + @"\n" + e.ExceptionObject.StackTrace;
+ errorMsg = errorMsg.Replace("\"", "\\\"").Replace("\r\n", @"\n");
+
+ System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight 2 Application: " + errorMsg + "\");");
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Ch10_ProgramAnimations.csproj b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Ch10_ProgramAnimations.csproj
new file mode 100644
index 0000000..65c6f07
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Ch10_ProgramAnimations.csproj
@@ -0,0 +1,70 @@
+
+
+ Debug
+ AnyCPU
+ Ch10_ProgramAnimations
+ Ch10_ProgramAnimations
+ Ch10_ProgramAnimations
+ 1.0.0.*
+ 0
+ false
+ 2.1.1535.0
+ {65F0BF0B-85BD-4E18-AE87-07A3D723918A}
+ Library
+ true
+ v3.5
+ {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ Default.html
+ true
+ Ch10_ProgramAnimations.xap
+ true
+ Properties\AppManifest.xml
+ Ch10_ProgramAnimations.App
+ true
+ Default.html
+ SILVERLIGHT
+ true
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+ App.xaml
+
+
+ Page.xaml
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Page.xaml b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Page.xaml
new file mode 100644
index 0000000..51d5fc0
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Page.xaml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Page.xaml.cs b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Page.xaml.cs
new file mode 100644
index 0000000..c9cffe5
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Page.xaml.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace Ch10_ProgramAnimations
+{
+ public partial class Page : UserControl
+ {
+ private bool Paused;
+ public Page()
+ {
+ // Required to initialize variables
+ InitializeComponent();
+ this.btnStart.Click += new RoutedEventHandler(btnStart_Click);
+ this.btnStop.Click += new RoutedEventHandler(btnStop_Click);
+ this.rectangle.MouseLeftButtonUp +=
+ new MouseButtonEventHandler(rectangle_MouseLeftButtonUp);
+ }
+
+ void rectangle_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
+ {
+ if (Paused)
+ {
+ this.MoveRect.Resume();
+ Paused = false;
+ }
+ else
+ {
+ this.MoveRect.Pause();
+ Paused = true;
+ }
+
+ }
+
+ void btnStop_Click(object sender, RoutedEventArgs e)
+ {
+ this.MoveRect.Stop();
+ }
+
+ void btnStart_Click(object sender, RoutedEventArgs e)
+ {
+ this.MoveRect.Begin();
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Properties/AppManifest.xml b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Properties/AppManifest.xml
new file mode 100644
index 0000000..7bc277b
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Properties/AppManifest.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Properties/AssemblyInfo.cs b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..80e2677
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/Properties/AssemblyInfo.cs
@@ -0,0 +1,37 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Ch10_ProgramAnimations")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Ch10_ProgramAnimations")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("65f0bf0b-85bd-4e18-ae87-07a3d723918a")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/AppManifest.xaml b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/AppManifest.xaml
new file mode 100644
index 0000000..b2e87c9
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/AppManifest.xaml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.dll b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.dll
new file mode 100644
index 0000000..3b2c6c7
Binary files /dev/null and b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.dll differ
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.pdb b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.pdb
new file mode 100644
index 0000000..f30f0b3
Binary files /dev/null and b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.pdb differ
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.xap b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.xap
new file mode 100644
index 0000000..8644b2e
Binary files /dev/null and b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Ch10_ProgramAnimations.xap differ
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Default.html b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Default.html
new file mode 100644
index 0000000..7166dc8
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/bin/Debug/Default.html
@@ -0,0 +1,76 @@
+
+
+
+
+ Silverlight Project Test Page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/App.g.cs b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/App.g.cs
new file mode 100644
index 0000000..c1e7479
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/App.g.cs
@@ -0,0 +1,50 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "AD0F1D721199B230C203179CA26342D5"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_ProgramAnimations {
+
+
+ public partial class App : System.Windows.Application {
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_ProgramAnimations;component/App.xaml", System.UriKind.Relative));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.csproj.FileListAbsolute.txt b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..1255598
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.csproj.FileListAbsolute.txt
@@ -0,0 +1,12 @@
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\bin\Debug\Ch10_ProgramAnimations.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\bin\Debug\Ch10_ProgramAnimations.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\bin\Debug\AppManifest.xaml
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\bin\Debug\Ch10_ProgramAnimations.xap
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\bin\Debug\Default.html
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\obj\Debug\ResolveAssemblyReference.cache
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\obj\Debug\App.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\obj\Debug\Page.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\obj\Debug\Ch10_ProgramAnimations.g.resources
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\obj\Debug\Ch10_ProgramAnimations.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\obj\Debug\Ch10_ProgramAnimations.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\obj\Debug\XapCacheFile.xml
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.dll b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.dll
new file mode 100644
index 0000000..3b2c6c7
Binary files /dev/null and b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.dll differ
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.g.resources b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.g.resources
new file mode 100644
index 0000000..49c4538
Binary files /dev/null and b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.g.resources differ
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.pdb b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.pdb
new file mode 100644
index 0000000..f30f0b3
Binary files /dev/null and b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Ch10_ProgramAnimations.pdb differ
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Page.g.cs b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Page.g.cs
new file mode 100644
index 0000000..4b9c4bf
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/Page.g.cs
@@ -0,0 +1,65 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_ProgramAnimations\Ch10_ProgramAnimations\Page.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "816C8A3AA417C7BE7A4E9FD33B8D12AC"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_ProgramAnimations {
+
+
+ public partial class Page : System.Windows.Controls.UserControl {
+
+ internal System.Windows.Media.Animation.Storyboard MoveRect;
+
+ internal System.Windows.Controls.Grid LayoutRoot;
+
+ internal System.Windows.Shapes.Rectangle rectangle;
+
+ internal System.Windows.Controls.Button btnStart;
+
+ internal System.Windows.Controls.Button btnStop;
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_ProgramAnimations;component/Page.xaml", System.UriKind.Relative));
+ this.MoveRect = ((System.Windows.Media.Animation.Storyboard)(this.FindName("MoveRect")));
+ this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
+ this.rectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("rectangle")));
+ this.btnStart = ((System.Windows.Controls.Button)(this.FindName("btnStart")));
+ this.btnStop = ((System.Windows.Controls.Button)(this.FindName("btnStop")));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/XapCacheFile.xml b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/XapCacheFile.xml
new file mode 100644
index 0000000..3b721cc
--- /dev/null
+++ b/BegSilverlight2/Ch10_ProgramAnimations/Ch10_ProgramAnimations/obj/Debug/XapCacheFile.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.sln b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.sln
new file mode 100644
index 0000000..78af711
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.sln
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ch10_TransformTypes", "Ch10_TransformTypes\Ch10_TransformTypes.csproj", "{60865ECA-0760-4797-A3D0-57CC2A6B68E6}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {60865ECA-0760-4797-A3D0-57CC2A6B68E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {60865ECA-0760-4797-A3D0-57CC2A6B68E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {60865ECA-0760-4797-A3D0-57CC2A6B68E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {60865ECA-0760-4797-A3D0-57CC2A6B68E6}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.sln.cache b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.sln.cache
new file mode 100644
index 0000000..7911055
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.sln.cache
@@ -0,0 +1,115 @@
+
+
+ <_SolutionProjectConfiguration>Debug|Any CPU
+ <_SolutionProjectToolsVersion>3.5
+ <_SolutionProjectCacheVersion>3.5
+
+
+ <_SolutionProjectProjects Include="Ch10_TransformTypes\Ch10_TransformTypes.csproj" />
+
+
+
+ Debug
+ AnyCPU
+
+
+
+
+ Release
+ AnyCPU
+
+
+
+
+
+ Debug
+
+
+ Any CPU
+
+
+ $(Configuration)
+
+
+ C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\
+ .sln
+ Ch10_TransformTypes.sln
+ Ch10_TransformTypes
+ C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes.sln
+
+
+ v2.0
+ v3.5
+
+
+
+
+ Debug|AnyCPU
+
+
+
+
+
+
+ Release|AnyCPU
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.suo b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.suo
new file mode 100644
index 0000000..b393e11
Binary files /dev/null and b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes.suo differ
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/App.xaml b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/App.xaml
new file mode 100644
index 0000000..ccf94fc
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/App.xaml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/App.xaml.cs b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/App.xaml.cs
new file mode 100644
index 0000000..c4f75ef
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/App.xaml.cs
@@ -0,0 +1,48 @@
+using System.Windows;
+using System;
+
+namespace Ch10_TransformTypes
+{
+ public partial class App : Application
+ {
+
+ public App()
+ {
+ this.Startup += this.OnStartup;
+ this.Exit += this.OnExit;
+ this.UnhandledException += this.Application_UnhandledException;
+
+ InitializeComponent();
+ }
+
+ private void OnStartup(object sender, StartupEventArgs e)
+ {
+ // Load the main control here
+ this.RootVisual = new Page();
+ }
+
+ private void OnExit(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+ {
+ if (!System.Diagnostics.Debugger.IsAttached)
+ {
+ e.Handled = true;
+
+ try
+ {
+ string errorMsg = e.ExceptionObject.Message + @"\n" + e.ExceptionObject.StackTrace;
+ errorMsg = errorMsg.Replace("\"", "\\\"").Replace("\r\n", @"\n");
+
+ System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight 2 Application: " + errorMsg + "\");");
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Ch10_TransformTypes.csproj b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Ch10_TransformTypes.csproj
new file mode 100644
index 0000000..5637c46
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Ch10_TransformTypes.csproj
@@ -0,0 +1,70 @@
+
+
+ Debug
+ AnyCPU
+ Ch10_TransformTypes
+ Ch10_TransformTypes
+ Ch10_TransformTypes
+ 1.0.0.*
+ 0
+ false
+ 2.1.1535.0
+ {60865ECA-0760-4797-A3D0-57CC2A6B68E6}
+ Library
+ true
+ v3.5
+ {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ Default.html
+ true
+ Ch10_TransformTypes.xap
+ true
+ Properties\AppManifest.xml
+ Ch10_TransformTypes.App
+ true
+ Default.html
+ SILVERLIGHT
+ true
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+ App.xaml
+
+
+ Page.xaml
+
+
+
+ MSBuild:MarkupCompilePass1
+ Designer
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Page.xaml b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Page.xaml
new file mode 100644
index 0000000..5b70a43
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Page.xaml
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Page.xaml.cs b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Page.xaml.cs
new file mode 100644
index 0000000..ed81463
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Page.xaml.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace Ch10_TransformTypes
+{
+ public partial class Page : UserControl
+ {
+ public Page()
+ {
+ // Required to initialize variables
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Properties/AppManifest.xml b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Properties/AppManifest.xml
new file mode 100644
index 0000000..7bc277b
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Properties/AppManifest.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Properties/AssemblyInfo.cs b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..90a5c44
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/Properties/AssemblyInfo.cs
@@ -0,0 +1,37 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Ch10_TransformTypes")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Ch10_TransformTypes")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("60865eca-0760-4797-a3d0-57cc2a6b68e6")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/AppManifest.xaml b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/AppManifest.xaml
new file mode 100644
index 0000000..ec78e79
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/AppManifest.xaml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.dll b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.dll
new file mode 100644
index 0000000..f701d81
Binary files /dev/null and b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.dll differ
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.pdb b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.pdb
new file mode 100644
index 0000000..9ba7f48
Binary files /dev/null and b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.pdb differ
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.xap b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.xap
new file mode 100644
index 0000000..416b18d
Binary files /dev/null and b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Ch10_TransformTypes.xap differ
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Default.html b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Default.html
new file mode 100644
index 0000000..407c12e
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/bin/Debug/Default.html
@@ -0,0 +1,76 @@
+
+
+
+
+ Silverlight Project Test Page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/App.g.cs b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/App.g.cs
new file mode 100644
index 0000000..ad15adc
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/App.g.cs
@@ -0,0 +1,50 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7D97FE30C28016CC7C02A6F7CE735B4C"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_TransformTypes {
+
+
+ public partial class App : System.Windows.Application {
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_TransformTypes;component/App.xaml", System.UriKind.Relative));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.csproj.FileListAbsolute.txt b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..6c3fa66
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.csproj.FileListAbsolute.txt
@@ -0,0 +1,12 @@
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\bin\Debug\Ch10_TransformTypes.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\bin\Debug\Ch10_TransformTypes.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\bin\Debug\AppManifest.xaml
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\bin\Debug\Ch10_TransformTypes.xap
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\bin\Debug\Default.html
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\obj\Debug\ResolveAssemblyReference.cache
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\obj\Debug\App.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\obj\Debug\Page.g.cs
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\obj\Debug\Ch10_TransformTypes.g.resources
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\obj\Debug\Ch10_TransformTypes.dll
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\obj\Debug\Ch10_TransformTypes.pdb
+C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\obj\Debug\XapCacheFile.xml
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.dll b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.dll
new file mode 100644
index 0000000..f701d81
Binary files /dev/null and b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.dll differ
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.g.resources b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.g.resources
new file mode 100644
index 0000000..803ca4f
Binary files /dev/null and b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.g.resources differ
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.pdb b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.pdb
new file mode 100644
index 0000000..9ba7f48
Binary files /dev/null and b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Ch10_TransformTypes.pdb differ
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Page.g.cs b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Page.g.cs
new file mode 100644
index 0000000..ea140d1
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/Page.g.cs
@@ -0,0 +1,53 @@
+#pragma checksum "C:\Users\Bob.MIDDLEEARTH\Projects\BegSilverlight2\Ch10_TransformTypes\Ch10_TransformTypes\Page.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DA6A0BFB9CFCB4E88D25CDAFBE375730"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3031
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Hosting;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Imaging;
+using System.Windows.Resources;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+
+namespace Ch10_TransformTypes {
+
+
+ public partial class Page : System.Windows.Controls.UserControl {
+
+ internal System.Windows.Controls.Grid LayoutRoot;
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Windows.Application.LoadComponent(this, new System.Uri("/Ch10_TransformTypes;component/Page.xaml", System.UriKind.Relative));
+ this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
+ }
+ }
+}
diff --git a/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/XapCacheFile.xml b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/XapCacheFile.xml
new file mode 100644
index 0000000..3eb89ec
--- /dev/null
+++ b/BegSilverlight2/Ch10_TransformTypes/Ch10_TransformTypes/obj/Debug/XapCacheFile.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/System.Web.Silverlight.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/System.Web.Silverlight.dll
new file mode 100644
index 0000000..a4eeb67
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/System.Web.Silverlight.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/System.Web.Silverlight.dll.refresh b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/System.Web.Silverlight.dll.refresh
new file mode 100644
index 0000000..d8140bb
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/System.Web.Silverlight.dll.refresh differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/de/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/de/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..be11dd0
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/de/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/es/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/es/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..675c954
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/es/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/fr/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/fr/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..94cb8cb
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/fr/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/it/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/it/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..5b360f9
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/it/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/ja/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/ja/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..cf6cbaf
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/ja/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/ko/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/ko/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..de2e9b7
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/ko/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/zh-Hans/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/zh-Hans/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..9010d00
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/zh-Hans/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/zh-Hant/System.Web.Silverlight.resources.dll b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/zh-Hant/System.Web.Silverlight.resources.dll
new file mode 100644
index 0000000..1102938
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Bin/zh-Hant/System.Web.Silverlight.resources.dll differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Ch11_CoolDownButtonTestPage.aspx b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Ch11_CoolDownButtonTestPage.aspx
new file mode 100644
index 0000000..1d3046c
--- /dev/null
+++ b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Ch11_CoolDownButtonTestPage.aspx
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" %>
+
+<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
+ TagPrefix="asp" %>
+
+
+
+
+
+ Ch11_CoolDownButton
+
+
+
+
+
\ No newline at end of file
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Ch11_CoolDownButtonTestPage.html b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Ch11_CoolDownButtonTestPage.html
new file mode 100644
index 0000000..33efd1d
--- /dev/null
+++ b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Ch11_CoolDownButtonTestPage.html
@@ -0,0 +1,77 @@
+
+
+
+
+ Ch11_CoolDownButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/ClientBin/Ch11_CoolDownButton.xap b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/ClientBin/Ch11_CoolDownButton.xap
new file mode 100644
index 0000000..ff4d391
Binary files /dev/null and b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/ClientBin/Ch11_CoolDownButton.xap differ
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Default.aspx b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Default.aspx
new file mode 100644
index 0000000..0407a4a
--- /dev/null
+++ b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Default.aspx
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Default.aspx.cs b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Default.aspx.cs
new file mode 100644
index 0000000..06640b9
--- /dev/null
+++ b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Default.aspx.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+public partial class _Default : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
diff --git a/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Silverlight.js b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Silverlight.js
new file mode 100644
index 0000000..df27683
--- /dev/null
+++ b/BegSilverlight2/Ch11_CoolDownButton/Ch11_CoolDownButton.Web/Silverlight.js
@@ -0,0 +1,486 @@
+if (!window.Silverlight)
+{
+ window.Silverlight = { };
+}
+
+// Silverlight control instance counter for memory mgt
+Silverlight._silverlightCount = 0;
+Silverlight.fwlinkRoot='http://go2.microsoft.com/fwlink/?LinkID=';
+Silverlight.onGetSilverlight = null;
+Silverlight.onSilverlightInstalled = function () {window.location.reload(false);};
+
+//////////////////////////////////////////////////////////////////
+// isInstalled, checks to see if the correct version is installed
+//////////////////////////////////////////////////////////////////
+Silverlight.isInstalled = function(version)
+{
+ var isVersionSupported=false;
+ var container = null;
+
+ try
+ {
+ var control = null;
+
+ try
+ {
+ control = new ActiveXObject('AgControl.AgControl');
+ if ( version == null )
+ {
+ isVersionSupported = true;
+ }
+ else if ( control.IsVersionSupported(version) )
+ {
+ isVersionSupported = true;
+ }
+ control = null;
+ }
+ catch (e)
+ {
+ var plugin = navigator.plugins["Silverlight Plug-In"] ;
+ if ( plugin )
+ {
+ if ( version === null )
+ {
+ isVersionSupported = true;
+ }
+ else
+ {
+ var actualVer = plugin.description;
+ if ( actualVer === "1.0.30226.2")
+ actualVer = "2.0.30226.2";
+ var actualVerArray =actualVer.split(".");
+ while ( actualVerArray.length > 3)
+ {
+ actualVerArray.pop();
+ }
+ while ( actualVerArray.length < 4)
+ {
+ actualVerArray.push(0);
+ }
+ var reqVerArray = version.split(".");
+ while ( reqVerArray.length > 4)
+ {
+ reqVerArray.pop();
+ }
+
+ var requiredVersionPart ;
+ var actualVersionPart
+ var index = 0;
+
+
+ do
+ {
+ requiredVersionPart = parseInt(reqVerArray[index]);
+ actualVersionPart = parseInt(actualVerArray[index]);
+ index++;
+ }
+ while (index < reqVerArray.length && requiredVersionPart === actualVersionPart);
+
+ if ( requiredVersionPart <= actualVersionPart && !isNaN(requiredVersionPart) )
+ {
+ isVersionSupported = true;
+ }
+ }
+ }
+ }
+ }
+ catch (e)
+ {
+ isVersionSupported = false;
+ }
+ if (container)
+ {
+ document.body.removeChild(container);
+ }
+
+ return isVersionSupported;
+}
+Silverlight.WaitForInstallCompletion = function()
+{
+ if ( ! Silverlight.isBrowserRestartRequired && Silverlight.onSilverlightInstalled )
+ {
+ try
+ {
+ navigator.plugins.refresh();
+ }
+ catch(e)
+ {
+ }
+ if ( Silverlight.isInstalled(null) )
+ {
+ Silverlight.onSilverlightInstalled();
+ }
+ else
+ {
+ setTimeout(Silverlight.WaitForInstallCompletion, 3000);
+ }
+ }
+}
+Silverlight.__startup = function()
+{
+ Silverlight.isBrowserRestartRequired = Silverlight.isInstalled(null);//(!window.ActiveXObject || Silverlight.isInstalled(null));
+ if ( !Silverlight.isBrowserRestartRequired)
+ {
+ Silverlight.WaitForInstallCompletion();
+ }
+ if (window.removeEventListener) {
+ window.removeEventListener('load', Silverlight.__startup , false);
+ }
+ else {
+ window.detachEvent('onload', Silverlight.__startup );
+ }
+}
+
+if (window.addEventListener)
+{
+ window.addEventListener('load', Silverlight.__startup , false);
+}
+else
+{
+ window.attachEvent('onload', Silverlight.__startup );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+// createObject(); Params:
+// parentElement of type Element, the parent element of the Silverlight Control
+// source of type String
+// id of type string
+// properties of type String, object literal notation { name:value, name:value, name:value},
+// current properties are: width, height, background, framerate, isWindowless, enableHtmlAccess, inplaceInstallPrompt: all are of type string
+// events of type String, object literal notation { name:value, name:value, name:value},
+// current events are onLoad onError, both are type string
+// initParams of type Object or object literal notation { name:value, name:value, name:value}
+// userContext of type Object
+/////////////////////////////////////////////////////////////////////////////////
+
+Silverlight.createObject = function(source, parentElement, id, properties, events, initParams, userContext)
+{
+ var slPluginHelper = new Object();
+ var slProperties = properties;
+ var slEvents = events;
+
+ slPluginHelper.version = slProperties.version;
+ slProperties.source = source;
+ slPluginHelper.alt = slProperties.alt;
+
+ //rename properties to their tag property names
+ if ( initParams )
+ slProperties.initParams = initParams;
+ if ( slProperties.isWindowless && !slProperties.windowless)
+ slProperties.windowless = slProperties.isWindowless;
+ if ( slProperties.framerate && !slProperties.maxFramerate)
+ slProperties.maxFramerate = slProperties.framerate;
+ if ( id && !slProperties.id)
+ slProperties.id = id;
+
+ // remove elements which are not to be added to the instantiation tag
+ delete slProperties.ignoreBrowserVer;
+ delete slProperties.inplaceInstallPrompt;
+ delete slProperties.version;
+ delete slProperties.isWindowless;
+ delete slProperties.framerate;
+ delete slProperties.data;
+ delete slProperties.src;
+ delete slProperties.alt;
+
+
+ // detect that the correct version of Silverlight is installed, else display install
+
+ if (Silverlight.isInstalled(slPluginHelper.version))
+ {
+ //move unknown events to the slProperties array
+ for (var name in slEvents)
+ {
+ if ( slEvents[name])
+ {
+ if ( name == "onLoad" && typeof slEvents[name] == "function" && slEvents[name].length != 1 )
+ {
+ var onLoadHandler = slEvents[name];
+ slEvents[name]=function (sender){ return onLoadHandler(document.getElementById(id), userContext, sender)};
+ }
+ var handlerName = Silverlight.__getHandlerName(slEvents[name]);
+ if ( handlerName != null )
+ {
+ slProperties[name] = handlerName;
+ slEvents[name] = null;
+ }
+ else
+ {
+ throw "typeof events."+name+" must be 'function' or 'string'";
+ }
+ }
+ }
+ slPluginHTML = Silverlight.buildHTML(slProperties);
+ }
+ //The control could not be instantiated. Show the installation prompt
+ else
+ {
+ slPluginHTML = Silverlight.buildPromptHTML(slPluginHelper);
+ }
+
+ // insert or return the HTML
+ if(parentElement)
+ {
+ parentElement.innerHTML = slPluginHTML;
+ }
+ else
+ {
+ return slPluginHTML;
+ }
+
+}
+
+///////////////////////////////////////////////////////////////////////////////
+//
+// create HTML that instantiates the control
+//
+///////////////////////////////////////////////////////////////////////////////
+Silverlight.buildHTML = function( slProperties)
+{
+ var htmlBuilder = [];
+
+ htmlBuilder.push('