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 + + + + + + + + +
+ +
+ + + + + + + Get Microsoft Silverlight + + + +
+ + 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 + + + + + + + + +
+ +
+ + + + + + + Get Microsoft Silverlight + + + +
+ + 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 @@ + + + + + + + + + + + + + + + + + + + +