<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6879201915693495054</atom:id><lastBuildDate>Thu, 29 Aug 2024 07:00:59 +0000</lastBuildDate><title>Do Less Get More</title><description></description><link>http://pkrd.blogspot.com/</link><managingEditor>noreply@blogger.com (Pravinkumar)</managingEditor><generator>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-8860027742225794920</guid><pubDate>Mon, 01 Feb 2010 05:33:00 +0000</pubDate><atom:updated>2010-01-31T22:09:00.329-08:00</atom:updated><title>Photo Gallery Application for Your Desktop as well as Online</title><description>&lt;p&gt;&lt;font size=&quot;1&quot;&gt;Hi All,&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;As promised, I am back with modified Photo Gallery Application with three new features and if you want you can add more as per your convenience. Those three new features are as below - &lt;/p&gt;  &lt;p&gt;1) You can now &lt;strong&gt;&lt;u&gt;Drag &amp;amp; Drop Your own Images from your machine directly on my photo Gallery&lt;/u&gt;&lt;/strong&gt; and view your own pictures online.&lt;/p&gt;  &lt;p&gt;2) You can &lt;strong&gt;&lt;u&gt;install this application on your Desktop (Out-Of-Browser feature of Silverlight 4.0) and then Drag &amp;amp; Drop your Images on my Photo Gallery &lt;/u&gt;&lt;/strong&gt;and view your own pictures offline.&lt;/p&gt;  &lt;p&gt;3) If you don’t want this application offline and you want &lt;strong&gt;&lt;u&gt;your pictures should be saved and the same view you should get when you login next time&lt;/u&gt;&lt;/strong&gt;, this feature is also available with this Photo Gallery Application.&lt;/p&gt;  &lt;p&gt;So, now question comes how can I achieve these all features from Silverlight!! Simple Use &lt;strong&gt;&lt;u&gt;&lt;font size=&quot;4&quot;&gt;Silverlight 4.0!!&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;Let’s See the Steps and few views of the same - &lt;/p&gt;  &lt;p&gt;Views of Photo Gallery Application - &lt;/p&gt;  &lt;p&gt;1) The Below Image shows that I am dragging &amp;amp; dropping a butterfly picture on the left hand side thumbnail.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/S2ZndnNl67I/AAAAAAAAAWY/jSSX-G_9YpA/s1600-h/PhotoGalleryDrag5.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;PhotoGalleryDrag&quot; border=&quot;0&quot; alt=&quot;PhotoGalleryDrag&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/S2Zne_8qnOI/AAAAAAAAAWc/UXHLs4RNp9g/PhotoGalleryDrag_thumb3.jpg?imgmax=800&quot; width=&quot;613&quot; height=&quot;427&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;2) The below Image shows that you can install the application offline and view your images in the same way. &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/S2Znf8l2nxI/AAAAAAAAAWg/BFNSd2xYnSM/s1600-h/PhotoGalleryInstallOffline6.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;PhotoGalleryInstallOffline&quot; border=&quot;0&quot; alt=&quot;PhotoGalleryInstallOffline&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/S2ZnhCTZPII/AAAAAAAAAWk/oAKaTG9BqzU/PhotoGalleryInstallOffline_thumb4.jpg?imgmax=800&quot; width=&quot;615&quot; height=&quot;398&quot; /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;3) The below Image shows that you can save your view and when you next time login you can see your all pictures in Photo Gallery. You will have to Click the button &lt;strong&gt;&lt;u&gt;Save This Image Gallery&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/S2ZniJj6ryI/AAAAAAAAAWo/puRDaoWSOKA/s1600-h/SavePhotoGallery5.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;SavePhotoGallery&quot; border=&quot;0&quot; alt=&quot;SavePhotoGallery&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/S2ZnjLfU72I/AAAAAAAAAWs/lcUZQ1j70S8/SavePhotoGallery_thumb3.jpg?imgmax=800&quot; width=&quot;620&quot; height=&quot;410&quot; /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Important – Things which I have not implemented are as below -&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;1) I did not authenticate the users. You can do that using ASP.NET Forms Authentication!!&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;2) Checking User Authentication.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;3) I am not saving the images when the application is offline. User when next time starts the application, will have to drag and drop the images again.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;4) Retrive the pictures back again from the database server after login.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;So, let’s Begin to our steps which you can use to create the same Photo Gallery but this time for your own Images - &lt;/p&gt;  &lt;p&gt;1) Create Silverlight 4.0 Application using your tool (Expression Blend 4 or VS 2010 Beta).&lt;/p&gt;  &lt;p&gt;2) Design the application&amp;#160; as shown in above images - &lt;/p&gt;  &lt;p&gt;Controls which I have used – Border, Button, Image, StackPanel, TextBlock.&lt;/p&gt;  &lt;p&gt;I have designed this application using Microsoft Expression Blend 4.0 Preview For .NET 4.0. All the animation is created by this tool only.&lt;/p&gt;  &lt;p&gt;3) Code for &lt;font size=&quot;3&quot;&gt;MainPage.XAML&lt;/font&gt; - &lt;/p&gt;  &lt;p&gt;&amp;lt;UserControl    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlns=&amp;quot;&lt;a href=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&quot;&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/a&gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlns:x=&amp;quot;&lt;a href=&quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&quot;&gt;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/a&gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlns:d=&amp;quot;&lt;a href=&quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot;&quot;&gt;http://schemas.microsoft.com/expression/blend/2008&amp;quot;&lt;/a&gt; xmlns:mc=&amp;quot;&lt;a href=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;&quot;&gt;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;&lt;/a&gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; x:Class=&amp;quot;PhotoGallaryApplication.MainPage&amp;quot;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Width=&amp;quot;800&amp;quot; Height=&amp;quot;1024&amp;quot; Background=&amp;quot;Black&amp;quot; mc:Ignorable=&amp;quot;d&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;UserControl.Resources&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard x:Name=&amp;quot;MainImageAnimation2&amp;quot; Completed=&amp;quot;MainImageAnimation2_Completed&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;(UIElement.Opacity)&amp;quot; Storyboard.TargetName=&amp;quot;MainImage&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0&amp;quot; Value=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:2&amp;quot; Value=&amp;quot;0.99&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:10&amp;quot; Value=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;(UIElement.Opacity)&amp;quot; Storyboard.TargetName=&amp;quot;FooterMsg&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0&amp;quot; Value=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:2&amp;quot; Value=&amp;quot;0.99&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:10&amp;quot; Value=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Storyboard&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard x:Name=&amp;quot;MainImageAnimation1&amp;quot; Completed=&amp;quot;MainImageAnimation1_Completed&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;(UIElement.Opacity)&amp;quot; Storyboard.TargetName=&amp;quot;MainImage&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:8&amp;quot; Value=&amp;quot;0.99&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:10&amp;quot; Value=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;(UIElement.Opacity)&amp;quot; Storyboard.TargetName=&amp;quot;FooterMsg&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:8&amp;quot; Value=&amp;quot;0.99&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;EasingDoubleKeyFrame KeyTime=&amp;quot;0:0:10&amp;quot; Value=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Storyboard&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard x:Name=&amp;quot;ThumbNailBorderAnimation&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;(Border.BorderThickness)&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DiscreteObjectKeyFrame KeyTime=&amp;quot;0:0:0.5&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DiscreteObjectKeyFrame.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Thickness&amp;gt;2&amp;lt;/Thickness&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DiscreteObjectKeyFrame.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DiscreteObjectKeyFrame&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/ObjectAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Storyboard&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard x:Name=&amp;quot;ThumbNailBorderAnimationReverse&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;(Border.BorderThickness)&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DiscreteObjectKeyFrame KeyTime=&amp;quot;0:0:0.5&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DiscreteObjectKeyFrame.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Thickness&amp;gt;0&amp;lt;/Thickness&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DiscreteObjectKeyFrame.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DiscreteObjectKeyFrame&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/ObjectAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Storyboard&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Style x:Key=&amp;quot;ButtonStyle1&amp;quot; TargetType=&amp;quot;Button&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter Property=&amp;quot;Background&amp;quot; Value=&amp;quot;#FF1F3B53&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter Property=&amp;quot;Foreground&amp;quot; Value=&amp;quot;#FF000000&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter Property=&amp;quot;Padding&amp;quot; Value=&amp;quot;3&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter Property=&amp;quot;BorderThickness&amp;quot; Value=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter Property=&amp;quot;BorderBrush&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;LinearGradientBrush EndPoint=&amp;quot;0.5,1&amp;quot; StartPoint=&amp;quot;0.5,0&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FFA3AEB9&amp;quot; Offset=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FF8399A9&amp;quot; Offset=&amp;quot;0.375&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FF718597&amp;quot; Offset=&amp;quot;0.375&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FF617584&amp;quot; Offset=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/LinearGradientBrush&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Setter.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Setter&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter Property=&amp;quot;Template&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Setter.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ControlTemplate TargetType=&amp;quot;Button&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Grid&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualStateManager.VisualStateGroups&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualStateGroup x:Name=&amp;quot;CommonStates&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualState x:Name=&amp;quot;Normal&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualState x:Name=&amp;quot;MouseOver&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualState x:Name=&amp;quot;Pressed&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualState x:Name=&amp;quot;Disabled&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;Opacity&amp;quot; Storyboard.TargetName=&amp;quot;DisabledVisualElement&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;SplineDoubleKeyFrame KeyTime=&amp;quot;0&amp;quot; Value=&amp;quot;.55&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Storyboard&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/VisualState&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/VisualStateGroup&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualStateGroup x:Name=&amp;quot;FocusStates&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualState x:Name=&amp;quot;Focused&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty=&amp;quot;Opacity&amp;quot; Storyboard.TargetName=&amp;quot;FocusVisualElement&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;SplineDoubleKeyFrame KeyTime=&amp;quot;0&amp;quot; Value=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Storyboard&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/VisualState&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;VisualState x:Name=&amp;quot;Unfocused&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/VisualStateGroup&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/VisualStateManager.VisualStateGroups&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;Background&amp;quot; BorderBrush=&amp;quot;{TemplateBinding BorderBrush}&amp;quot; BorderThickness=&amp;quot;{TemplateBinding BorderThickness}&amp;quot; CornerRadius=&amp;quot;10&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border.Effect&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;DropShadowEffect Color=&amp;quot;#FFD8A0A0&amp;quot; Direction=&amp;quot;419&amp;quot; BlurRadius=&amp;quot;15&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border.Effect&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border.Background&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;LinearGradientBrush EndPoint=&amp;quot;0.5,1&amp;quot; StartPoint=&amp;quot;0.5,0&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FF468E6E&amp;quot; Offset=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FFD6AD4B&amp;quot; Offset=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/LinearGradientBrush&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border.Background&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Rectangle x:Name=&amp;quot;DisabledVisualElement&amp;quot; Fill=&amp;quot;#FFFFFFFF&amp;quot; IsHitTestVisible=&amp;quot;false&amp;quot; Opacity=&amp;quot;0&amp;quot; RadiusY=&amp;quot;3&amp;quot; RadiusX=&amp;quot;3&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Rectangle x:Name=&amp;quot;FocusVisualElement&amp;quot; IsHitTestVisible=&amp;quot;false&amp;quot; Margin=&amp;quot;1&amp;quot; Opacity=&amp;quot;0&amp;quot; RadiusY=&amp;quot;2&amp;quot; RadiusX=&amp;quot;2&amp;quot; Stroke=&amp;quot;#FF6DBDD1&amp;quot; StrokeThickness=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Margin=&amp;quot;33,15,33,16&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;Save This Image Gallery&amp;quot; FontSize=&amp;quot;29.333&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Foreground&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;LinearGradientBrush EndPoint=&amp;quot;0.5,1&amp;quot; StartPoint=&amp;quot;0.5,0&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;Black&amp;quot; Offset=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FF8985C2&amp;quot; Offset=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/LinearGradientBrush&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Foreground&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Grid&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/ControlTemplate&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Setter.Value&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Setter&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Style&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/UserControl.Resources&amp;gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Canvas x:Name=&amp;quot;LayoutRoot&amp;quot; Background=&amp;quot;Black&amp;quot; Width=&amp;quot;800&amp;quot; Height=&amp;quot;1024&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;ThumbNailBorder&amp;quot; Height=&amp;quot;500&amp;quot; Canvas.Left=&amp;quot;33&amp;quot; Canvas.Top=&amp;quot;61&amp;quot; Width=&amp;quot;400&amp;quot; Background=&amp;quot;White&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;-25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;StackPanel Orientation=&amp;quot;Vertical&amp;quot; Margin=&amp;quot;1,0,-1,0&amp;quot; Width=&amp;quot;400&amp;quot; Height=&amp;quot;500&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;StackPanel Orientation=&amp;quot;Horizontal&amp;quot; Margin=&amp;quot;-1,2,1,0&amp;quot; Width=&amp;quot;400&amp;quot; Height=&amp;quot;120&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B1&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;100&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; BorderThickness=&amp;quot;2&amp;quot; Margin=&amp;quot;8,10,0,10&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img1&amp;quot; Margin=&amp;quot;1,0,3,1&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;100&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B2&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;100&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; BorderThickness=&amp;quot;2&amp;quot; Margin=&amp;quot;8,10,0,10&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img2&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B3&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;100&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; BorderThickness=&amp;quot;2&amp;quot; Margin=&amp;quot;8,10,0,10&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img3&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B4&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;100&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; BorderThickness=&amp;quot;2&amp;quot; Margin=&amp;quot;8,10,0,10&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img4&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/StackPanel&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;StackPanel Orientation=&amp;quot;Horizontal&amp;quot; Margin=&amp;quot;0,2,0,0&amp;quot; Width=&amp;quot;400&amp;quot; Height=&amp;quot;120&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B5&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img5&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B6&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img6&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B7&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img7&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B8&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img8&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/StackPanel&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;StackPanel Orientation=&amp;quot;Horizontal&amp;quot; Margin=&amp;quot;0,2,0,0&amp;quot; Width=&amp;quot;400&amp;quot; Height=&amp;quot;120&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B9&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img9&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B10&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img10&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B11&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img11&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B12&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img12&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/StackPanel&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;StackPanel Orientation=&amp;quot;Horizontal&amp;quot; Margin=&amp;quot;0,2,0,0&amp;quot; Width=&amp;quot;400&amp;quot; Height=&amp;quot;120&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B13&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot;&amp;#160; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img13&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B14&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot;&amp;#160; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img14&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B15&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot;&amp;#160; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img15&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;B16&amp;quot; Width=&amp;quot;90&amp;quot; Height=&amp;quot;110&amp;quot; BorderBrush=&amp;quot;Black&amp;quot;&amp;#160; MouseEnter=&amp;quot;B_MouseEnter&amp;quot; MouseLeave=&amp;quot;B_MouseLeave&amp;quot; Margin=&amp;quot;8,1,0,9&amp;quot; BorderThickness=&amp;quot;2&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;Img16&amp;quot; Height=&amp;quot;100&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Width=&amp;quot;90&amp;quot; Margin=&amp;quot;1,1,3,0&amp;quot; AllowDrop=&amp;quot;True&amp;quot; DragEnter=&amp;quot;Img1_DragEnter&amp;quot; Drop=&amp;quot;Img1_Drop&amp;quot; MouseLeftButtonDown=&amp;quot;Img_MouseLeftButtonDown&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/StackPanel&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/StackPanel&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;MainBorder&amp;quot; Height=&amp;quot;500&amp;quot; Canvas.Left=&amp;quot;368&amp;quot; Canvas.Top=&amp;quot;61&amp;quot; Width=&amp;quot;400&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border.Background&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RadialGradientBrush&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;Black&amp;quot; Offset=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FF1E1D1D&amp;quot; Offset=&amp;quot;1&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;GradientStop Color=&amp;quot;#FFF9F9F9&amp;quot; Offset=&amp;quot;0.49&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/RadialGradientBrush&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border.Background&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;StackPanel Orientation=&amp;quot;Vertical&amp;quot; Margin=&amp;quot;0&amp;quot; Width=&amp;quot;400&amp;quot; Height=&amp;quot;500&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;MainImage&amp;quot; Height=&amp;quot;450&amp;quot; Width=&amp;quot;400&amp;quot; Source=&amp;quot;firekid07.jpg&amp;quot; Stretch=&amp;quot;Fill&amp;quot; Margin=&amp;quot;0&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border x:Name=&amp;quot;FooterMsg&amp;quot;&amp;#160; Height=&amp;quot;50&amp;quot; Canvas.Left=&amp;quot;708&amp;quot; Width=&amp;quot;400&amp;quot; Background=&amp;quot;#FF5A5353&amp;quot; &amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock x:Name=&amp;quot;txtFooter&amp;quot; Foreground=&amp;quot;#FFD69A9A&amp;quot; FontSize=&amp;quot;21.333&amp;quot; Height=&amp;quot;30&amp;quot; Margin=&amp;quot;0&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;sddsfdsf&amp;quot; Width=&amp;quot;400&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/StackPanel&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;203&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;O&amp;quot; Canvas.Top=&amp;quot;21&amp;quot; Width=&amp;quot;35&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Foreground=&amp;quot;#FFF6FF00&amp;quot; FontSize=&amp;quot;48&amp;quot; FontWeight=&amp;quot;Bold&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;-25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;242&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;T&amp;quot; Canvas.Top=&amp;quot;10&amp;quot; Width=&amp;quot;35&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;-25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;281&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;O&amp;quot; Canvas.Top=&amp;quot;25&amp;quot; Width=&amp;quot;35&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;-25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;164&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;H&amp;quot; Canvas.Top=&amp;quot;10&amp;quot; Width=&amp;quot;35&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;-25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;125&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;P&amp;quot; Width=&amp;quot;35&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;-25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;443&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;G&amp;quot; Width=&amp;quot;35&amp;quot; Canvas.Top=&amp;quot;32&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;478&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;A&amp;quot; Width=&amp;quot;35&amp;quot; Canvas.Top=&amp;quot;3&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;517&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;L&amp;quot; Width=&amp;quot;35&amp;quot; Canvas.Top=&amp;quot;18&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;556&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;L&amp;quot; Width=&amp;quot;35&amp;quot; Canvas.Top=&amp;quot;1&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;591&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;E&amp;quot; Width=&amp;quot;35&amp;quot; Canvas.Top=&amp;quot;14&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;630&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;R&amp;quot; Width=&amp;quot;35&amp;quot; Canvas.Top=&amp;quot;1&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Foreground=&amp;quot;#FFF6FF00&amp;quot; FontWeight=&amp;quot;Bold&amp;quot; FontSize=&amp;quot;48&amp;quot; FontFamily=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot; Height=&amp;quot;36&amp;quot; Canvas.Left=&amp;quot;679&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Text=&amp;quot;Y&amp;quot; Width=&amp;quot;35&amp;quot; Canvas.Top=&amp;quot;3&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;PlaneProjection RotationY=&amp;quot;25&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock.Projection&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/TextBlock&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Button x:Name=&amp;quot;btnSavePhotoGallery&amp;quot; Content=&amp;quot;Button&amp;quot; Height=&amp;quot;61&amp;quot; Canvas.Left=&amp;quot;263&amp;quot; Canvas.Top=&amp;quot;580&amp;quot; Width=&amp;quot;273&amp;quot; Style=&amp;quot;{StaticResource ButtonStyle1}&amp;quot; Click=&amp;quot;btnSavePhotoGallery_Click&amp;quot;/&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Canvas&amp;gt;     &lt;br /&gt;&amp;lt;/UserControl&amp;gt;&lt;/p&gt;  &lt;p&gt;4) Code Behind for &lt;font size=&quot;3&quot;&gt;MainPage.XAML.CS&lt;/font&gt; - &lt;/p&gt;  &lt;p&gt;using System;    &lt;br /&gt;using System.Windows;     &lt;br /&gt;using System.Windows.Controls;     &lt;br /&gt;using System.Windows.Documents;     &lt;br /&gt;using System.Windows.Ink;     &lt;br /&gt;using System.Windows.Input;     &lt;br /&gt;using System.Windows.Media;     &lt;br /&gt;using System.Windows.Media.Animation;     &lt;br /&gt;using System.Windows.Shapes;     &lt;br /&gt;using System.Windows.Media.Imaging;     &lt;br /&gt;using System.Collections.ObjectModel;     &lt;br /&gt;using System.IO; &lt;/p&gt;  &lt;p&gt;namespace PhotoGallaryApplication    &lt;br /&gt;{     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public class FileInformation     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public string SenderName { get; set; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public string FileName { get; set; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public partial class MainPage : UserControl     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public MainPage()     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Required to initialize variables     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; InitializeComponent();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.MainImageAnimation1.Completed += new EventHandler(MainImageAnimation1_Completed);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImageAnimation1.Begin();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtFooter.Text = &amp;quot;Silverlight 4.0 Photo Gallery !! WOW&amp;quot;;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //txtFooterReflection.Text = &amp;quot;Silverlight 4.0 Photo Gallery !! WOW&amp;quot;;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.Loaded += new RoutedEventHandler(MainPage_Loaded);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; private static string GetSenderName(object sender)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FrameworkElement fe = sender as FrameworkElement;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return fe.Name;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; void MainPage_Loaded(object sender, RoutedEventArgs e)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ObservableCollection&amp;lt;FileInformation&amp;gt; fileInfoCollection = new ObservableCollection&amp;lt;FileInformation&amp;gt;();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ObservableCollection&amp;lt;FileInfo&amp;gt; ImageCollection = new ObservableCollection&amp;lt;FileInfo&amp;gt;();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ObservableCollection&amp;lt;string&amp;gt; ImageNameCollection = new ObservableCollection&amp;lt;string&amp;gt;();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; string senderName, fileName; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; int imgCount=1;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; void MainImageAnimation1_Completed(object sender, EventArgs e)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (imgCount == 16)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; imgCount = 1;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; else     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; imgCount++;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Image Img = new Image();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Img = ((Image)this.FindName(&amp;quot;Img&amp;quot; + imgCount)); &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImage.Source = Img.Source;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //MainImage1.Source = Img.Source;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Img = null;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImageAnimation2.Begin();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImageAnimation2.Completed += new EventHandler(MainImageAnimation2_Completed);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; void MainImageAnimation2_Completed(object sender, EventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImageAnimation1.Begin();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; private void B_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ThumbNailBorderAnimation.Stop();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Border b = (Border)sender;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Storyboard.SetTarget(ThumbNailBorderAnimation, b);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ThumbNailBorderAnimation.Begin();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; private void B_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ThumbNailBorderAnimationReverse.Stop();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Border b = (Border)sender;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Storyboard.SetTarget(ThumbNailBorderAnimationReverse, b);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ThumbNailBorderAnimationReverse.Begin();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; private void Img1_DragEnter(object sender, System.Windows.DragEventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; senderName = GetSenderName(sender);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; private void Img1_Drop(object sender, System.Windows.DragEventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if ((e.Data != null) &amp;amp;&amp;amp; (e.Data.GetDataPresent(DataFormats.FileDrop)))     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //return;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IDataObject dataObject = e.Data as IDataObject;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FileInfo[] files = dataObject.GetData(DataFormats.FileDrop) as FileInfo[]; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach (FileInfo fileInfo in files)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; fileInfoCollection.Add(new FileInformation() { SenderName = senderName, FileName = fileInfo.Name }); &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; using (var img = fileInfo.OpenRead())     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; var imageSource = new BitmapImage();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; imageSource.SetSource(img);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ImageCollection.Add(fileInfo);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Image Img=new Image();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Img = ((Image)sender);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Img.Source = imageSource;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ImageNameCollection.Add(Img.Name);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Img.AllowDrop = false;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; catch (Exception ex)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; private void Img_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImageAnimation2.Stop();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImageAnimation2.Begin();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MainImage.Source = ((Image)sender).Source;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //MainImage1.Source = ((Image)sender).Source; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Important Note – I have not written Button Click Event in the above class. Because it requires WCF Service To save the Images on SQL Server database.&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;5) To Save all the images to SQL Server 2005/2008, I have created a below table with the name UserImages with below structure - &lt;/p&gt;  &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;300&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Column Name&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Data Type&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;YourName&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Varchar(50)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;ImageStored&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Image&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;ImageName&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Varchar(50)&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;6) Once your table is created, now let’s create a WCF Service with a method which will take user name, image as a collection, and image name as collection as parameters. The code is as below - &lt;/p&gt;  &lt;p&gt;using System;    &lt;br /&gt;using System.Collections.ObjectModel;     &lt;br /&gt;using System.Linq;     &lt;br /&gt;using System.IO;     &lt;br /&gt;using System.Data;     &lt;br /&gt;using System.Data.SqlClient;     &lt;br /&gt;using System.Runtime.Serialization;     &lt;br /&gt;using System.ServiceModel;     &lt;br /&gt;using System.ServiceModel.Activation; &lt;/p&gt;  &lt;p&gt;[ServiceContract(Namespace = &amp;quot;&amp;quot;)]    &lt;br /&gt;[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]     &lt;br /&gt;public class PhotoGalleryService     &lt;br /&gt;{     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; [OperationContract]     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public string DoWork(string userName,ObservableCollection&amp;lt;FileInfo&amp;gt; allImages,ObservableCollection&amp;lt;string&amp;gt; allImageNames)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; int i;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for (i = 1; i &amp;lt;= allImages.Count; i++)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SqlConnection myConnection = new SqlConnection(@&amp;quot;Server=.\SQLExpress;Database=PhotoGalleryDB;Integrated Security=true&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SqlCommand storeimage = new SqlCommand(&amp;quot;INSERT INTO UserImages &amp;quot; + &amp;quot;(UserName, ImageStored, ImageName) &amp;quot; + &amp;quot; values (@userName, @imageStored, @imageName)&amp;quot;, myConnection);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; storeimage.Parameters.Add(&amp;quot;@userName&amp;quot;, SqlDbType.VarChar, 100).Value = &amp;quot;Pravinkumar&amp;quot;;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; storeimage.Parameters.Add(&amp;quot;@imageStored&amp;quot;, SqlDbType.Image).Value = allImages[i];     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; storeimage.Parameters.Add(&amp;quot;@imageName&amp;quot;, SqlDbType.VarChar, 100).Value = allImageNames[i]; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; myConnection.Open();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; storeimage.ExecuteNonQuery();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; myConnection.Close();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return &amp;quot;Image Gallery has been created successfully!!&amp;quot;;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; // Add more operations here and mark them with [OperationContract]    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;My Service name is &lt;strong&gt;&lt;u&gt;PhotoGalleryService&lt;/u&gt;&lt;/strong&gt; - &lt;/p&gt;  &lt;p&gt;7) Now, let’s add a service reference into our Silverlight Application with the name PhotoGalleryProxy as below - &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/S2Znj2OGncI/AAAAAAAAAWw/dxNX6qmXQ9w/s1600-h/PhotoAddServiceRef7.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;PhotoAddServiceRef&quot; border=&quot;0&quot; alt=&quot;PhotoAddServiceRef&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/S2Znk_DegPI/AAAAAAAAAW0/SuNSlWUiOuI/PhotoAddServiceRef_thumb3.jpg?imgmax=800&quot; width=&quot;680&quot; height=&quot;426&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;8) Now, let’s add a code for our Button Click event which will use this added service proxy and pass the values like user name, image collection and image names to WCF Service which will save this information into the database - &lt;/p&gt;  &lt;p&gt;private void btnSavePhotoGallery_Click(object sender, System.Windows.RoutedEventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; PhotoGalleryProxy.PhotoServiceClient proxy = new PhotoGalleryProxy.PhotoServiceClient();     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; proxy.DoWorkCompleted += new EventHandler&amp;lt;PhotoGalleryProxy.DoWorkCompletedEventArgs&amp;gt;(proxy_DoWorkCompleted);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; proxy.DoWorkAsync(&amp;quot;Pravinkumar&amp;quot;, ImageCollection, ImageNameCollection);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; catch (Exception ex)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; { &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MessageBox.Show(ex.Message);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; void proxy_DoWorkCompleted(object sender, PhotoGalleryProxy.DoWorkCompletedEventArgs e)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MessageBox.Show(e.Result);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;9) Now change the Silverlight application properties to make this application as a Offline application that is &lt;font size=&quot;3&quot;&gt;&lt;u&gt;Out-Of-Browser&lt;/u&gt;&lt;/font&gt; Application!! as below - &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/S2Znl6V5adI/AAAAAAAAAW4/ftnYF9kDfxg/s1600-h/PhotoOOB5.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;PhotoOOB&quot; border=&quot;0&quot; alt=&quot;PhotoOOB&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/S2Znm7yz25I/AAAAAAAAAW8/IJ9VcL5di_Y/PhotoOOB_thumb3.jpg?imgmax=800&quot; width=&quot;694&quot; height=&quot;381&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Right click to your Silverlight application and go to Properties. Check the check box “&lt;strong&gt;&lt;u&gt;Enable running application out of the browser&lt;/u&gt;&lt;/strong&gt;” as shown above. If you want to set height and width of the application of set some other properties, you can click on “&lt;strong&gt;&lt;u&gt;Out-Of-Browser Settings …&lt;/u&gt;&lt;/strong&gt;” button.&lt;/p&gt;  &lt;p&gt;10) That’s all you are done with the application which can be used to view your own photos online as well as offline by just dragging and dropping it on the images thumbnails. If you want to save these images you can click on the button as well.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Important – According to me you can try some things like below -&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;1) When you make application out-of-browser, you can save all the images into Isolated storage and read those images as soon as your application starts next time.&lt;/p&gt;  &lt;p&gt;2) Give different effects to images when they are loading on the right side.&lt;/p&gt;  &lt;p&gt;3) Implementing Authentication &amp;amp; Authorization of the users using ASP.NET forms authentication.&lt;/p&gt;  &lt;p&gt;4) Sharing those images with friends.&lt;/p&gt;  &lt;p&gt;and lot more.. &lt;font size=&quot;4&quot;&gt;Enjoy!!&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2010/01/photo-gallery-application-for-your.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/S2Zne_8qnOI/AAAAAAAAAWc/UXHLs4RNp9g/s72-c/PhotoGalleryDrag_thumb3.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-8881387622605699601</guid><pubDate>Thu, 28 Jan 2010 09:45:00 +0000</pubDate><atom:updated>2010-01-28T01:59:04.092-08:00</atom:updated><title>Photo Gallery using Silverlight 4.0</title><description>&lt;p&gt;Hi All,&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;After long time I am writing this Blog!! Was busy in couple of assignments. Anyways, Today I tried something similar which is a Photo Gallery. But for sure I am not going to Stop adding a functionalities in my application. My plan is to do something different than the existing Photo Galleries by adding Silverlight 4.0 Features. So, &lt;/p&gt;  &lt;p&gt;For this time, I am showing you the existing application which I saw on one of the Blog - &lt;a title=&quot;http://designwithsilverlight.com/2009/03/31/silverlight-3-photo-gallery-wall-application/&quot; href=&quot;http://designwithsilverlight.com/2009/03/31/silverlight-3-photo-gallery-wall-application/&quot;&gt;http://designwithsilverlight.com/2009/03/31/silverlight-3-photo-gallery-wall-application/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Take a look - &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/S2Fcy9uZ8vI/AAAAAAAAAWI/qshTQ63L3Zw/s1600-h/PhotoGallery1.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;PhotoGallery1&quot; border=&quot;0&quot; alt=&quot;PhotoGallery1&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/S2FczynwPII/AAAAAAAAAWQ/cdbdWWMNuqM/PhotoGallery1_thumb.jpg?imgmax=800&quot; width=&quot;753&quot; height=&quot;509&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;1&quot;&gt;This is just a .JPEG Image!! Below is a source code for the application - &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;1&quot;&gt;1) This application has Auto Preview of all the Images with some nice animation.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;1&quot;&gt;2) You can click the Image thumb nail and Preview the Images.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Note – I have used my own images. You will need to use your own images.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;MainPage.XAML&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/p&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;UserControl&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;attr&quot;&gt;xmlns&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;attr&quot;&gt;xmlns:x&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;attr&quot;&gt;xmlns:d&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;xmlns:mc&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;attr&quot;&gt;x:Class&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;PhotoGallaryApplication.MainPage&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1024&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1024&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;mc:Ignorable&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;d&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImageAnimation2&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Completed&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImageAnimation2_Completed&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetProperty&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetName&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImage&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:2&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.99&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetProperty&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetName&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;FooterMsg&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:2&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.99&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImageAnimation1&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Completed&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImageAnimation1_Completed&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetProperty&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetName&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImage&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:8&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.99&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetProperty&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetName&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;FooterMsg&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:8&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.99&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;EasingDoubleKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;        &lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;ThumbNailBorderAnimation&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;ObjectAnimationUsingKeyFrames&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetProperty&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;(Border.BorderThickness)&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:0.5&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame.Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Thickness&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;2&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Thickness&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame.Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;ObjectAnimationUsingKeyFrames&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;ThumbNailBorderAnimationReverse&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;ObjectAnimationUsingKeyFrames&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Storyboard&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;TargetProperty&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;(Border.BorderThickness)&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;KeyTime&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0:0:0.5&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame.Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Thickness&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;0&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Thickness&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame.Value&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;DiscreteObjectKeyFrame&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;ObjectAnimationUsingKeyFrames&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Storyboard&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Canvas&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1024&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1024&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;ThumbNailBorder&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;77&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;61&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Vertical&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0,14,-20,0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0,-11,0,0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B1&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img1&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;firekid07.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B2&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img2&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Desert.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B3&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img3&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Jellyfish.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B4&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img4&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Hydrangeas.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B5&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img5&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;BackgroundForMSSlides.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B6&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img6&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;180px-Navratridurgapuja.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B7&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img7&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Chrysanthemum.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B8&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img8&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;butterfly-coloring-pages00017im.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B9&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img9&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Penguins.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;navratri.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B11&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img11&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;woo-woo.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B12&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img12&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Tulips.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B13&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;  &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img13&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Koala.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B14&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;  &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img14&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;KidsFaces.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B15&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;  &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img15&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;navaratri-vijayadashami-2009.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B16&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;BorderBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;  &lt;span class=&quot;attr&quot;&gt;MouseEnter&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseEnter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeave&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;B_MouseLeave&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img16&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Lighthouse.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainBorder&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;487&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;61&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;RadialGradientBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;GradientStop&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Color&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Offset&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;GradientStop&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Color&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FF1E1D1D&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Offset&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;GradientStop&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Color&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF9F9F9&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Offset&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.49&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;RadialGradientBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Vertical&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImage&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;450&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;firekid07.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;FooterMsg&amp;quot;&lt;/span&gt;  &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;708&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FF5A5353&amp;quot;&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;txtFooter&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFD69A9A&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;21.333&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;28,9,22,11&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;sddsfdsf&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;450&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;ThumbNailBorder_Copy&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;29&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;568&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RenderTransformOrigin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.5,0.5&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Opacity&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.05&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationX&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;180&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Vertical&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0,14,-20,0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0,-11,0,0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img17&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;firekid07.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img18&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Desert.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img19&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Jellyfish.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img20&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;117&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Hydrangeas.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img21&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;BackgroundForMSSlides.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img22&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;180px-Navratridurgapuja.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img23&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Chrysanthemum.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img24&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;218&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;butterfly-coloring-pages00017im.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img25&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Penguins.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img26&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;navratri.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img27&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;woo-woo.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img28&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;320&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Tulips.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img29&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;87&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Koala.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img30&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;KidsFaces.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img31&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;311&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;navaratri-vijayadashami-2009.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Img32&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;110&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;120&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Lighthouse.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-30&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainBorderReflection&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;535&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;568&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RenderTransformOrigin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.5,0.5&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Opacity&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.05&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.RenderTransform&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TransformGroup&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;ScaleTransform&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;SkewTransform&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;RotateTransform&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Angle&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;180&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TranslateTransform&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TransformGroup&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.RenderTransform&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;RadialGradientBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;GradientStop&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Color&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Offset&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;GradientStop&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Color&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FF1E1D1D&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Offset&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;GradientStop&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Color&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF9F9F9&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Offset&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0.49&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;RadialGradientBrush&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Orientation&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Vertical&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Image&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;MainImage1&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;450&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;198&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;421&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;firekid07.jpg&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Stretch&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;FooterMsg1&amp;quot;&lt;/span&gt;  &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;708&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Background&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FF5A5353&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;500&amp;quot;&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;x:Name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;txtFooterReflection&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFD69A9A&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;21.333&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;sddsfdsf&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;450&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Margin&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;39,10,11,10&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;180&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;StackPanel&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Border&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;327&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;O&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;21&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;366&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;T&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;405&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;O&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;288&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;H&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;249&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;P&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;-25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;553&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;G&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;39&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;588&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;A&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;627&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;L&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;666&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;L&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;8&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;701&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;E&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;21&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;740&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;R&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;8&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Foreground&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;#FFF6FF00&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontWeight&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontSize&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;FontFamily&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Fonts/Fonts.zip#Chiller&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;36&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Left&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;789&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;TextWrapping&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;Y&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Width&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;Canvas&lt;/span&gt;.&lt;span class=&quot;attr&quot;&gt;Top&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;PlaneProjection&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;RotationY&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock.Projection&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;TextBlock&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;        &lt;br /&gt;    &lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;Canvas&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;UserControl&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;MainPage.XAML.CS&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Controls;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Documents;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Ink;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Input;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Media;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Media.Animation;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Shapes;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Windows.Media.Imaging;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;namespace&lt;/span&gt; PhotoGallaryApplication&lt;br /&gt;{&lt;br /&gt;    &lt;span class=&quot;kwrd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;partial&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;class&lt;/span&gt; MainPage : UserControl&lt;br /&gt;    {&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;public&lt;/span&gt; MainPage()&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;rem&quot;&gt;// Required to initialize variables&lt;/span&gt;&lt;br /&gt;            InitializeComponent();&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;this&lt;/span&gt;.MainImageAnimation1.Completed += &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; EventHandler(MainImageAnimation1_Completed);&lt;br /&gt;            MainImageAnimation1.Begin();&lt;br /&gt;            txtFooter.Text=&lt;span class=&quot;str&quot;&gt;&amp;quot;Silverlight 4.0 Photo Gallery !! WOW&amp;quot;&lt;/span&gt;;&lt;br /&gt;            txtFooterReflection.Text=&lt;span class=&quot;str&quot;&gt;&amp;quot;Silverlight 4.0 Photo Gallery !! WOW&amp;quot;&lt;/span&gt;;&lt;br /&gt;        }&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;int&lt;/span&gt; imgCount=1;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; MainImageAnimation1_Completed(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt;(imgCount==16)&lt;br /&gt;            {&lt;br /&gt;                imgCount=1;&lt;br /&gt;            }&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                imgCount++;&lt;br /&gt;            }&lt;br /&gt;            Image Img=&lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; Image();&lt;br /&gt;            Img = ((Image)&lt;span class=&quot;kwrd&quot;&gt;this&lt;/span&gt;.FindName(&lt;span class=&quot;str&quot;&gt;&amp;quot;Img&amp;quot;&lt;/span&gt; + imgCount));&lt;br /&gt;&lt;br /&gt;            MainImage.Source = Img.Source;&lt;br /&gt;            MainImage1.Source=Img.Source;&lt;br /&gt;            Img=&lt;span class=&quot;kwrd&quot;&gt;null&lt;/span&gt;;&lt;br /&gt;            MainImageAnimation2.Begin();&lt;br /&gt;            MainImageAnimation2.Completed += &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; EventHandler(MainImageAnimation2_Completed);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; MainImageAnimation2_Completed(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            MainImageAnimation1.Begin();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; B_MouseEnter(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, System.Windows.Input.MouseEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            ThumbNailBorderAnimation.Stop();&lt;br /&gt;            Border b=(Border)sender;&lt;br /&gt;            Storyboard.SetTarget(ThumbNailBorderAnimation,b);&lt;br /&gt;            ThumbNailBorderAnimation.Begin();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; B_MouseLeave(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, System.Windows.Input.MouseEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            ThumbNailBorderAnimationReverse.Stop();&lt;br /&gt;            Border b=(Border)sender;&lt;br /&gt;            Storyboard.SetTarget(ThumbNailBorderAnimationReverse,b);&lt;br /&gt;            ThumbNailBorderAnimationReverse.Begin();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; Img_MouseLeftButtonDown(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, System.Windows.Input.MouseButtonEventArgs e)&lt;br /&gt;        {   &lt;br /&gt;            MainImageAnimation2.Stop();&lt;br /&gt;            MainImageAnimation2.Begin();&lt;br /&gt;            MainImage.Source=((Image)sender).Source;&lt;br /&gt;            MainImage1.Source = ((Image)sender).Source;&lt;br /&gt;            &lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;That’s all !! You are done with the Photo Gallery !! &lt;font size=&quot;3&quot;&gt;Enjoy!!&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2010/01/photo-gallery-using-silverlight-40.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_iHADNmOcn6M/S2FczynwPII/AAAAAAAAAWQ/cdbdWWMNuqM/s72-c/PhotoGallery1_thumb.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-196102817650694265</guid><pubDate>Wed, 19 Aug 2009 13:27:00 +0000</pubDate><atom:updated>2009-08-19T06:27:25.507-07:00</atom:updated><title>Silverlight and Database without LINQ and EDM</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Hi All,&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;I am writing this Blog because of one reason. Many people have a question about &lt;strong&gt;&lt;u&gt;accessing the data in Silverlight applications without LINQ, LINQ-To-SQL Or EDM (Entity Data Model)&lt;/u&gt;&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;The answer for this question is “&lt;strong&gt;&lt;u&gt;Yes, You can!!&lt;/u&gt;&lt;/strong&gt;”. So, to achieve this, there can be multiple ways. I have achieved this by my way.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So, let’s start looking at the Steps-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) Create a Silverlight project using VS 2008/ VS 2010 and name it as “&lt;strong&gt;&lt;u&gt;SLWithoutLINQ&lt;/u&gt;&lt;/strong&gt;”. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Design the Page.xaml as per your specifications. I have taken only a single button which will give a call to WCF Service method and that method will return a collection of class called “&lt;strong&gt;&lt;u&gt;Students&lt;/u&gt;&lt;/strong&gt;”.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Page.xaml&lt;/u&gt;&lt;/strong&gt;-&lt;/font&gt;&lt;/p&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SL3WithoutLINQ.Page&amp;quot;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:d&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:mc&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;mc:Ignorable&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;d&amp;quot;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;d:DesignHeight&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;d:DesignWidth&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;br /&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;   &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnShowResult&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Show Result&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnShowResult_Click&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;200&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;br /&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;br /&gt;&lt;font size=&quot;3&quot;&gt;3) My database description is as below-&lt;/font&gt;&lt;/div&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Database Name – Sample.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Table Name – Test.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Table structure -&lt;/font&gt;&lt;/p&gt;  &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;300&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;&lt;strong&gt;&lt;u&gt;Field Name&lt;/u&gt;&lt;/strong&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;&lt;strong&gt;&lt;u&gt;Data Type&lt;/u&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;InstID&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Int&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;StudID&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Int&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Subject&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Varchar(50)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Result&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Varchar(50)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;FailedReason&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;150&quot;&gt;Varchar(50)&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;4) Now, let’s add a class in our web site or web application with name “Students” as shown below-&lt;/font&gt;&lt;/p&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; Students  &lt;br /&gt;{  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; InstanceID { get; set; }  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; StudentID { get; set; }  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Subject { get; set; }  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Result { get; set; }  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; FailedReason { get; set; }  &lt;br /&gt;}  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;5) Now, let’s add a simple WCF Service by the name “&lt;strong&gt;&lt;u&gt;FetchResults&lt;/u&gt;&lt;/strong&gt;” and write a code as below(&lt;strong&gt;Once you add a WCF Service, you will get an Interface and a class which implements that Interface&lt;/strong&gt;)-&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Interface&lt;/u&gt;&lt;/strong&gt;-&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/div&gt; [ServiceContract]  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;interface&lt;/span&gt; IFetchResults  &lt;br /&gt;{  &lt;br /&gt;[OperationContract]  &lt;br /&gt;List&amp;lt;Students&amp;gt; FetchStudentResult();  &lt;br /&gt;}  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&amp;#160;&lt;/div&gt;  &lt;div&gt;&lt;strong&gt;&lt;u&gt;Class&lt;/u&gt;&lt;/strong&gt;-&lt;/div&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&amp;#160;&lt;/div&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.Collections.Generic;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.Linq;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.Runtime.Serialization;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.ServiceModel;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.Text;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.Data;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.Data.SqlClient;  &lt;br /&gt;  &lt;br /&gt;&lt;span style=&quot;color: #008000&quot;&gt;// NOTE: You can use the &amp;quot;Rename&amp;quot; command on the &amp;quot;Refactor&amp;quot; menu to change the class name &amp;quot;FetchResults&amp;quot; in code, svc and config file together.&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; FetchResults : IFetchResults  &lt;br /&gt;{  &lt;br /&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public&lt;/span&gt; List&amp;lt;Students&amp;gt; FetchStudentResult()  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SqlConnection CN = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; SqlConnection(&lt;span style=&quot;color: #006080&quot;&gt;@&amp;quot;Server=.\SQLExpress;Database=Sample;Integrated Security=true&amp;quot;&lt;/span&gt;);  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SqlCommand CMD = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; SqlCommand(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Select * from Test&amp;quot;&lt;/span&gt;,CN);  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; CN.Open();  &lt;br /&gt;  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SqlDataReader DR = CMD.ExecuteReader();  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; List&amp;lt;Students&amp;gt; result=&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; List&amp;lt;Students&amp;gt;();  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; while&lt;/span&gt; (DR.Read())  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; result.Add(&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Students() {StudentID=&lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt;.Parse(DR[1].ToString()),InstanceID=&lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt;.Parse(DR[0].ToString()),Subject=DR[2].ToString(),Result=DR[3].ToString(),FailedReason=DR[4].ToString() });  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; result;  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }  &lt;br /&gt;}  &lt;div&gt;&amp;#160;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;6) &lt;/font&gt;&lt;font size=&quot;3&quot;&gt;Now once you finish your service code, Now the most important thing is change the Web.Config file.&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;So, When you add a WCF Service, it by default gives binding as wsHttpBinding. Silverlight supports only basicHttpBinding. &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;So, change it as below-&lt;/font&gt;&lt;/div&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&amp;#160;&lt;/div&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;endpoint&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;address&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;basicHttpBinding&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;contract&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;IFetchResults&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;identity&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dns&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;localhost&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;identity&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;endpoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;7) The method “&lt;strong&gt;&lt;u&gt;FetchStudentResult&lt;/u&gt;&lt;/strong&gt;” returns a collection of “&lt;strong&gt;&lt;u&gt;Students&lt;/u&gt;&lt;/strong&gt;” class. Now let’s move to out next step.&lt;/font&gt;&lt;/div&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;8) Now add a WCF Service reference to your Silverlight project. and create a proxy of a class “&lt;strong&gt;&lt;u&gt;FetchResultsClient&lt;/u&gt;&lt;/strong&gt;” as shown below-&lt;/font&gt;&lt;/p&gt; List&amp;lt;StudentProxy.Students&amp;gt; studCollection;  &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnShowResult_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)  &lt;br /&gt;{  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; StudentProxy.FetchResultsClient proxy = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; SL3WithoutLINQ.StudentProxy.FetchResultsClient();  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; proxy.FetchStudentResultCompleted += &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt;&amp;#160; EventHandler&amp;lt;SL3WithoutLINQ.StudentProxy.FetchStudentResultCompletedEventArgs&amp;gt;(proxy_FetchStudentResultCompleted);  &lt;br /&gt;  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; proxy.FetchStudentResultAsync();  &lt;br /&gt;  &lt;br /&gt;}  &lt;br /&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&amp;#160;&lt;/div&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; proxy_FetchStudentResultCompleted(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, SL3WithoutLINQ.StudentProxy.FetchStudentResultCompletedEventArgs e)  &lt;br /&gt;{  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; studCollection = e.Result.ToList();  &lt;br /&gt;}  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&amp;#160;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;9) &lt;/font&gt;&lt;font size=&quot;3&quot;&gt;Now put a break point on “&lt;strong&gt;proxy_FetchStudentResultCompleted”&lt;/strong&gt; method. and run your application. Click the button “&lt;strong&gt;&lt;u&gt;Show Result&lt;/u&gt;&lt;/strong&gt;”. and when the break point is invoked, you will see the no. of instances in the studCollection as shown below-&lt;/font&gt;&lt;/div&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;div&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Sov9sHRnTrI/AAAAAAAAAV4/uSJ7UrJ8efk/s1600-h/DebugView%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;DebugView&quot; border=&quot;0&quot; alt=&quot;DebugView&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Sov9uQZWRPI/AAAAAAAAAV8/IUpB-PTaQJU/DebugView_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;592&quot; height=&quot;289&quot; /&gt;&lt;/a&gt;     &lt;br /&gt;&lt;/div&gt;  &lt;div&gt;   &lt;br /&gt;&lt;font size=&quot;3&quot;&gt;In the above result, I have six rows return from the table called “&lt;strong&gt;&lt;u&gt;Test&lt;/u&gt;&lt;/strong&gt;”. Now you can use this collection as a data context for any control !!&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;10) So, That’s all !! Enjoy.&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;   &lt;br /&gt;&lt;/div&gt;  </description><link>http://pkrd.blogspot.com/2009/08/silverlight-and-database-without-linq.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_iHADNmOcn6M/Sov9uQZWRPI/AAAAAAAAAV8/IUpB-PTaQJU/s72-c/DebugView_thumb%5B2%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-3924082565294268230</guid><pubDate>Thu, 30 Jul 2009 11:38:00 +0000</pubDate><atom:updated>2009-07-30T04:47:32.460-07:00</atom:updated><title>Physics Behaviors in Silverlight 3.0</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Hi All,&lt;/p&gt;  &lt;p&gt;From last two days, I was learning about the “&lt;strong&gt;&lt;u&gt;Physics Behaviors&lt;/u&gt;&lt;/strong&gt;”. How to Use Them? How to Apply Them? I am not at all good in Physics. But, tried some “&lt;strong&gt;&lt;u&gt;Physics Behaviors&lt;/u&gt;&lt;/strong&gt;” in my game. I have seen some “COOOOOOOOOOL” Demos from the below site -&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://www.andybeaulieu.com/Default.aspx?tabid=67&amp;amp;EntryID=165&quot; href=&quot;http://www.andybeaulieu.com/Default.aspx?tabid=67&amp;amp;EntryID=165&quot; target=&quot;_blank&quot;&gt;http://www.andybeaulieu.com/Default.aspx?tabid=67&amp;amp;EntryID=165&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;and I got inspired by “&lt;strong&gt;&lt;u&gt;&lt;font size=&quot;4&quot;&gt;Andy Beaulieu&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;”. Thanks to Andy!!.&lt;/p&gt;  &lt;p&gt;I have downloaded a library called “&lt;font size=&quot;5&quot;&gt;PhysicsHelper 3.0.0.1 Beta&lt;/font&gt;”. Below is a link for the same-&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://physicshelper.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30208&quot; href=&quot;http://physicshelper.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30208&quot;&gt;http://physicshelper.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30208&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This is &lt;font size=&quot;5&quot;&gt;Awesome&lt;/font&gt;!!&lt;/p&gt;  &lt;p&gt;So, just to see some capabilities of “&lt;strong&gt;&lt;u&gt;Physics Behaviors&lt;/u&gt;&lt;/strong&gt;” using in Silverlight 3.0, I have designed a simple game. Well, You can “&lt;strong&gt;&lt;u&gt;&lt;font size=&quot;4&quot;&gt;Play&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;” Online. Below is the demo -&lt;/p&gt; &lt;iframe style=&quot;width: 800px; height: 700px&quot; src=&quot;http://silverlight.services.live.com/invoke/70559/PhysicsGame1InSL3/iframe.html&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Important Note – The above Demonstration is “&lt;font size=&quot;4&quot;&gt;without writing any Code&lt;/font&gt;”. I have used Microsoft Expression Blend 3.0. &lt;font size=&quot;4&quot;&gt;That’s All&lt;/font&gt;!!&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;But in this Blog I am not writing “&lt;strong&gt;&lt;u&gt;How to do that?&lt;/u&gt;&lt;/strong&gt;&amp;quot; Step – By – Step Lab Manual as usual. The reason is I want to understand first How the Physics Works for these behaviors by My Self. Once I am done with that, I will come up with Step By Step Lab Manual. &lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;4&quot;&gt;Till the Time Enjoy !!&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/07/physics-behaviors-in-silverlight-30.html</link><author>noreply@blogger.com (Pravinkumar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-4121619710771600225</guid><pubDate>Fri, 24 Jul 2009 07:53:00 +0000</pubDate><atom:updated>2009-07-24T00:56:19.856-07:00</atom:updated><title>30 Transition Effects In Silverlight 3.0</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Hi All,&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;The purpose of writing this blog is to show you that now you can apply “&lt;strong&gt;&lt;u&gt;30 Transition Effect in Silverlight 3.0&lt;/u&gt;&lt;/strong&gt;”. In my last blog, I have shown “&lt;strong&gt;&lt;u&gt;&lt;a href=&quot;http://pkrd.blogspot.com/2009/07/23-pixel-shader-effects-in-silverlight.html&quot; target=&quot;_blank&quot;&gt;23 Pixel Shader Effects in Silverlight 3.0&lt;/a&gt;&lt;/u&gt;&lt;/strong&gt;”. If you have not seen it yet, please have a look at it and then proceed to apply these Transition Effects in your application.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;For this demo, you must see the video which is available on “&lt;strong&gt;&lt;u&gt;Channel 9&lt;/u&gt;&lt;/strong&gt;”. Below is the link for the Video -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://channel9.msdn.com/shows/Continuum/WPFFXDemo&quot;&gt;&lt;font size=&quot;3&quot;&gt;http://channel9.msdn.com/shows/Continuum/WPFFXDemo&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;To Apply these effects you will have to now download the library called “WPFSLFx” from “CodePlex.com”. It’s a .ZIP file. Below is a link for the same -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://codeplex.com/wpffx&quot;&gt;&lt;font size=&quot;3&quot;&gt;http://codeplex.com/wpffx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Unzip the downloaded file at your preferred location. You will see a folder called “&lt;strong&gt;&lt;u&gt;WPFSLFx&lt;/u&gt;&lt;/strong&gt;”. If you drill down the folder you will see “&lt;strong&gt;&lt;u&gt;SL&lt;/u&gt;&lt;/strong&gt;” folder. Within that folder you will get a library called -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) &lt;strong&gt;&lt;u&gt;SLTransitionEffects.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;It contains 30 different &lt;strong&gt;&lt;u&gt;Transition&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;effects &lt;/u&gt;&lt;/strong&gt;which you can try out online. Below is a Demo for the same -&lt;/font&gt;&lt;/p&gt; &lt;iframe style=&quot;width: 600px; height: 900px&quot; src=&quot;http://silverlight.services.live.com/invoke/70559/30TransitionEffectsInSL3/iframe.html&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;The below table shows all the names of the transitions which you can apply in your Silverlight 3 application.&lt;/font&gt;&lt;/p&gt;  &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;432&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;strong&gt;&lt;u&gt;SR.NO.&lt;/u&gt;&lt;/strong&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;strong&gt;&lt;u&gt;Transition Name&lt;/u&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;1&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Banded Swirl Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;2&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Blinds Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;3&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Blood Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;4&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Circle Reveal Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;5&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Circle Stretch Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;6&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Circular Blur Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;7&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Cloud Reveal Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;8&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Crumble Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;9&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Disolve Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;10&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Drop Fade Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;11&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Fade Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;12&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Least Bright Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;13&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Line Reveal Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;14&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Most Bright Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;15&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Pixelate In Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;16&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Pixelate Out Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;17&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Pixelate Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;18&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Radial Blur Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;19&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Radial Wiggle Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;20&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Random Circle Reveal Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;21&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Ripple Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;22&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Rotate Crumble Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;23&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Saturate Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;24&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Shrink Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;25&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Slide In Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;26&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Smooth Swirl Grid Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;27&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Swirl Grid Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;28&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Swirl Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;29&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Water Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;font size=&quot;3&quot;&gt;30&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;389&quot;&gt;&lt;font size=&quot;3&quot;&gt;Wave Transition Effect&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Now, to apply above transitions let’s see the step-by-step guide lines-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) Create a Silverlight 3.0 application using Microsoft Expression Blend 3.0.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Once you are done, add a project “&lt;strong&gt;&lt;u&gt;SLTransitionEffects&lt;/u&gt;&lt;/strong&gt;” from the location where you have unzipped the “WPSLEfx” zip file. My location is -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;C:\WPFSLFx\WPFSLFx\SL\SLTransitionEffects&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Then compile the SLTransitionEffects Library and add a reference of the same into your Silverlight project as shown below-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SmlodQtgWLI/AAAAAAAAAVg/q4JVYGJuqP8/s1600-h/AddReference%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;AddReference&quot; border=&quot;0&quot; alt=&quot;AddReference&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SmloePe206I/AAAAAAAAAVk/wwZAQMDY_Xg/AddReference_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;428&quot; height=&quot;264&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;4) Now, Add at least two images in the Silverlight project and add a “&lt;strong&gt;&lt;u&gt;Image Control&lt;/u&gt;&lt;/strong&gt;” on MainPage.xaml file with height and width as per you specifications. Set one image as a source to image control.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;5) Now the most important thing, add one “&lt;strong&gt;&lt;u&gt;ImageBrush&lt;/u&gt;&lt;/strong&gt;” as a user control resource as shown below-&lt;/font&gt;&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ImageBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ImageSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Tulips.jpg&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Key&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ImBrush&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;6) Now, Select a Image control which you have on MainPage.xaml and go to property window.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;7) Now, go to “&lt;strong&gt;&lt;u&gt;Appearance section&lt;/u&gt;&lt;/strong&gt;” and you will see the “&lt;strong&gt;&lt;u&gt;Effect&lt;/u&gt;&lt;/strong&gt;” property and a “&lt;strong&gt;&lt;u&gt;New&lt;/u&gt;&lt;/strong&gt;” button. Click that button and then you will see out Transition effect library in a “&lt;strong&gt;&lt;u&gt;Select Object&lt;/u&gt;&lt;/strong&gt;” dialog box. And you will see 30 different classes under the “&lt;strong&gt;&lt;u&gt;SLTransitionEffects&lt;/u&gt;&lt;/strong&gt;” library. Each class presents a Transition Effect as shown below-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smloe_z79QI/AAAAAAAAAVo/Ln9M7MoP1Aw/s1600-h/TransitionEffects%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;TransitionEffects&quot; border=&quot;0&quot; alt=&quot;TransitionEffects&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smlof_ijERI/AAAAAAAAAVs/8yO2m377y3w/TransitionEffects_thumb%5B4%5D.jpg?imgmax=800&quot; width=&quot;441&quot; height=&quot;610&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;8) For this demonstration I will use “&lt;strong&gt;&lt;u&gt;DropFadeTransitionEffect&lt;/u&gt;&lt;/strong&gt;” class. So, make a choice of&amp;#160; “&lt;strong&gt;&lt;u&gt;DropFadeTransitionEffect&lt;/u&gt;&lt;/strong&gt; class and click “&lt;strong&gt;&lt;u&gt;OK&lt;/u&gt;&lt;/strong&gt;” button.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;9) Now, you will see three properties-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;I) &lt;strong&gt;&lt;u&gt;OldImage&lt;/u&gt;&lt;/strong&gt;- This is the property to which we will set the “&lt;strong&gt;&lt;u&gt;ImageBrush&lt;/u&gt;&lt;/strong&gt;” we have created in our earlier steps as shown below-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SmlogjuqVBI/AAAAAAAAAVw/qMlr-DeMUDE/s1600-h/OldImage%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;OldImage&quot; border=&quot;0&quot; alt=&quot;OldImage&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SmlohQeRjtI/AAAAAAAAAV0/KBrD5X9oatY/OldImage_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;449&quot; height=&quot;202&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;II) &lt;strong&gt;&lt;u&gt;Progress&lt;/u&gt;&lt;/strong&gt; – This property is the most common property which you will find in almost all the transition classes. Now, Create a “&lt;strong&gt;&lt;u&gt;StoryBoard&lt;/u&gt;&lt;/strong&gt;” (Animation) for five seconds. and change the “&lt;strong&gt;&lt;u&gt;Progress&lt;/u&gt;&lt;/strong&gt;” property from 0 – 1.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;III) &lt;strong&gt;&lt;u&gt;RandomSeed&lt;/u&gt;&lt;/strong&gt; – Let it be zero.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So, you are done!! Start the animation on some button click event of the MainPage.xaml file and see the Transition effect applied on your Image. Very Simple !!!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Now you can try applying the Transition Effects on the Silverlight Controls as per your preference.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So, what are you waiting for!! Download the Library and Try all the “&lt;strong&gt;&lt;u&gt;30 Transition Effects in Silverlight 3.0 Applications&lt;/u&gt;&lt;/strong&gt;”.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Enjoy!!! &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Pravinkumar.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;&amp;#160;&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/07/30-transition-effects-in-silverlight-30.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/SmloePe206I/AAAAAAAAAVk/wwZAQMDY_Xg/s72-c/AddReference_thumb%5B3%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-1157026530474160548</guid><pubDate>Wed, 22 Jul 2009 11:19:00 +0000</pubDate><atom:updated>2009-07-22T04:27:39.529-07:00</atom:updated><title>23 Pixel Shader Effects in Silverlight 3.0</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Hi All,&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Yesterday, I was just going through the Pixel Shader Effects in Silverlight 3.0. and found one interesting video on Channel 9 about WPF Effects library on &lt;strong&gt;&lt;u&gt;CodePlex&lt;/u&gt;&lt;/strong&gt;. This library is modified for “&lt;strong&gt;&lt;u&gt;Silverlight 3&lt;/u&gt;&lt;/strong&gt;” and contains 23 effects for Silverlight 3 as well. Below is a link for the same-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Video Link- &lt;a title=&quot;http://channel9.msdn.com/shows/Continuum/WPFFXDemo/&quot; href=&quot;http://channel9.msdn.com/shows/Continuum/WPFFXDemo/&quot;&gt;http://channel9.msdn.com/shows/Continuum/WPFFXDemo/&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Library Link - &lt;a href=&quot;http://codeplex.com/wpffx&quot;&gt;http://codeplex.com/wpffx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So, Download this library. It’s a .ZIP file. Extract it as per your preferred location and you will see a Folder SL, which contains a Library -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) SLShaderEffectLibrary.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;To see these effects Live, below is a table which I made with all “&lt;strong&gt;&lt;u&gt;23 Pixel Shader Effects&lt;/u&gt;&lt;/strong&gt;” -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;List of 23 Pixel Shader Effects&lt;/u&gt;&lt;/strong&gt;-&lt;/font&gt;&lt;/p&gt;  &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;664&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;50&quot;&gt;&lt;strong&gt;&lt;u&gt;SR.NO.&lt;/u&gt;&lt;/strong&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;&lt;strong&gt;&lt;u&gt;Pixel Shader Effect Name&lt;/u&gt;&lt;/strong&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;strong&gt;&lt;u&gt;Snapshot of the Effect&lt;/u&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;52&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Banded Swirl Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1E72GceI/AAAAAAAAASQ/uDUySLe1r2M/s1600-h/Effect1%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;Effect1&quot; border=&quot;0&quot; alt=&quot;Effect1&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1F6-Tx-I/AAAAAAAAASU/E7vUUIjWaww/Effect1_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;310&quot; height=&quot;145&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;2&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Bloom Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1Go24OsI/AAAAAAAAASY/niSF6vhmgqw/s1600-h/Bloom%5B3%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;Bloom&quot; border=&quot;0&quot; alt=&quot;Bloom&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1H_CbIPI/AAAAAAAAASc/RP-Bx1Kp4Co/Bloom_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;314&quot; height=&quot;159&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;3&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Bright Extract Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1IUNzmHI/AAAAAAAAASg/iinf9eY-QO0/s1600-h/BrightExtract%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;BrightExtract&quot; border=&quot;0&quot; alt=&quot;BrightExtract&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1JY9FWfI/AAAAAAAAASk/MP7Bft96q0k/BrightExtract_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;318&quot; height=&quot;150&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;4&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Color Key Alpha Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1J2fzKLI/AAAAAAAAASo/FV_Khc2kE8w/s1600-h/ColorKeyAlpha%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ColorKeyAlpha&quot; border=&quot;0&quot; alt=&quot;ColorKeyAlpha&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1Kw6qbFI/AAAAAAAAASs/G2S3_OCuTb4/ColorKeyAlpha_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;320&quot; height=&quot;146&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;5&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Color Tone Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1LrbCYtI/AAAAAAAAASw/pHSw4ZNlQ3Y/s1600-h/ColorToneEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ColorToneEffect&quot; border=&quot;0&quot; alt=&quot;ColorToneEffect&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1MqahyOI/AAAAAAAAAS0/ezj9XdNHEdM/ColorToneEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;324&quot; height=&quot;125&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;6&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Contrast Adjust Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1NPkMQLI/AAAAAAAAAS4/w81fw4P7Yl8/s1600-h/ContrastAdjust%5B4%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ContrastAdjust&quot; border=&quot;0&quot; alt=&quot;ContrastAdjust&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1OWR71zI/AAAAAAAAAS8/Rfpzarjh8RM/ContrastAdjust_thumb%5B2%5D.png?imgmax=800&quot; width=&quot;328&quot; height=&quot;128&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;7&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Directional Blur Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1PdnDKxI/AAAAAAAAATA/ZEgfaPbL2aw/s1600-h/DirectionalBlur%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;DirectionalBlur&quot; border=&quot;0&quot; alt=&quot;DirectionalBlur&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1QDuPYaI/AAAAAAAAATE/iy6VFRzrm8Y/DirectionalBlur_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;329&quot; height=&quot;124&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;8&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Embossed Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1Qq__pWI/AAAAAAAAATI/sV8BUkZZsBk/s1600-h/EmbossedEffect%5B4%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;EmbossedEffect&quot; border=&quot;0&quot; alt=&quot;EmbossedEffect&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1RdY1DHI/AAAAAAAAATM/yYPvTfQbaAY/EmbossedEffect_thumb%5B2%5D.png?imgmax=800&quot; width=&quot;330&quot; height=&quot;122&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;9&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Gloom Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1SGNb-JI/AAAAAAAAATQ/yX8T-rqR-CY/s1600-h/GloomEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;GloomEffect&quot; border=&quot;0&quot; alt=&quot;GloomEffect&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1TG5HzsI/AAAAAAAAATU/TU5WBX-wn9c/GloomEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;335&quot; height=&quot;122&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;10&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Growable Poisson Disk Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1T7VZPYI/AAAAAAAAATY/gGIwkrzPg9k/s1600-h/GrowablePoissonEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;GrowablePoissonEffect&quot; border=&quot;0&quot; alt=&quot;GrowablePoissonEffect&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1U8I2j3I/AAAAAAAAATc/H2HGvr-r_gg/GrowablePoissonEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;337&quot; height=&quot;126&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;11&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Invert Color Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1VcOdMgI/AAAAAAAAATg/NsNinF2f1lQ/s1600-h/InvertColor%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;InvertColor&quot; border=&quot;0&quot; alt=&quot;InvertColor&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1Wavn6pI/AAAAAAAAATk/fiNRjXPl7ho/InvertColor_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;339&quot; height=&quot;124&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;12&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Light Streak Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1XPNTfDI/AAAAAAAAATo/i1vANIbmT-o/s1600-h/LightStreakEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;LightStreakEffect&quot; border=&quot;0&quot; alt=&quot;LightStreakEffect&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1X4s4A-I/AAAAAAAAATs/eMTf0RonUNQ/LightStreakEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;340&quot; height=&quot;115&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;13&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Magnify Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1YS-DdPI/AAAAAAAAATw/AmguT-cL4fc/s1600-h/MagnifyEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;MagnifyEffect&quot; border=&quot;0&quot; alt=&quot;MagnifyEffect&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1ZoaMRlI/AAAAAAAAAT0/Php5DRx5310/MagnifyEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;341&quot; height=&quot;123&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;14&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Monochrome Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1aDKZUsI/AAAAAAAAAT4/DpcSi8854RQ/s1600-h/MonochromEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;MonochromEffect&quot; border=&quot;0&quot; alt=&quot;MonochromEffect&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1a92gaPI/AAAAAAAAAT8/eMflADBYE8U/MonochromEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;344&quot; height=&quot;120&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;15&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Pinch Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1bv_02FI/AAAAAAAAAUA/GKqe8ibk8k0/s1600-h/PinchEffect%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;PinchEffect&quot; border=&quot;0&quot; alt=&quot;PinchEffect&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1cgyEkAI/AAAAAAAAAUE/5okhRv7wAEY/PinchEffect_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;347&quot; height=&quot;115&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;16&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Pixelate Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1dIH4f9I/AAAAAAAAAUI/P_Z1WIoFm9c/s1600-h/PixelateEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;PixelateEffect&quot; border=&quot;0&quot; alt=&quot;PixelateEffect&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1eMwXhUI/AAAAAAAAAUM/VIPCQEwn4Q8/PixelateEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;348&quot; height=&quot;112&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;17&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Ripple Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1fFWjcFI/AAAAAAAAAUQ/lqd67qClRUs/s1600-h/RippleEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;RippleEffect&quot; border=&quot;0&quot; alt=&quot;RippleEffect&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1f0N6FWI/AAAAAAAAAUU/IiX1qbJbE_Q/RippleEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;352&quot; height=&quot;108&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;18&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Sharpen Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1guym0II/AAAAAAAAAUY/mxgv6Gqog7g/s1600-h/sharpenEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;sharpenEffect&quot; border=&quot;0&quot; alt=&quot;sharpenEffect&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1hbMlYFI/AAAAAAAAAUc/dl2kWOix5n4/sharpenEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;354&quot; height=&quot;109&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;19&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Smooth Magnify Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1iZ-8GCI/AAAAAAAAAUg/hZxBOTOxgpk/s1600-h/SmoothMagnify%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;SmoothMagnify&quot; border=&quot;0&quot; alt=&quot;SmoothMagnify&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1jL0se5I/AAAAAAAAAUk/t_p2mVN5cUI/SmoothMagnify_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;354&quot; height=&quot;108&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;20&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Swirl Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1kS2TfAI/AAAAAAAAAUo/WWOVajv7yE4/s1600-h/SwirlEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;SwirlEffect&quot; border=&quot;0&quot; alt=&quot;SwirlEffect&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1lRJpKzI/AAAAAAAAAUs/sUfcDj81ZOk/SwirlEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;354&quot; height=&quot;113&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;21&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Tone Mapping Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1mJ-n05I/AAAAAAAAAUw/tvWzEMDlDqs/s1600-h/ToneMappingEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ToneMappingEffect&quot; border=&quot;0&quot; alt=&quot;ToneMappingEffect&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1m-ZaY9I/AAAAAAAAAU0/bZNyNxlbCTg/ToneMappingEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;357&quot; height=&quot;119&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;22&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Toon Shader Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1n4BTXgI/AAAAAAAAAU4/B1gJnVS_Fm8/s1600-h/ToonShaderEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ToonShaderEffect&quot; border=&quot;0&quot; alt=&quot;ToonShaderEffect&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1oqw3EII/AAAAAAAAAU8/JbGIH_cHIsE/ToonShaderEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;355&quot; height=&quot;120&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt;23&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;238&quot;&gt;Zoom Blur Effect&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;374&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1pivFmsI/AAAAAAAAAVA/Drb5NiPeAYs/s1600-h/ZoomBlurEffect%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ZoomBlurEffect&quot; border=&quot;0&quot; alt=&quot;ZoomBlurEffect&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1qUOKjOI/AAAAAAAAAVE/a2FrLPd-liQ/ZoomBlurEffect_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;357&quot; height=&quot;111&quot; /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;To apply these effects, here is a step-by-step lab manual -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) Create a Silverlight 3 project using Microsoft Expression Blend 3. Here I took a Sketch Flow project of Silverlight 3.0.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Once you are done with this, Add the project “&lt;strong&gt;&lt;u&gt;SLShaderEffectLibrary&lt;/u&gt;&lt;/strong&gt;” from the location where you have extracted the .ZIP file. My path where the “&lt;strong&gt;&lt;u&gt;SLShaderEffectLibrary&lt;/u&gt;&lt;/strong&gt;” is as below-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;C:\WPFSLFx\WPFSLFx\SL\SLShaderEffectLibrary&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Now compile the project “&lt;strong&gt;&lt;u&gt;SLShaderEffectLibrary&lt;/u&gt;&lt;/strong&gt;” and add the reference of this library into our Silverlight project as shown below-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Smb1rF2JMhI/AAAAAAAAAVI/e14dqFhtHYg/s1600-h/AddRef%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;AddRef&quot; border=&quot;0&quot; alt=&quot;AddRef&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1r1WgcFI/AAAAAAAAAVM/8TSJ7_OwU9o/AddRef_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;360&quot; height=&quot;352&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;4) Now add a Image control in our Silverlight control. Set your favorite picture to the image. Once you are done with this, now let’s add a effect on this image.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;5) Find the “&lt;strong&gt;&lt;u&gt;Effect&lt;/u&gt;&lt;/strong&gt;” property of the Image under Appearance section, and click the “&lt;strong&gt;&lt;u&gt;New&lt;/u&gt;&lt;/strong&gt;” button as shown below-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Smb1smdgSaI/AAAAAAAAAVQ/krvh743JADc/s1600-h/NewEffect%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;NewEffect&quot; border=&quot;0&quot; alt=&quot;NewEffect&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1tLVXriI/AAAAAAAAAVU/DhsSTO1Ga30/NewEffect_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;370&quot; height=&quot;147&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;6) Now, You will see a “&lt;strong&gt;&lt;u&gt;Select Object&lt;/u&gt;&lt;/strong&gt;” Dialog box. Within this dialog box drill-down the “&lt;strong&gt;&lt;u&gt;SLShaderEffectLibrary&lt;/u&gt;&lt;/strong&gt;” and you will see all the shader classes which you can apply to your Image-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Smb1tznA4sI/AAAAAAAAAVY/skbAnYM5yTE/s1600-h/SelectObjectDialogBox%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;SelectObjectDialogBox&quot; border=&quot;0&quot; alt=&quot;SelectObjectDialogBox&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Smb1u7DdcYI/AAAAAAAAAVc/x2bCg4zOQI4/SelectObjectDialogBox_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;376&quot; height=&quot;414&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;7) Now change the properties as per your requirement and see the effect on your image.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Note-: I have created a StoryBoard for each effect and applied it to different images. If you want to try out the same create a story board and change the properties of each effect.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;8) So, what are you waiting for !! Try out all the effects by downloading the Library.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Enjoy!!&lt;/p&gt;  &lt;p&gt;Pravinkumar&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/07/23-pixel-shader-effects-in-silverlight.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_iHADNmOcn6M/Smb1F6-Tx-I/AAAAAAAAASU/E7vUUIjWaww/s72-c/Effect1_thumb%5B2%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-668187729050276032</guid><pubDate>Fri, 10 Jul 2009 13:50:00 +0000</pubDate><atom:updated>2009-07-12T22:37:24.404-07:00</atom:updated><title>SketchFlow in Silverlight 3.0 using Microsoft Expression Blend 3</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Hi All,&lt;/p&gt;  &lt;p&gt;What I was waiting for is now Available !!&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Silverlight 3.0 RTW &lt;/u&gt;&lt;/strong&gt;and &lt;strong&gt;&lt;u&gt;Microsoft Expression Blend 3 with SketchFlow &lt;/u&gt;&lt;/strong&gt;are available for download. Please find the links to download below-&lt;/p&gt;  &lt;p&gt;Microsoft Silverlight 3 Runtime    &lt;br /&gt;&lt;a href=&quot;http://www.microsoft.com/silverlight/resources/install.aspx&quot;&gt;http://www.microsoft.com/silverlight/resources/install.aspx&lt;/a&gt;     &lt;br /&gt;Microsoft Expression Blend 3 with SketchFlow     &lt;br /&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=92e1db7a-5d36-449b-8c6b-d25f078f3609&quot;&gt;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=92e1db7a-5d36-449b-8c6b-d25f078f3609&lt;/a&gt;     &lt;br /&gt;Microsoft Silverlight 3 SDK     &lt;br /&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=2050e580-f1d5-4040-bb09-e6185591b6b5&quot;&gt;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=2050e580-f1d5-4040-bb09-e6185591b6b5&lt;/a&gt;     &lt;br /&gt;Microsoft Visual Studio 2008 Tools     &lt;br /&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=9442b0f2-7465-417a-88f3-5e7b5409e9dd&quot;&gt;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=9442b0f2-7465-417a-88f3-5e7b5409e9dd&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Most importantly what I was waiting for is Sketch Flow. So, to show few capabilities of Microsoft Expression Blend 3 SketchFlow, I tried out a very simple demo.&lt;/p&gt;  &lt;p&gt;This demo is about customers, products and their orders. So, when customers start the application they will see the Welcome Screen. Then they can see other customers, the available products and their order status. Then they can see the complete report of their own. At the end they can check out their self.&lt;/p&gt;  &lt;p&gt;During this demonstration, if customers would like to give few feedbacks on the products which they are purchasing, they can give a feedback. By using this feedback, the company owner can rectify or appreciate the feedback which he can see as a designer. &lt;/p&gt;  &lt;p&gt;So, let’s try out this example and see how we can build the White Board kind of Sketch Flow in Silverlight 3.0 using Microsoft Expression Blend 3 with Sketch Flow-&lt;/p&gt;  &lt;p&gt;So, install Microsoft Silverlight 3.0 Runtime, Microsoft Silverlight 3.0 SDK and Microsoft Expression Blend with SketchFlow on your machine.&lt;/p&gt;  &lt;p&gt;1) First step is to look at how you create a Sketch Flow project by using Microsoft Expression Blend 3. So, just look at the below screen shot-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldGj7SZESI/AAAAAAAAAPI/WQSgwIiMYpE/s1600-h/clip_image001%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image001&quot; border=&quot;0&quot; alt=&quot;clip_image001&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGkoFTuVI/AAAAAAAAAPM/DtGcJf3p9xg/clip_image001_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;397&quot; height=&quot;397&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2) If you observe, you can see that you can create a sketch flow project separately for Silverlight 3.0 applications or WPF application. So, let’s make a choice of “&lt;b&gt;&lt;u&gt;Silverlight 3 SketchFlow Application&lt;/u&gt;&lt;/b&gt;” and name it as “&lt;b&gt;&lt;u&gt;FirstSketchFlowApplication&lt;/u&gt;&lt;/b&gt;”.&lt;/p&gt;  &lt;p&gt;3) Once you create a project, you will see the window like below which has different sections which we will discuss one by one-&lt;/p&gt;  &lt;p&gt;a. Projects Window- this window will show you a structure of Silverlight SketchFlow project. It has several new items added as shown below- &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldGlLSOiCI/AAAAAAAAAPQ/wHVXUpE0HZg/s1600-h/clip_image003%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image003&quot; border=&quot;0&quot; alt=&quot;clip_image003&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldGmPAXPZI/AAAAAAAAAPU/NVLAs8Kb7zc/clip_image003_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;410&quot; height=&quot;409&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;First item is Fonts folder which contains different fonts. Screen 1 is a second item which is the first screen for our project. Third item this is most important item that is Sketch.Flow. This file shows the available screens, their connections with the other screens and lots more. You open this file and see what it shows when we finish our Sketching. Forth item is SketchStyles.xaml which contains bunch of styles and Visual states which will be utilized by our Scetchflow project.&lt;/p&gt;  &lt;p&gt;b. Second window is SketchFlow Map. Now this is the window which is going allow you to sketch multiple screens, connect those screens with each other and lots of other functionality. Basically this window is used to Model the Flow, do Navigation and composition.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldGmwDM3AI/AAAAAAAAAPY/U4ECGzJzQhQ/s1600-h/clip_image005%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image005&quot; border=&quot;0&quot; alt=&quot;clip_image005&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldGnp_wv0I/AAAAAAAAAPc/9H3RV3UXfBc/clip_image005_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;635&quot; height=&quot;277&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You will see a small tool box at the bottom of the SketchFlow Map window which will allow you to add screens, map the screens, remove the screens etc.&lt;/p&gt;  &lt;p&gt;c. Now if you make a choice of screen shown in Blue rectangle, you will see a small toolbar which is again allow you to add-&lt;/p&gt;  &lt;p&gt;i. Connected Screen.&lt;/p&gt;  &lt;p&gt;ii. Connect an existing screen.&lt;/p&gt;  &lt;p&gt;iii. Create and insert a component screen.&lt;/p&gt;  &lt;p&gt;iv. Change visual tag.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldGoVoTCCI/AAAAAAAAAPg/HQX8FlTUYsE/s1600-h/clip_image006%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image006&quot; border=&quot;0&quot; alt=&quot;clip_image006&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldGpAssrVI/AAAAAAAAAPk/HbifGw4Y8Tw/clip_image006_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;449&quot; height=&quot;146&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;4) So, next step is renaming the screen 1 by the name “&lt;b&gt;Start&lt;/b&gt;”. And by clicking a small button “&lt;b&gt;Create a Connected screen&lt;/b&gt;” just draw the SketchFlow as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldGpxf7FPI/AAAAAAAAAPo/FqM0D-rVnmc/s1600-h/clip_image008%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image008&quot; border=&quot;0&quot; alt=&quot;clip_image008&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGqneTBII/AAAAAAAAAPs/OvgVLaJ3tQs/clip_image008_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;642&quot; height=&quot;229&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The above Sketch flow shows couple of windows like, Start, WelCome, Customers, Products, Orders, CheckCustomerReport, CheckOut.&lt;/p&gt;  &lt;p&gt;5) Now, press “F5” and See the output of your application. The application will look like as shown below-&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGrRVYUZI/AAAAAAAAAPw/RruZrQrddoY/s1600-h/clip_image010%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image010&quot; border=&quot;0&quot; alt=&quot;clip_image010&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGsZ00l0I/AAAAAAAAAP0/GgVSinBbFQU/clip_image010_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;655&quot; height=&quot;459&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;6) If you could see at the left hand of the screen you will see a panel called “SketchFlow Player”. This player has couple of options as described below-&lt;/p&gt;  &lt;p&gt;a. The first section is your “&lt;b&gt;&lt;u&gt;start Section&lt;/u&gt;&lt;/b&gt;”.&lt;/p&gt;  &lt;p&gt;b. Second section is your “&lt;b&gt;&lt;u&gt;NAVIGATE Section&lt;/u&gt;&lt;/b&gt;”. Where it will show all the windows which you can navigate through.&lt;/p&gt;  &lt;p&gt;c. Zoom panel.&lt;/p&gt;  &lt;p&gt;d. “FEEDBACK section”- This one is great. Your customers now can give a online feed back by using the tools shown in FEEDBACK section. Later, your designer can open the feedback given by the customers and act upon that and do the necessary changes.&lt;/p&gt;  &lt;p&gt;e. MAP- your customers can see the entire sketch and flow of the navigation which is available in your application.&lt;/p&gt;  &lt;p&gt;f. Try out these few sections from SketchFlow Player.&lt;/p&gt;  &lt;p&gt;7) Now as you have seen the first output, let’s use other features which are available with SketchFlow.&lt;/p&gt;  &lt;p&gt;8) So, let’s starting designing the screens which are almost empty which we have created in our pervious steps. When you think about designing the screens, you can use all the controls which are there available in Blend. But probably the look and feel which you are looking for while sketching the prototypes for your applications, the regular controls might not give the sketch look and feel.&lt;/p&gt;  &lt;p&gt;9) For that in Sketch Flow of Silverlight we have couple of new Sketch controls which you can use in your sketching applications as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldGtIU2UwI/AAAAAAAAAP4/4Ir6wNqKjVA/s1600-h/clip_image012%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image012&quot; border=&quot;0&quot; alt=&quot;clip_image012&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGtwzWedI/AAAAAAAAAP8/hKOuFhzGK74/clip_image012_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;688&quot; height=&quot;352&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;10) In the above figure, click to Asset from the blend toolbox and go to “&lt;b&gt;&lt;u&gt;Styles group&lt;/u&gt;&lt;/b&gt;” -&amp;gt; “&lt;b&gt;&lt;u&gt;SketchStyles&lt;/u&gt;&lt;/b&gt;” section. You will see 33 new Sketch controls which are already styled for Sketching. Now you can start using these controls for your screens.&lt;/p&gt;  &lt;p&gt;11) So, let’s start designing our first screen called “Start”. Open the screen in the design mode and design the screen as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldGujoOrXI/AAAAAAAAAQA/d5g51Aed2wo/s1600-h/clip_image014%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image014&quot; border=&quot;0&quot; alt=&quot;clip_image014&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldGvQQykXI/AAAAAAAAAQE/LlqhyOoaaF8/clip_image014_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;656&quot; height=&quot;421&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;12) Here I have used a control from Sketch section called “&lt;b&gt;&lt;u&gt;TitleCenter-sketch&lt;/u&gt;&lt;/b&gt;” for the titles and drawn the happy faces by using a tool called “Pencil” from the standard control model.&lt;/p&gt;  &lt;p&gt;13) Now as you have finished designing “&lt;b&gt;&lt;u&gt;Start&lt;/u&gt;&lt;/b&gt;” Screen, let’s start designing “&lt;b&gt;&lt;u&gt;WelCome&lt;/u&gt;&lt;/b&gt;” screen. Open “&lt;b&gt;&lt;u&gt;WelCome&lt;/u&gt;&lt;/b&gt;” screen in a design mode and design the screen as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGwC1Zm_I/AAAAAAAAAQI/lqKEJjftBoI/s1600-h/clip_image016%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image016&quot; border=&quot;0&quot; alt=&quot;clip_image016&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGw6Ym1bI/AAAAAAAAAQM/3fa2Wy_KyhM/clip_image016_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;668&quot; height=&quot;451&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;14) While designing the “&lt;b&gt;&lt;u&gt;Welcome&lt;/u&gt;&lt;/b&gt;” Screen, I have used “Button-Sketch” and “Rectangle-Sketch” controls from the Style group of Asset.&lt;/p&gt;  &lt;p&gt;15) &lt;b&gt;&lt;u&gt;Important Point&lt;/u&gt;&lt;/b&gt;-&lt;b&gt;this small menu will be displayed only on the WelCome screen. What if we would like to display this Menu on all the other screens which we have designed in our previous steps?&lt;/b&gt; Yes, we can do that very easily. But How?&lt;/p&gt;  &lt;p&gt;16) By making a “&lt;b&gt;&lt;u&gt;Component Screen&lt;/u&gt;&lt;/b&gt;”. So, for that select “Rectangle-Sketch” and “&lt;b&gt;&lt;u&gt;Button-Sketch&lt;/u&gt;&lt;/b&gt;” from the objects and Timeline windows, Right Click to the selection and from the context menu click on “&lt;b&gt;&lt;u&gt;Make into Component Screen...&lt;/u&gt;&lt;/b&gt;” It will show you one dialog box asking the name of the screen. Name the component screen as “&lt;b&gt;&lt;u&gt;ResuableMenu&lt;/u&gt;&lt;/b&gt;” and click ok button.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldGxrOY8OI/AAAAAAAAAQQ/0nCxw7XDbQk/s1600-h/clip_image017%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image017&quot; border=&quot;0&quot; alt=&quot;clip_image017&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldGyVH-WLI/AAAAAAAAAQU/2VNuNWsAxp4/clip_image017_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;474&quot; height=&quot;530&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;17) Now you will see a change in “&lt;b&gt;&lt;u&gt;SketchFlow Map&lt;/u&gt;&lt;/b&gt;” window as below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldGzIb5s-I/AAAAAAAAAQY/4UeFApcZCZ4/s1600-h/clip_image019%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image019&quot; border=&quot;0&quot; alt=&quot;clip_image019&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldGz60oQyI/AAAAAAAAAQc/V5q_6OuDJRw/clip_image019_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;585&quot; height=&quot;313&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;18) &lt;/b&gt;Now as you are ready with the reusable component let’s use it on multiple screens. For that &lt;b&gt;&lt;u&gt;Drag and Drop &lt;/u&gt;&lt;/b&gt;the reusable component on the screen wherever you want to use the menu. Then open those screens and align the menu as per the design specifications.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;19) &lt;/b&gt;This is how the final “&lt;b&gt;&lt;u&gt;SketchFlow Map&lt;/u&gt;&lt;/b&gt;” Should look like.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldG0l3FI_I/AAAAAAAAAQg/OwJhOh808hk/s1600-h/clip_image021%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image021&quot; border=&quot;0&quot; alt=&quot;clip_image021&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldG1qW3CgI/AAAAAAAAAQk/MHOyEAKNy18/clip_image021_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;593&quot; height=&quot;357&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;20) &lt;/b&gt;Now as we have finished drawing our SketchFlow, let’s design the other screens as shown below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;21) &lt;/b&gt;“&lt;b&gt;&lt;u&gt;Customers&lt;/u&gt;&lt;/b&gt;” screen should look like as below- here I have used “ListBox-Sketch” control along with title and reusable component we just created.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldG2A33EmI/AAAAAAAAAQo/nqPvzyYOcDM/s1600-h/clip_image023%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image023&quot; border=&quot;0&quot; alt=&quot;clip_image023&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldG3GcCxRI/AAAAAAAAAQs/DUbQBCBbCJ4/clip_image023_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;612&quot; height=&quot;441&quot; /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;22) &lt;/b&gt;“&lt;b&gt;&lt;u&gt;Orders&lt;/u&gt;&lt;/b&gt;” screen should look like as below- here I have used “ListBox-Sketch” control along with title and reusable component we just created.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldG3mBFxJI/AAAAAAAAAQw/CLK6IXiASOY/s1600-h/clip_image025%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image025&quot; border=&quot;0&quot; alt=&quot;clip_image025&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldG4sfyaLI/AAAAAAAAAQ0/SI8Fb65r8PU/clip_image025_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;624&quot; height=&quot;452&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;23) &lt;/b&gt;“&lt;b&gt;&lt;u&gt;Products&lt;/u&gt;&lt;/b&gt;” screen should look like as below- here I have used “ListBox-Sketch” control along with title and reusable component we just created.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldG5ak2OsI/AAAAAAAAAQ4/GyAi6GiSf2c/s1600-h/clip_image027%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image027&quot; border=&quot;0&quot; alt=&quot;clip_image027&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldG6HQoYnI/AAAAAAAAAQ8/7of8naYrv0Q/clip_image027_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;633&quot; height=&quot;424&quot; /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;24) &lt;/b&gt;Now let’s use some other features of SketchFlow. For example now we will try out setting up navigation to our menu buttons to the respective pages in our application.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;25) &lt;/b&gt;To do this let’s open the “&lt;b&gt;&lt;u&gt;Reusable Menu&lt;/u&gt;&lt;/b&gt;” into design mode. Make a choice of a “&lt;b&gt;&lt;u&gt;Customer Details&lt;/u&gt;&lt;/b&gt;” button, Right Click to the Button and Go To -&amp;gt; Navigate To - &amp;gt; and make a choice of a windows to which you want to navigate as shown below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldG6-QTZAI/AAAAAAAAARA/3ryAno-7wzg/s1600-h/clip_image029%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image029&quot; border=&quot;0&quot; alt=&quot;clip_image029&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldG7_M1R7I/AAAAAAAAARE/SK33_vK0FC8/clip_image029_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;646&quot; height=&quot;481&quot; /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;26) &lt;/b&gt;Repeat the same procedure to other buttons as well. Now press “F5” and test the application by clicking the buttons and navigating to the specific pages.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;27) &lt;/b&gt;Now let’s try out “&lt;b&gt;&lt;u&gt;States in SketchFlow&lt;/u&gt;&lt;/b&gt;”. For this you will have to add one simple demo screen in to your existing project by the name “&lt;b&gt;&lt;u&gt;StatesExample&lt;/u&gt;&lt;/b&gt;” and design the screen as shown below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;28) &lt;/b&gt;To add a screen “&lt;b&gt;&lt;u&gt;StatesExample&lt;/u&gt;&lt;/b&gt;”, “&lt;b&gt;&lt;u&gt;Create a connected Screen&lt;/u&gt;&lt;/b&gt;” from our existing screen “&lt;b&gt;&lt;u&gt;WelCome&lt;/u&gt;&lt;/b&gt;”. Then add our reusable component by dragging the “&lt;b&gt;&lt;u&gt;ReusableMenu&lt;/u&gt;&lt;/b&gt;” on to our “&lt;b&gt;&lt;u&gt;StatesExample&lt;/u&gt;&lt;/b&gt;” screen. Add title to screen and draw &lt;b&gt;&lt;u&gt;“Rectangle-Sketch control&lt;/u&gt;&lt;/b&gt;”. Draw few “Button-Sketch” on top of your rectangle. So, your screen should look like below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldG8dO5BII/AAAAAAAAARI/ImwLu_hgmL8/s1600-h/clip_image031%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image031&quot; border=&quot;0&quot; alt=&quot;clip_image031&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldG9TxcxJI/AAAAAAAAARM/JhssfOwFu3w/clip_image031_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;647&quot; height=&quot;501&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;29) &lt;/b&gt;Now as your design is completed, let’s add few states to our application by defining the transition time by some duration. To do this, go to States window. You can get this window from Windows Menu - &amp;gt; States.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;30) &lt;/b&gt;Now add the State by the name “&lt;b&gt;&lt;u&gt;SampleStateGrp&lt;/u&gt;&lt;/b&gt;” and let’s specify the duration to 2 Seconds as shown below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SldG-EYUu6I/AAAAAAAAARQ/Ib29PS86kc4/s1600-h/clip_image032%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image032&quot; border=&quot;0&quot; alt=&quot;clip_image032&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldG_N1noMI/AAAAAAAAARU/FlfT5ECai9E/clip_image032_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;598&quot; height=&quot;460&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;31) &lt;/b&gt;Now add four different states by the name&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;a. &lt;/b&gt;“&lt;b&gt;&lt;u&gt;None&lt;/u&gt;&lt;/b&gt;” which will do nothing.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;b. &lt;/b&gt;“&lt;b&gt;&lt;u&gt;One&lt;/u&gt;&lt;/b&gt;” – once you add this state draw a rectangle with some colour on the “&lt;b&gt;&lt;u&gt;StateExample&lt;/u&gt;&lt;/b&gt;” window.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;c. &lt;/b&gt;Repeat the step “&lt;b&gt;&lt;u&gt;b&lt;/u&gt;&lt;/b&gt;” for state “&lt;b&gt;&lt;u&gt;Two&lt;/u&gt;&lt;/b&gt;” and “&lt;b&gt;&lt;u&gt;Three&lt;/u&gt;&lt;/b&gt;”.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;32) &lt;/b&gt;Now once you are done with this, let’s attach our states “&lt;b&gt;&lt;u&gt;One&lt;/u&gt;&lt;/b&gt;”, “&lt;b&gt;&lt;u&gt;Two&lt;/u&gt;&lt;/b&gt;” and “&lt;b&gt;&lt;u&gt;Three&lt;/u&gt;&lt;/b&gt;” to the buttons “&lt;b&gt;&lt;u&gt;One&lt;/u&gt;&lt;/b&gt;”, “&lt;b&gt;&lt;u&gt;Two&lt;/u&gt;&lt;/b&gt;”, and “&lt;b&gt;&lt;u&gt;Three&lt;/u&gt;&lt;/b&gt;” respectively by right clicking to each button and going to “&lt;b&gt;&lt;u&gt;ActiveState Menu&lt;/u&gt;&lt;/b&gt;” from the context menu and make a choice of respective state as shown below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldG_9Z4GrI/AAAAAAAAARY/xPyC-FpdHho/s1600-h/clip_image033%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image033&quot; border=&quot;0&quot; alt=&quot;clip_image033&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldHAhnkjCI/AAAAAAAAARc/acTP1QguATQ/clip_image033_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;517&quot; height=&quot;479&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;33) &lt;/b&gt;Now Hit “F5” and test your application by navigating to “&lt;b&gt;&lt;u&gt;StateExample&lt;/u&gt;&lt;/b&gt;” window and click the respective buttons and see the output.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;34) &lt;/b&gt;Now the most important point, &lt;b&gt;&lt;u&gt;Taking Feedback Online from the Customers and acting on that feedback as a Designer&lt;/u&gt;&lt;/b&gt;.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;35) &lt;/b&gt;To do this run your application by pressing “F5” and use the Feedback option from the SketchFlow Player as shown below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SldHBfwFk_I/AAAAAAAAARg/rnf3qZJznuw/s1600-h/clip_image035%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image035&quot; border=&quot;0&quot; alt=&quot;clip_image035&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SldHCaoY2QI/AAAAAAAAARk/lm9jn_DyxXk/clip_image035_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;534&quot; height=&quot;407&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;36) &lt;/b&gt;If you see there is enable Ink option available. If you click that you can make a choice of the colour and put your feedback on the design as well as you can write comments on the same.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;37) &lt;/b&gt;Once you are done writing comments and feedback on the design, now export this in form a file. So, if you click the option “&lt;b&gt;&lt;u&gt;Show Feedback option&lt;/u&gt;&lt;/b&gt;” you will find Export option. Type the Author name and then click OK button. As soon as you click the button, you will see the save dialog box which will asked you to save the feedback. Save it by the name “&lt;b&gt;&lt;u&gt;StartScreenFeedback&lt;/u&gt;&lt;/b&gt;”.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;38) &lt;/b&gt;So, now customer has given the feedback. So, let’s act as a Designer and open this feedback in Microsoft expression blend and act on the same. To do this, let’s go back to Blend.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;39) &lt;/b&gt;Now click on “&lt;b&gt;&lt;u&gt;Window&lt;/u&gt;&lt;/b&gt;” menu. And click on Feedback submenu.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;40) &lt;/b&gt;It will show you the Feedback menu at the left hand side of the window. From this window you can load the Feedback file which is send by the customer by browsing it from the given location.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;41) &lt;/b&gt;Once you load the file, you will see a Bulb icon into “&lt;b&gt;&lt;u&gt;SketchFlow Map&lt;/u&gt;&lt;/b&gt;” window over the “&lt;b&gt;&lt;u&gt;Start&lt;/u&gt;&lt;/b&gt;” screen icon as shown below-&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldHDF6fwJI/AAAAAAAAARo/_i1pi0R_J24/s1600-h/clip_image037%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image037&quot; border=&quot;0&quot; alt=&quot;clip_image037&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SldHEAxX3-I/AAAAAAAAARs/hBIF0zAEmzA/clip_image037_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;722&quot; height=&quot;418&quot; /&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;42) When you finish your SketchFlow and when your customer would like to have a Design document which they can refer, &lt;b&gt;&lt;u&gt;Microsoft Expression Blend&lt;/u&gt;&lt;/b&gt; has awesome feature. This has a direct integration with Microsoft Office Word. That feature is “&lt;b&gt;&lt;u&gt;Export To Microsoft Word&lt;/u&gt;&lt;/b&gt;”.&lt;/p&gt;  &lt;p&gt;43) To export the design documentation to Microsoft Word, go to &lt;b&gt;&lt;u&gt;File Menu -&amp;gt; Export to Microsoft Word &lt;/u&gt;&lt;/b&gt;option.&lt;/p&gt;  &lt;p&gt;44) When you click the menu, you will see the dialog box for exporting the design documentation to word. Give a name to the document and export it to a specific location as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlrH_88DjjI/AAAAAAAAARw/PrM4ps5lnRY/s1600-h/clip_image001%5B1%5D%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;clip_image001[1]&quot; border=&quot;0&quot; alt=&quot;clip_image001[1]&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlrIAa-td0I/AAAAAAAAAR0/jiH270U1FdE/clip_image001%5B1%5D_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;559&quot; height=&quot;176&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;45) Then check the document.&lt;/p&gt;  &lt;p&gt;46) Now as we are finished with “&lt;b&gt;&lt;u&gt;Exporting the Design Document to Microsoft Word&lt;/u&gt;&lt;/b&gt;”, let’s try out the next feature.&lt;/p&gt;  &lt;p&gt;47) Next feature is binding data to different “Sketch Controls” using dummy data from Microsoft Expression Blend 3.0.&lt;/p&gt;  &lt;p&gt;48) To use the dummy data from Microsoft Expression Blend, go to “&lt;b&gt;&lt;u&gt;Window Menu-&amp;gt;Data&lt;/u&gt;&lt;/b&gt;” . This window will allow you to either use Live Data or Dummy Data as per the requirement.&lt;/p&gt;  &lt;p&gt;49) Data Window has two options-&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a. Add Sample Data Source.&lt;/p&gt;    &lt;p&gt;b. Add Live Data Source.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;50) We will try out “Add Sample Data Source” as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlrIBPiC1PI/AAAAAAAAAR4/aCoyh-rf764/s1600-h/clip_image002%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlrIB3jpktI/AAAAAAAAAR8/yaSClcde4Hc/clip_image002_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;503&quot; height=&quot;188&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;51) Click on “&lt;b&gt;&lt;u&gt;Define New Sample Data&lt;/u&gt;&lt;/b&gt;” menu. Give a name as “&lt;b&gt;&lt;u&gt;CustomerDataSource&lt;/u&gt;&lt;/b&gt;”. You will see by default two properties. &lt;/p&gt;  &lt;p&gt;52) Now if you want to add multiple properties, modify the data type of the properties, edit the same data and many other features, you can do that as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SlrICbzkwdI/AAAAAAAAASA/QQ1BBI0Frtk/s1600-h/clip_image004%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;clip_image004&quot; border=&quot;0&quot; alt=&quot;clip_image004&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlrIDUOHJxI/AAAAAAAAASE/eQfhDHaEPwY/clip_image004_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;516&quot; height=&quot;260&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;53) So, try out the other options as per your requirement. For our demo, let’s create three data sources with the following specification-&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a.&lt;strong&gt;&lt;u&gt; CustomerDataSource&lt;/u&gt;&lt;/strong&gt;-&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; i. CustomerID.&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ii. CustomerName.&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b. &lt;strong&gt;&lt;u&gt;OrdersDataSource&lt;/u&gt;&lt;/strong&gt;-&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; i. OrderID.&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ii. OrderDate.&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;c. &lt;strong&gt;ProductDataSource&lt;/strong&gt;-&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; i. ProductID.&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ii. ProductName.&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; iii. ProductPicture.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;54) Once you are done with creating the data source, let’s open “&lt;b&gt;&lt;u&gt;Customer screen&lt;/u&gt;&lt;/b&gt;” and “&lt;b&gt;&lt;u&gt;Drag &amp;amp; Drop&lt;/u&gt;&lt;/b&gt;” the “Collection” from the Customer Data Source on Customer’s details List box. Repeat the same steps for other list boxes in our customer’s screen. Your should see the “&lt;b&gt;&lt;u&gt;Customer Screen&lt;/u&gt;&lt;/b&gt;” output like below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlrID6uUHpI/AAAAAAAAASI/NGo4MvYcQcg/s1600-h/clip_image006%5B1%5D%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;clip_image006[1]&quot; border=&quot;0&quot; alt=&quot;clip_image006[1]&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlrIEnhR0DI/AAAAAAAAASM/zahGboomKH8/clip_image006%5B1%5D_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;574&quot; height=&quot;401&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;55) Now open the “&lt;b&gt;&lt;u&gt;Orders Screen&lt;/u&gt;&lt;/b&gt;” and “&lt;b&gt;&lt;u&gt;Product Screen&lt;/u&gt;&lt;/b&gt;” and repeat the procedure as above by “&lt;b&gt;&lt;u&gt;Dragging &amp;amp; Dropping&lt;/u&gt;&lt;/b&gt;” the above data source collections to the respective screens. Then see the output. So, we are almost done with the data binding.&lt;/p&gt;  &lt;p&gt;56)&lt;strong&gt; &lt;/strong&gt;So, that’s it from my side for time being. There are whole bunch of features available with SketchFlow for prototyping in Silverlight 3.0 and Microsoft Expression Blend 3.0. I will be coming up with other examples soon. &lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;57)&lt;strong&gt; &lt;/strong&gt;So, what are waiting for!! Download it and try out ASAP.&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt; So, Enjoy!!!     </description><link>http://pkrd.blogspot.com/2009/07/sketchflow-in-silverlight-30-using.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_iHADNmOcn6M/SldGkoFTuVI/AAAAAAAAAPM/DtGcJf3p9xg/s72-c/clip_image001_thumb%5B2%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-2548122354272511802</guid><pubDate>Wed, 08 Jul 2009 10:49:00 +0000</pubDate><atom:updated>2009-07-08T04:41:46.047-07:00</atom:updated><title>Behaviors in Silverlight 3.0 Beta</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Hi All,&lt;/p&gt;  &lt;p&gt;While working with Silverlight 3.0 beta, I have learnt the cool feature which we were coding manually in our early days. But now in Silverlight 3.0 beta, without writing code you can apply some cool behaviors which are shown in MIX.&lt;/p&gt;  &lt;p&gt;OR&lt;/p&gt;  &lt;p&gt;If you want to build your own behaviors, you can even do the same.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;Behaviors are used for designing better interactivity with UX using Microsoft Expression Blend 3.0.&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;So, I just tried some of them and for that I have downloaded few behaviors from the following URLs-&lt;/p&gt;  &lt;p&gt;1) &lt;a href=&quot;http://gallery.expression.microsoft.com/en-us/SampleSLBehaviors&quot;&gt;http://gallery.expression.microsoft.com/en-us/SampleSLBehaviors&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2) &lt;a href=&quot;http://gallery.expression.microsoft.com/en-us/MIXBehaviorPack&quot;&gt;http://gallery.expression.microsoft.com/en-us/MIXBehaviorPack&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I tried the behaviors from the first link. Unfortunately I was unable to try out behaviors from the Second link. &lt;b&gt;&lt;u&gt;It might be my mistake&lt;/u&gt;&lt;/b&gt;.&lt;/p&gt;  &lt;p&gt;After downloading the compressed file from the first URL, you can now start applying these behaviors as described below-&lt;/p&gt;  &lt;p&gt;1) Let’s create a sample Silverlight 3.0 application by the name “&lt;b&gt;&lt;u&gt;SL3Behaviors&lt;/u&gt;&lt;/b&gt;” using Microsoft Expression Blend 3.0 and add an existing project “&lt;b&gt;&lt;u&gt;SLPreviewBehaviorsLibrary&lt;/u&gt;&lt;/b&gt;” which you have just downloaded from the first URL in to our solution as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlR5chzTc0I/AAAAAAAAANY/g66IYTJl-OU/s1600-h/clip_image002%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlR5dRr8cEI/AAAAAAAAANg/o2Sxcs2EgKs/clip_image002_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;575&quot; height=&quot;355&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2) Once you are finished with step-1, compile your project and add a reference of “&lt;b&gt;&lt;u&gt;SLPreviewBehaviorsLibrary”&lt;/u&gt;&lt;/b&gt; to the Silverlight application.&lt;/p&gt;  &lt;p&gt;3) As well as add an assembly reference named “Microsoft.Expression.Interactivity.dll” from the “&lt;b&gt;&lt;u&gt;Assembly folder&lt;/u&gt;&lt;/b&gt;” which is there in the downloaded file location.&lt;/p&gt;  &lt;p&gt;4) Now, let’s draw a 3- Rectangles on MainPage.xaml design surface as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlR5eB342UI/AAAAAAAAANk/rCF4VlBv9qQ/s1600-h/clip_image004%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image004&quot; border=&quot;0&quot; alt=&quot;clip_image004&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlR5fL2oZjI/AAAAAAAAANw/DdCMH035-SA/clip_image004_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;574&quot; height=&quot;239&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;5) Once you are done with the above design, let’s apply behaviors for all the above rectangles. For this follow the below steps-&lt;/p&gt;  &lt;p&gt;6) Choose the Asset Library and make a choice of Behaviors from the Asset Library section as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlR5foNCG-I/AAAAAAAAAMo/wP6SkNUcReQ/s1600-h/clip_image005%5B3%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image005&quot; border=&quot;0&quot; alt=&quot;clip_image005&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlR5go6rCRI/AAAAAAAAAMs/CkNHERmz4M0/clip_image005_thumb.jpg?imgmax=800&quot; width=&quot;86&quot; height=&quot;78&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlR5hSL1O2I/AAAAAAAAAN4/Ea4nw8uQWpk/s1600-h/clip_image007%5B7%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image007&quot; border=&quot;0&quot; alt=&quot;clip_image007&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlR5iJ_d0WI/AAAAAAAAAOA/QJmxZbbndU4/clip_image007_thumb%5B4%5D.jpg?imgmax=800&quot; width=&quot;579&quot; height=&quot;336&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;7) You will see couple of behaviors as shown in above figure. All these behaviors are available to you because of the library reference “&lt;b&gt;&lt;u&gt;SLPreviewBehaviorsLibrary&lt;/u&gt;&lt;/b&gt;” which we have added in our above steps.&lt;/p&gt;  &lt;p&gt;8) Now, let’s Drag &amp;amp; Drop a “&lt;b&gt;&lt;u&gt;DragBehavior&lt;/u&gt;&lt;/b&gt;” on the first Rectangle in our “&lt;b&gt;&lt;u&gt;Objects and Timeline&lt;/u&gt;&lt;/b&gt;” window as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlR5jN7Ji_I/AAAAAAAAAOI/N8suHFo1ctE/s1600-h/clip_image008%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image008&quot; border=&quot;0&quot; alt=&quot;clip_image008&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlR5kIKi9KI/AAAAAAAAAOQ/_1LR2moETCk/clip_image008_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;267&quot; height=&quot;335&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;9) Repeat the above step for all the other rectangles and Hit “F5”. Now Drag &amp;amp; Drop the Rectangles on the Screen as per your preference. &lt;font size=&quot;5&quot;&gt;WOW!! So, Easy!!!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;10) So, if you are finished with the above demo, let’s try out some other cool behaviors which are available out-of-box from the Library “&lt;b&gt;&lt;u&gt;SLPreviewBehaviorsLibrary&lt;/u&gt;&lt;/b&gt;”.&lt;/p&gt;  &lt;p&gt;11) Now let’s go back to our design view of MainPage.xaml file and click Asset library. Again to back to Behaviors tab and add “&lt;b&gt;&lt;u&gt;FullScreenAction&lt;/u&gt;&lt;/b&gt;” behavior on first rectangle. &lt;/p&gt;  &lt;p&gt;12) This behavior gives you a capability of making your screen as Full Screen. But with that it even gives a capability of on which Event you want to make full screen. In out example we will do full screen when we click LeftMouseButton on our first Rectangle.&lt;/p&gt;  &lt;p&gt;13) To do this, make a choice of “&lt;b&gt;&lt;u&gt;FullScreenAction&lt;/u&gt;&lt;/b&gt;” behavior from Objects and Timeline window and then go to Properties window. Then under Triggers section, make a choice of “LeftMouseButtonDown” event as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlR5k1yTM4I/AAAAAAAAAOU/6H6AELTS4lA/s1600-h/clip_image009%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image009&quot; border=&quot;0&quot; alt=&quot;clip_image009&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SlR5l8mgHVI/AAAAAAAAAOg/xCQwQzuz8Ik/clip_image009_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;259&quot; height=&quot;365&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;14) Once you are done, let’s Hit “F5” and test the application. When you click Left Mouse Button, you will get Full Screen!! &lt;font size=&quot;5&quot;&gt;Awesome!!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;15) Now let’s try the next behavior. That is “&lt;b&gt;&lt;u&gt;ShowMessageBoxAction&lt;/u&gt;&lt;/b&gt;”. Drag and drop this behavior from Asset library on our second rectangle. &lt;/p&gt;  &lt;p&gt;16) After dropping it on our second rectangle, go to property window and write a customized message as per your requirement as shown below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SlR5m1BoP2I/AAAAAAAAAOo/fdh1P3fPDcQ/s1600-h/clip_image010%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image010&quot; border=&quot;0&quot; alt=&quot;clip_image010&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlR5npoEJQI/AAAAAAAAAOs/PUnzciG-atk/clip_image010_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;254&quot; height=&quot;329&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;17) Then change the trigger from “&lt;b&gt;&lt;u&gt;Loaded&lt;/u&gt;&lt;/b&gt;” to “&lt;b&gt;&lt;u&gt;MouseLeftBottonDown&lt;/u&gt;&lt;/b&gt;”.&lt;/p&gt;  &lt;p&gt;18) Now Hit “F5” and test the application by clicking left mouse. You will see a Message Box!! &lt;font size=&quot;5&quot;&gt;Great!!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;19) Let’s try out next behavior. That is “&lt;b&gt;&lt;u&gt;HyperlinkAction&lt;/u&gt;&lt;/b&gt;”.&lt;/p&gt;  &lt;p&gt;20) Drag and drop “&lt;b&gt;&lt;u&gt;HyperlinkAction&lt;/u&gt;&lt;/b&gt;” behavior from Asset library on our third rectangle and go to properties window.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlR5orcevhI/AAAAAAAAAO4/IhQI8mPEtwo/s1600-h/clip_image011%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image011&quot; border=&quot;0&quot; alt=&quot;clip_image011&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlR5pQtwlJI/AAAAAAAAAO8/J-WkzqGuWMA/clip_image011_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;270&quot; height=&quot;328&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;21) From the Trigger section, Change the Event name to “&lt;b&gt;&lt;u&gt;MouseLeftButtonUp&lt;/u&gt;&lt;/b&gt;” and from Hyperlink Properties section, change URL to &lt;a href=&quot;http://www.bing.com&quot;&gt;http://www.bing.com&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;22) Once you are done, Hit “F5” and test your application. When you click third rectangle and when the mouse left button is up, you will see that you are getting redirected to the specified URL!! &lt;font size=&quot;5&quot;&gt;Nice!!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;23) Let try out next behavior. That is “&lt;b&gt;&lt;u&gt;PlayStoryBoardAction&lt;/u&gt;&lt;/b&gt;”. For this you must have a story board in your Silverlight page. So, what are we waiting for!! Let’s create a small story board which will flip the second and third rectangle by 360 degree.&lt;/p&gt;  &lt;p&gt;24) To do this, follow below steps-&lt;/p&gt;  &lt;p&gt;25) Create a story board by the name “&lt;b&gt;&lt;u&gt;FlipRectangle&lt;/u&gt;&lt;/b&gt;” and let’s make the duration 4 Seconds.&lt;/p&gt;  &lt;p&gt;26) Then change second rectangle’s “ &lt;b&gt;&lt;u&gt;X&lt;/u&gt;&lt;/b&gt; &lt;b&gt;&lt;u&gt;coordinate&lt;/u&gt;&lt;/b&gt;” “&lt;b&gt;&lt;u&gt;Projection&lt;/u&gt;&lt;/b&gt;” which is there under “&lt;b&gt;&lt;u&gt;Transform&lt;/u&gt;&lt;/b&gt;” section in the properties window to 360 degree and third rectangle’s “ &lt;b&gt;&lt;u&gt;Y coordinate&lt;/u&gt;&lt;/b&gt;” “&lt;b&gt;&lt;u&gt;Projection&lt;/u&gt;&lt;/b&gt;” to 360 degree.&lt;/p&gt;  &lt;p&gt;27) Now you are done with the story board, drag and drop the “&lt;b&gt;&lt;u&gt;PlayStoryBoardAction&lt;/u&gt;&lt;/b&gt;” on first rectangle and go back to properties window.&lt;/p&gt;  &lt;p&gt;28) From the properties section, make a choice of event name “&lt;b&gt;&lt;u&gt;MouseEnter&lt;/u&gt;&lt;/b&gt;” from Trigger section and enter a story board name which we have just created “&lt;b&gt;&lt;u&gt;FlipRectangle&lt;/u&gt;&lt;/b&gt;” in to StoryBoardName property box from “&lt;b&gt;&lt;u&gt;PlayStoryBoard&lt;/u&gt;&lt;/b&gt;”.&lt;/p&gt;  &lt;p&gt;29) Hit “F5” and test the application. When you move your mouse over first rectangle, you will see the nice animation got started!! &lt;font size=&quot;5&quot;&gt;Fantastic!!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;30) That’s it!! Now you can try out some other Behaviors which you have downloaded or you can create your own as well.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;You can try this application below-&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;iframe style=&quot;width: 640px; height: 200px&quot; src=&quot;http://silverlight.services.live.com/invoke/70559/SL3Behaviors/iframe.html&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;  &lt;p&gt;So, Enjoy!!&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/07/introduction-to-behaviors-in.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_iHADNmOcn6M/SlR5dRr8cEI/AAAAAAAAANg/o2Sxcs2EgKs/s72-c/clip_image002_thumb%5B2%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-5866403834468578317</guid><pubDate>Tue, 07 Jul 2009 13:02:00 +0000</pubDate><atom:updated>2009-07-07T06:02:49.634-07:00</atom:updated><title>Silverlight 3 DataFrom Control</title><description>&lt;p&gt;&lt;font face=&quot;cal&quot;&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Hi All,&lt;/p&gt;  &lt;p&gt;As I have create a small Lab Manual for Changes in Accessing &lt;a href=&quot;http://pkrd.blogspot.com/2009/06/silverlight-30-beta-and-wcf-services.html&quot;&gt;WCF Service in Silverlight 3.0&lt;/a&gt; , I am starting with DataForm Control introduced in Silverlight 3.0 Beta to design a Rich Data Forms for Business applications. &lt;/p&gt;  &lt;p&gt;So Let’s get started then !!&lt;/p&gt;  &lt;p&gt;1) Create a Silverlight Application with the Name “&lt;strong&gt;&lt;u&gt;SL3DataForm_CompleteDemo&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;  &lt;p&gt;2) To work with DataForm control we will have to add few references to our Silverlight Project as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;System.ComponentModel      &lt;br /&gt;System.ComponentModel.Annotation       &lt;br /&gt;System.Windows.Controls.Data.DataForm&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;3) Once you add a the references, let’s add a Class in Silverlight Project with the name “Customer.cs” and add few properties as shown bellow-&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; Customer&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Address { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; DOB { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; ContactName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; State { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Country { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4) Now we will have to make few changes in MainPage.xaml file in order to call our Customer class in XAML as well as use the DataForm control as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;1: xmlns:dataFrm=&amp;quot;clr-namespace:System.Windows.Controls;&lt;br /&gt;assembly=System.Windows.Controls.Data.DataForm&amp;quot;&lt;br /&gt;2: xmlns:local=&amp;quot;clr-namespace:SL3DataForm_CompleteDemo&amp;quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Add the above two namespaces in the UserControl Element. First namespace will allow us to use DataForm control and Second namespace will allow us to use Customer class as a resource in our MainPage.xaml.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5) Now let’s add the code in MainPage.xaml file as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SL3DataForm_CompleteDemo.MainPage&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:dataFrm&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;clr-namespace:System.Windows.Controls;&lt;br /&gt;assembly=System.Windows.Controls.Data.DataForm&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:local&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;clr-namespace:SL3DataForm_CompleteDemo&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;local:Customer&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Key&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;myCustomerDetails&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;PRAV&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Pravinkumar R. D.&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;Address&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Sinhgad Road,Pune&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;DOB&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;21/Oct/1977&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;ContactName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Pravin&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;ContactNo&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;828992892&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;City&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Pune&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;State&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Maharashtra&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;Country&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;India&amp;quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;WebSiteURL&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://pkrd.blogspot.com&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataForm&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustomerForm&amp;quot;&lt;/span&gt; &lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;CurrentItem&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{StaticResource myCustomerDetails}&amp;quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Customer Entry Form&amp;quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;CommitButtonContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Save This Customer&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In the above code, Customer class is getting utilized as Resource and DataForm control is using this resource by a property called “&lt;strong&gt;&lt;u&gt;CurrentItem&lt;/u&gt;&lt;/strong&gt;”. So, If you observe, you will see the current item of the resource is getting displayed in the DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;6) Hit F5 and see the result.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlNHW1qzi8I/AAAAAAAAAL4/fi7PyOACfUY/s1600-h/clip_image0025.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlNHX7MsWQI/AAAAAAAAAL8/Ugph2qAhyug/clip_image002_thumb2.jpg?imgmax=800&quot; width=&quot;461&quot; height=&quot;318&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;7) Click the Edit Button highlited by RED colour and make changes.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;8) Now let’s make few changes in a class called “Customer” as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;a. First import a namespace as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;using System.ComponentModel&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;b. This namespace will provide an attribute which will decide wherther the class is Bindable or not. As well if the class is Bindable, then what kind of binding it should support? It is decided by BindingDirection. By default it is OneWay-&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; i. OneWay.&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ii. TwoWay.&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;c. When you don’t want your class to be Bindable with DataForm Control, apply attribute to a class called [Bindable(false)].&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;  &lt;p&gt;d. When you want to bind your class to be Bindable with DataForm and it should be in ReadOnly format, then apply attribute to a class called [Bindable(true,BindingDirection.OneWay)].&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;  &lt;p&gt;e. You can apply the same attrtibute to the properties of your class with all above parameters as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;  &lt;p&gt;f. Apply [Bindable(false)] attribute to the property called Country in our customer class. Hit F5 and you will see that the Country is not shown in our DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;  &lt;p&gt;g. Now, Apply [Bindable(true,BindingDirection.OneWay)] attribute to the property called Country in our customer class and [Bindable(true,BindingDirection.TwoWay)] to the class. Hit F5 and you will see that the Country is not Editable in our DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;  &lt;p&gt;h. Now you got an idea how this can be used, please try out with multiple combinations.&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;9) Now as you have tried possible options, let move ahead and see some other options which are available with DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;10) One thing if you observe, when you Edit the form, you can not see the “Cancel Button”. So the question is what if I want to give Save as well as Cancel option? So, let’s give both the options.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;11) In order to get Cancel functionality, you will have to implement an Interface called, “IEditableObject”.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;IEditableObject&lt;/u&gt;&lt;/strong&gt; : This interface provides the functionality to either Save the changes or Rollback the changes to the object which is used as a Data Source.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;12) So, Let’s implement the interface called “IEditableObject” in our Customer class and write a code for the same-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now, let’s see the class code -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) I have added one property to my Customer Class by the Name “&lt;strong&gt;&lt;u&gt;Status&lt;/u&gt;&lt;/strong&gt;”. This will show the status of the record whether it is “&lt;strong&gt;&lt;u&gt;Edited&lt;/u&gt;&lt;/strong&gt;” Or “&lt;strong&gt;&lt;u&gt;Committed&lt;/u&gt;&lt;/strong&gt;” Or “&lt;strong&gt;&lt;u&gt;Roll backed&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So, the class code after implementing IEditableObject Interface will look like bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Bindable(&lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;, BindingDirection.TwoWay)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; Customer:IEditableObject&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Address { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; DOB { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; ContactName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; State { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Country { get; set; }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;br /&gt;    [Bindable(&lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;,BindingDirection.OneWay)]&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Status { get; set; }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #cc6633&quot;&gt;#region&lt;/span&gt; IEditableObject Members&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; BeginEdit()&lt;br /&gt;    {&lt;br /&gt;        Status = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer is in Edit Mode !!&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; CancelEdit()&lt;br /&gt;    {&lt;br /&gt;        Status = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Edit has been cancelled??&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; EndEdit()&lt;br /&gt;    {&lt;br /&gt;        Status = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer Record is Commited&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #cc6633&quot;&gt;#endregion&lt;/span&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;13) Now One more change which we will do is instead of binding single item we will bind collection of customers with our DataForm and will see how DataForm can handle it implicitly. For that let Write a code in MainPage.xaml.cs file as follows-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; MainPage : UserControl&lt;br /&gt;{&lt;br /&gt;    ObservableCollection&amp;lt;Customer&amp;gt; customerCollection;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; MainPage()&lt;br /&gt;    {&lt;br /&gt;        InitializeComponent();&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.Loaded += &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RoutedEventHandler(MainPage_Loaded);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; MainPage_Loaded(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;    {&lt;br /&gt;        customerCollection = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ObservableCollection&amp;lt;Customer&amp;gt;() &lt;br /&gt;        {&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;PRAV&amp;quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pravinkumar R. D.&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Sinhgad Road,Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;21/Oct/1977&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pravin&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828992892,&lt;br /&gt;                City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Maharashtra&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;India&amp;quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;http://pkrd.blogspot.com&amp;quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;YASH&amp;quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Yash P. D.&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Sinhgad Road,Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;22/Sept/2005&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Yash&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828996792,&lt;br /&gt;                City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Maharashtra&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;India&amp;quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;http://www.yash.com&amp;quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;MAND&amp;quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Mandar M.&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Karve Road,Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;21/Aug/1979&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Mandar&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828994592,&lt;br /&gt;                City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Maharashtra&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;India&amp;quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;http://www.mandar.com&amp;quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;PRIT&amp;quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Priti P. D.&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Sinhgad Road,Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;06/Mar/1980&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Priti&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828923892,&lt;br /&gt;                City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Maharashtra&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;India&amp;quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;http://priti.blogspot.com&amp;quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;AVIN&amp;quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Avinash D.&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Baner Road,Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;1/Jun/1977&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Avinash&amp;quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828992892,&lt;br /&gt;                City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pune&amp;quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Maharashtra&amp;quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;India&amp;quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;http://avi.blogspot.com&amp;quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;        };&lt;br /&gt;        LayoutRoot.DataContext = customerCollection;&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;14) Once you are done, let’s make a small change to access this customers collection in our DataForm as follows-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataForm&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustomerForm&amp;quot;&lt;/span&gt; &lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding}&amp;quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Customer Entry Form&amp;quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;CommitButtonContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Save This Customer&amp;quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color: #ff0000&quot;&gt;CancelButtonContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Cancel This Save&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In the above code, instead of CurrentItem property we are using ItemSource property to be Bindable with the DataContext which we have set to our LayoutRoot that is Grid Panel.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;15) Now as you have finished with changes, let’s Hit F5 and see the result !!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SlNHYs9ztTI/AAAAAAAAAMA/qGCbIc19864/s1600-h/OutPut24.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;OutPut2&quot; border=&quot;0&quot; alt=&quot;OutPut2&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SlNHZ-2JegI/AAAAAAAAAME/rlEMdoLhBzQ/OutPut2_thumb2.jpg?imgmax=800&quot; width=&quot;476&quot; height=&quot;354&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you see the output, &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) DataForm will automatically provide a navigation facility for collection of records.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;ii) As you Edit the Record, “&lt;strong&gt;&lt;u&gt;BeginEdit&lt;/u&gt;&lt;/strong&gt;” method will get fired where we have written our logic for notification.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iii) And now you can see the “&lt;strong&gt;&lt;u&gt;Cancel&lt;/u&gt;&lt;/strong&gt;” Button which will allow us to Rollback the changes.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;16) Now Let’s see other features. Let’s open Customer class and give some nice titles to our Fields as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To do this first import a namespace -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 12px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.ComponentModel.DataAnnotations;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To give titles to our fields we are going to use an attribute called “&lt;strong&gt;&lt;u&gt;Display&lt;/u&gt;&lt;/strong&gt;”You can pass multiple parameters to this attributes. We will try to use few of them here-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Display(Name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer ID&amp;quot;&lt;/span&gt;,&lt;br /&gt;Description=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer ID&amp;quot;&lt;/span&gt;,Order=1)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer Name&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Name&amp;quot;&lt;/span&gt;, Order = 2)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer Address&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Address&amp;quot;&lt;/span&gt;, Order = 3)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Address { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer City&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer City&amp;quot;&lt;/span&gt;, Order = 4)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Date of Birth&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is Customer ID&amp;quot;&lt;/span&gt;, Order = 7)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; DOB { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Contact Name&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Contact Person&amp;quot;&lt;/span&gt;, Order = 5)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; ContactName { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Contact No.&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Contact No.&amp;quot;&lt;/span&gt;, Order = 6)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;State&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer State&amp;quot;&lt;/span&gt;, Order = 8)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; State { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Country&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Country&amp;quot;&lt;/span&gt;, Order = 9)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Country { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer WebSite&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Web Site&amp;quot;&lt;/span&gt;, Order = 10)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Record Status&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Record Status&amp;quot;&lt;/span&gt;, Order = 11)]&lt;br /&gt;[Bindable(&lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;,BindingDirection.OneWay)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Status { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;17) Attributes which we are using are-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) Name – To display title of the field.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;ii) Description – Details description about the field.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iii) Order – In which order the Form should display fields.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;18) Hit F5 and see the result-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SlNHanegIDI/AAAAAAAAAMI/TBAdEi5bwlQ/s1600-h/OutPut34.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;OutPut3&quot; border=&quot;0&quot; alt=&quot;OutPut3&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlNHbkiJhkI/AAAAAAAAAMM/ls-j3hIhPH8/OutPut3_thumb2.jpg?imgmax=800&quot; width=&quot;466&quot; height=&quot;284&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;19) Now let’s Validate our field data by different ways provided by different attributes like-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) RegularExpression – Can be used to validate formats for string, integer, date, time and many more&amp;#160; Let’s apply this Validator to our property called WebSiteURL as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer WebSite&amp;quot;&lt;/span&gt;,&lt;br /&gt; Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Web Site&amp;quot;&lt;/span&gt;, Order = 10)]&lt;br /&gt;[RegularExpression(&lt;span style=&quot;color: #006080&quot;&gt;@&amp;quot;http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;amp;=]*)?&amp;quot;&lt;/span&gt;,&lt;br /&gt;ErrorMessage=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;URL of the site is not valide?&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;ii) Range – Can be used to specify range between. For example, Age should be between 1 to 99 or Salary should be between 3000-10000. Let’s apply this Validator to our ContactNo (Just to show example!!) as shown bellow-&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Contact No.&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Contact No.&amp;quot;&lt;/span&gt;, Order = 6)]&lt;br /&gt;[Range(1,50000,ErrorMessage=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;No. should not be more than 50000??&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iii) Required – To make fields Mandatory.&amp;#160; Let’s apply this Validator to multiple fields as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Display(Name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer ID&amp;quot;&lt;/span&gt;,Description=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer ID&amp;quot;&lt;/span&gt;,Order=1)]&lt;br /&gt;[Required(ErrorMessage=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;CustomerID is a required field&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;[Required(ErrorMessage = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer Name is a required field&amp;quot;&lt;/span&gt;)]&lt;br /&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer Name&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Name&amp;quot;&lt;/span&gt;, Order = 2)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iv) StringLength- Can be applied to string for checking the length.&amp;#160; Let’s apply this validator to CustomerID property as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Display(Name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer ID&amp;quot;&lt;/span&gt;,Description=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer ID&amp;quot;&lt;/span&gt;,Order=1)]&lt;br /&gt;[Required(ErrorMessage=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;CustomerID is a required field&amp;quot;&lt;/span&gt;)]&lt;br /&gt;[StringLength(4,ErrorMessage=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer ID should &lt;br /&gt;not exceed more than 4 charaters&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;v) Enum Datatype-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;vi) CustomValidator – You can apply this to a complete class or a specific field. Let’s apply this validator to City property as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;First write a Customer Validator class as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 106px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; CustomerValidation&lt;br /&gt;{&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;bool&lt;/span&gt; ValidateCity(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City)&lt;br /&gt;   {&lt;br /&gt;       &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;Then Apply this to City Property&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer City&amp;quot;&lt;/span&gt;,&lt;br /&gt; Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer City&amp;quot;&lt;/span&gt;, Order = 4)]&lt;br /&gt;[CustomValidation(&lt;span style=&quot;color: #0000ff&quot;&gt;typeof&lt;/span&gt;(CustomerValidation), &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;ValidateCity&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;OR you can do it Normal way also. Look at the bellow code-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[Display(Name = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Contact No.&amp;quot;&lt;/span&gt;, &lt;br /&gt;Description = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;This is for Customer Contact No.&amp;quot;&lt;/span&gt;, Order = 6)]&lt;br /&gt;[Range(1, 5000, ErrorMessage = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Telephone No. should not cross 10 digits??&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo &lt;br /&gt;{&lt;br /&gt;   get &lt;br /&gt;   {&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; _ContactNo; &lt;br /&gt;   }&lt;br /&gt;   set &lt;br /&gt;   {&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt; &amp;lt;= 0)&lt;br /&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ArgumentException(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Contact No. &lt;br /&gt;must be greater than Zero&amp;quot;&lt;/span&gt;);&lt;br /&gt;         _ContactNo = &lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt;; &lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;DataForm will capture the above exception as well.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;20) Hit F5 !! and test the result !!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlNHcWNK7BI/AAAAAAAAAMQ/K1ZphSy4xdU/s1600-h/OutPut45.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;OutPut4&quot; border=&quot;0&quot; alt=&quot;OutPut4&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SlNHdoaBbiI/AAAAAAAAAMU/CDaSPLLUZ6I/OutPut4_thumb3.jpg?imgmax=800&quot; width=&quot;402&quot; height=&quot;414&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;21) Now as we are done with Validation, Let’s do few Customization with DataForm. The code is as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Vertical&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataForm&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustomerForm&amp;quot;&lt;/span&gt; &lt;br /&gt;                       &lt;span style=&quot;color: #ff0000&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding}&amp;quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Pink&amp;quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #ff0000&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Customer Entry Form&amp;quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #ff0000&quot;&gt;CommitButtonContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Save This Customer&amp;quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #ff0000&quot;&gt;CancelButtonContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Cancel This Save&amp;quot;&lt;/span&gt; &lt;br /&gt;                       &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #ff0000&quot;&gt;AutoGenerateFields&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;False&amp;quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataForm.Fields&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Customer ID&amp;quot;&lt;/span&gt; &lt;br /&gt;                                          &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomerID}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Customer Name&amp;quot;&lt;/span&gt; &lt;br /&gt;                                          &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomerName}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Customer Address&amp;quot;&lt;/span&gt; &lt;br /&gt;                                          &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding Address}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTemplateField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Birth Date&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTemplateField.DisplayTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding DOB}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTemplateField.DisplayTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTemplateField.EditTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding DOB}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTemplateField.EditTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTemplateField&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Contact Name&amp;quot;&lt;/span&gt; &lt;br /&gt;                                      &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding ContactName}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Contact No.&amp;quot;&lt;/span&gt; &lt;br /&gt;                                      &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding ContactNo}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;City&amp;quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding City,Mode=TwoWay}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;State&amp;quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding State,Mode=TwoWay}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Country&amp;quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding Country,Mode=TwoWay}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;WebSite URL&amp;quot;&lt;/span&gt; &lt;br /&gt;                                      &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding WebSiteURL}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Notification&amp;quot;&lt;/span&gt; &lt;br /&gt;                                      &lt;span style=&quot;color: #ff0000&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding Status}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;                &lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataForm.Fields&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;dataFrm:DataForm&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;22) Too Many things !! So, Let’s start looking at each thing one by one-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1) If you want, you can customize the complete DataForm Template as per you specifications. For that DataForm will give you couple of controls. You can even change/Customize the Edit, Insert templates as well.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So, to generate your own fields you have to set DataForm property called “&lt;strong&gt;&lt;u&gt;AutoGenerateFields=False&lt;/u&gt;&lt;/strong&gt;”. Once you do that, DataForm will not not show the default template with default fields.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now, you can use bellow listed fields for designing your own template or you can use standard Silverlight controls as a “&lt;strong&gt;&lt;u&gt;Data template&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1) &lt;strong&gt;&lt;u&gt;DataFormTextField&lt;/u&gt;&lt;/strong&gt;- This field will render a TextBox under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;2) &lt;strong&gt;&lt;u&gt;DataFormCheckBoxField&lt;/u&gt;&lt;/strong&gt; – This field will render a CheckBox under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;3) &lt;strong&gt;&lt;u&gt;DataFormComboBoxField&lt;/u&gt;&lt;/strong&gt; – This field will render a ComboBox under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4) &lt;strong&gt;&lt;u&gt;DataFormDateField&lt;/u&gt;&lt;/strong&gt; – This field will render a calendar under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5) &lt;strong&gt;&lt;u&gt;DataFormTemplateField&lt;/u&gt;&lt;/strong&gt; – This field will allow you to design your template.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;There are many more features available in DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I will try to capture these features and will come back with other set of labs-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Till the time Enjoy!!&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/07/silverlight-3-datafrom-control.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_iHADNmOcn6M/SlNHX7MsWQI/AAAAAAAAAL8/Ugph2qAhyug/s72-c/clip_image002_thumb2.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-1333000849438511961</guid><pubDate>Fri, 05 Jun 2009 11:58:00 +0000</pubDate><atom:updated>2009-06-06T04:41:19.262-07:00</atom:updated><title>Silverlight 3 DataForm Control</title><description>&lt;p&gt;&lt;span style=&quot;font-family:cal;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Hi All,&lt;/p&gt;&lt;p&gt;As I have create a small Lab Manual for Changes in Accessing &lt;a href=&quot;http://pkrd.blogspot.com/2009/06/silverlight-30-beta-and-wcf-services.html&quot;&gt;WCF Service in Silverlight 3.0&lt;/a&gt; , I am starting with DataForm Control introduced in Silverlight 3.0 Beta to design a Rich Data Forms for Business applications. &lt;/p&gt;&lt;p&gt;So Let’s get started then !!&lt;/p&gt;&lt;p&gt;1) Create a Silverlight Application with the Name “&lt;strong&gt;&lt;u&gt;SL3DataForm_CompleteDemo&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;&lt;p&gt;2) To work with DataForm control we will have to add few references to our Silverlight Project as shown bellow-&lt;/p&gt;&lt;p&gt;&lt;strong&gt;System.ComponentModel&lt;br /&gt;System.ComponentModel.Annotation&lt;br /&gt;System.Windows.Controls.Data.DataForm&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;3) Once you add a the references, let’s add a Class in Silverlight Project with the name “Customer.cs” and add few properties as shown bellow-&lt;/p&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;class&lt;/span&gt; Customer&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Address { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; DOB { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; ContactName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; State { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Country { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4) Now we will have to make few changes in MainPage.xaml file in order to call our Customer class in XAML as well as use the DataForm control as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;1: xmlns:dataFrm=&quot;clr-namespace:System.Windows.Controls;&lt;br /&gt;assembly=System.Windows.Controls.Data.DataForm&quot;&lt;br /&gt;2: xmlns:local=&quot;clr-namespace:SL3DataForm_CompleteDemo&quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Add the above two namespaces in the UserControl Element. First namespace will allow us to use DataForm control and Second namespace will allow us to use Customer class as a resource in our MainPage.xaml.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5) Now let’s add the code in MainPage.xaml file as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;SL3DataForm_CompleteDemo.MainPage&quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#ff0000;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#ff0000;&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#ff0000;&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;400&quot;&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;400&quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#ff0000;&quot;&gt;xmlns:dataFrm&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;clr-namespace:System.Windows.Controls;&lt;br /&gt;assembly=System.Windows.Controls.Data.DataForm&quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#ff0000;&quot;&gt;xmlns:local&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;clr-namespace:SL3DataForm_CompleteDemo&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;local:Customer&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;x:Key&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;myCustomerDetails&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;PRAV&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;CustomerName&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Pravinkumar R. D.&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;Address&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Sinhgad Road,Pune&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;DOB&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;21/Oct/1977&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;ContactName&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Pravin&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;ContactNo&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;828992892&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;City&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Pune&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;State&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Maharashtra&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;Country&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;India&quot;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color:#ff0000;&quot;&gt;WebSiteURL&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;http://pkrd.blogspot.com&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;LayoutRoot&quot;&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataForm&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;CustomerForm&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;CurrentItem&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{StaticResource myCustomerDetails}&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Black&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Customer Entry Form&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;CommitButtonContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Save This Customer&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In the above code, Customer class is getting utilized as Resource and DataForm control is using this resource by a property called “&lt;strong&gt;&lt;u&gt;CurrentItem&lt;/u&gt;&lt;/strong&gt;”. So, If you observe, you will see the current item of the resource is getting displayed in the DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;6) Hit F5 and see the result.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SikISB15T0I/AAAAAAAAALU/wGPef8Gv0mk/s1600-h/clip_image0025.jpg&quot;&gt;&lt;img title=&quot;clip_image002&quot; style=&quot;BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px&quot; height=&quot;318&quot; alt=&quot;clip_image002&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SikITDYPZ3I/AAAAAAAAALc/RjLtwtRxFcc/clip_image002_thumb2.jpg?imgmax=800&quot; width=&quot;461&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;7) Click the Edit Button highlited by RED colour and make changes.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;8) Now let’s make few changes in a class called “Customer” as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;p&gt;a. First import a namespace as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;p&gt;using System.ComponentModel&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;p&gt;b. This namespace will provide an attribute which will decide wherther the class is Bindable or not. As well if the class is Bindable, then what kind of binding it should support? It is decided by BindingDirection. By default it is OneWay-&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;p&gt;          i. OneWay.&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;p&gt;         ii. TwoWay.&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;p&gt;c. When you don’t want your class to be Bindable with DataForm Control, apply attribute to a class called [Bindable(false)].&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;d. When you want to bind your class to be Bindable with DataForm and it should be in ReadOnly format, then apply attribute to a class called [Bindable(true,BindingDirection.OneWay)].&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;e. You can apply the same attrtibute to the properties of your class with all above parameters as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;f. Apply [Bindable(false)] attribute to the property called Country in our customer class. Hit F5 and you will see that the Country is not shown in our DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;g. Now, Apply [Bindable(true,BindingDirection.OneWay)] attribute to the property called Country in our customer class and [Bindable(true,BindingDirection.TwoWay)] to the class. Hit F5 and you will see that the Country is not Editable in our DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;h. Now you got an idea how this can be used, please try out with multiple combinations.&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;9) Now as you have tried possible options, let move ahead and see some other options which are available with DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;10) One thing if you observe, when you Edit the form, you can not see the “Cancel Button”. So the question is what if I want to give Save as well as Cancel option? So, let’s give both the options.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;11) In order to get Cancel functionality, you will have to implement an Interface called, “IEditableObject”.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;IEditableObject&lt;/u&gt;&lt;/strong&gt; : This interface provides the functionality to either Save the changes or Rollback the changes to the object which is used as a Data Source.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;12) So, Let’s implement the interface called “IEditableObject” in our Customer class and write a code for the same-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now, let’s see the class code -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) I have added one property to my Customer Class by the Name “&lt;strong&gt;&lt;u&gt;Status&lt;/u&gt;&lt;/strong&gt;”. This will show the status of the record whether it is “&lt;strong&gt;&lt;u&gt;Edited&lt;/u&gt;&lt;/strong&gt;” Or “&lt;strong&gt;&lt;u&gt;Committed&lt;/u&gt;&lt;/strong&gt;” Or “&lt;strong&gt;&lt;u&gt;Roll backed&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So, the class code after implementing IEditableObject Interface will look like bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;[Bindable(&lt;span style=&quot;color:#0000ff;&quot;&gt;true&lt;/span&gt;, BindingDirection.TwoWay)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;class&lt;/span&gt; Customer:IEditableObject&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Address { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; DOB { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; ContactName { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; State { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Country { get; set; }&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;br /&gt;    [Bindable(&lt;span style=&quot;color:#0000ff;&quot;&gt;true&lt;/span&gt;,BindingDirection.OneWay)]&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Status { get; set; }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#cc6633;&quot;&gt;#region&lt;/span&gt; IEditableObject Members&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; BeginEdit()&lt;br /&gt;    {&lt;br /&gt;        Status = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer is in Edit Mode !!&quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; CancelEdit()&lt;br /&gt;    {&lt;br /&gt;        Status = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Edit has been cancelled??&quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; EndEdit()&lt;br /&gt;    {&lt;br /&gt;        Status = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer Record is Commited&quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#cc6633;&quot;&gt;#endregion&lt;/span&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;13) Now One more change which we will do is instead of binding single item we will bind collection of customers with our DataForm and will see how DataForm can handle it implicitly. For that let Write a code in MainPage.xaml.cs file as follows-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;class&lt;/span&gt; MainPage : UserControl&lt;br /&gt;{&lt;br /&gt;    ObservableCollection&amp;lt;Customer&amp;gt; customerCollection;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; MainPage()&lt;br /&gt;    {&lt;br /&gt;        InitializeComponent();&lt;br /&gt;        &lt;span style=&quot;color:#0000ff;&quot;&gt;this&lt;/span&gt;.Loaded += &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; RoutedEventHandler(MainPage_Loaded);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; MainPage_Loaded(&lt;span style=&quot;color:#0000ff;&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;    {&lt;br /&gt;        customerCollection = &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; ObservableCollection&amp;lt;Customer&amp;gt;()&lt;br /&gt;        {&lt;br /&gt;            &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;PRAV&quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Pravinkumar R. D.&quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Sinhgad Road,Pune&quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;21/Oct/1977&quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Pravin&quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828992892,&lt;br /&gt;                City=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Pune&quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Maharashtra&quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;India&quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;http://pkrd.blogspot.com&quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;YASH&quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Yash P. D.&quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Sinhgad Road,Pune&quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;22/Sept/2005&quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Yash&quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828996792,&lt;br /&gt;                City=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Pune&quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Maharashtra&quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;India&quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;http://www.yash.com&quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;MAND&quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Mandar M.&quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Karve Road,Pune&quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;21/Aug/1979&quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Mandar&quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828994592,&lt;br /&gt;                City=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Pune&quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Maharashtra&quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;India&quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;http://www.mandar.com&quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;PRIT&quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Priti P. D.&quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Sinhgad Road,Pune&quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;06/Mar/1980&quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Priti&quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828923892,&lt;br /&gt;                City=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Pune&quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Maharashtra&quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;India&quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;http://priti.blogspot.com&quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;            &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; Customer()&lt;br /&gt;            {&lt;br /&gt;                CustomerID=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;AVIN&quot;&lt;/span&gt;,&lt;br /&gt;                CustomerName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Avinash D.&quot;&lt;/span&gt;,&lt;br /&gt;                Address=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Baner Road,Pune&quot;&lt;/span&gt;,&lt;br /&gt;                DOB=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;1/Jun/1977&quot;&lt;/span&gt;,&lt;br /&gt;                ContactName=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Avinash&quot;&lt;/span&gt;,&lt;br /&gt;                ContactNo=828992892,&lt;br /&gt;                City=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Pune&quot;&lt;/span&gt;,&lt;br /&gt;                State=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Maharashtra&quot;&lt;/span&gt;,&lt;br /&gt;                Country=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;India&quot;&lt;/span&gt;,&lt;br /&gt;                WebSiteURL=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;http://avi.blogspot.com&quot;&lt;/span&gt;&lt;br /&gt;            },&lt;br /&gt;        };&lt;br /&gt;        LayoutRoot.DataContext = customerCollection;&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;14) Once you are done, let’s make a small change to access this customers collection in our DataForm as follows-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataForm&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;CustomerForm&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding}&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Black&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Customer Entry Form&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;CommitButtonContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Save This Customer&quot;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot;color:#ff0000;&quot;&gt;CancelButtonContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Cancel This Save&quot;&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In the above code, instead of CurrentItem property we are using ItemSource property to be Bindable with the DataContext which we have set to our LayoutRoot that is Grid Panel.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;15) Now as you have finished with changes, let’s Hit F5 and see the result !!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SikIUJO1VsI/AAAAAAAAALg/lJETQJqk7QA/s1600-h/OutPut24.jpg&quot;&gt;&lt;img title=&quot;OutPut2&quot; style=&quot;BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px&quot; height=&quot;354&quot; alt=&quot;OutPut2&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SikIU8FgH8I/AAAAAAAAALk/5r91VaTpKQQ/OutPut2_thumb2.jpg?imgmax=800&quot; width=&quot;476&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you see the output, &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) DataForm will automatically provide a navigation facility for collection of records.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;ii) As you Edit the Record, “&lt;strong&gt;&lt;u&gt;BeginEdit&lt;/u&gt;&lt;/strong&gt;” method will get fired where we have written our logic for notification.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iii) And now you can see the “&lt;strong&gt;&lt;u&gt;Cancel&lt;/u&gt;&lt;/strong&gt;” Button which will allow us to Rollback the changes.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;16) Now Let’s see other features. Let’s open Customer class and give some nice titles to our Fields as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To do this first import a namespace -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; HEIGHT: 12px; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;using&lt;/span&gt; System.ComponentModel.DataAnnotations;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To give titles to our fields we are going to use an attribute called “&lt;strong&gt;&lt;u&gt;Display&lt;/u&gt;&lt;/strong&gt;”You can pass multiple parameters to this attributes. We will try to use few of them here-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;[Display(Name=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer ID&quot;&lt;/span&gt;,&lt;br /&gt;Description=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer ID&quot;&lt;/span&gt;,Order=1)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer Name&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Name&quot;&lt;/span&gt;, Order = 2)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer Address&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Address&quot;&lt;/span&gt;, Order = 3)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Address { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer City&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer City&quot;&lt;/span&gt;, Order = 4)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Date of Birth&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is Customer ID&quot;&lt;/span&gt;, Order = 7)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; DOB { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Contact Name&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Contact Person&quot;&lt;/span&gt;, Order = 5)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; ContactName { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Contact No.&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Contact No.&quot;&lt;/span&gt;, Order = 6)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;State&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer State&quot;&lt;/span&gt;, Order = 8)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; State { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Country&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Country&quot;&lt;/span&gt;, Order = 9)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Country { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer WebSite&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Web Site&quot;&lt;/span&gt;, Order = 10)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Record Status&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Record Status&quot;&lt;/span&gt;, Order = 11)]&lt;br /&gt;[Bindable(&lt;span style=&quot;color:#0000ff;&quot;&gt;true&lt;/span&gt;,BindingDirection.OneWay)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; Status { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;17) Attributes which we are using are-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) Name – To display title of the field.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;ii) Description – Details description about the field.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iii) Order – In which order the Form should display fields.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;18) Hit F5 and see the result-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SikIVl9jNQI/AAAAAAAAALo/hcypnEgkESQ/s1600-h/OutPut34.jpg&quot;&gt;&lt;img title=&quot;OutPut3&quot; style=&quot;BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px&quot; height=&quot;284&quot; alt=&quot;OutPut3&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SikIWe2GfeI/AAAAAAAAALs/IOk_zFvdxp0/OutPut3_thumb2.jpg?imgmax=800&quot; width=&quot;466&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;19) Now let’s Validate our field data by different ways provided by different attributes like-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) RegularExpression – Can be used to validate formats for string, integer, date, time and many more  Let’s apply this Validator to our property called WebSiteURL as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer WebSite&quot;&lt;/span&gt;,&lt;br /&gt; Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Web Site&quot;&lt;/span&gt;, Order = 10)]&lt;br /&gt;[RegularExpression(&lt;span style=&quot;color:#006080;&quot;&gt;@&quot;http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;amp;=]*)?&quot;&lt;/span&gt;,&lt;br /&gt;ErrorMessage=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;URL of the site is not valide?&quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; WebSiteURL { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;ii) Range – Can be used to specify range between. For example, Age should be between 1 to 99 or Salary should be between 3000-10000. Let’s apply this Validator to our ContactNo (Just to show example!!) as shown bellow-&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Contact No.&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Contact No.&quot;&lt;/span&gt;, Order = 6)]&lt;br /&gt;[Range(1,50000,ErrorMessage=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;No. should not be more than 50000??&quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;int&lt;/span&gt; ContactNo { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iii) Required – To make fields Mandatory.  Let’s apply this Validator to multiple fields as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;[Display(Name=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer ID&quot;&lt;/span&gt;,Description=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer ID&quot;&lt;/span&gt;,Order=1)]&lt;br /&gt;[Required(ErrorMessage=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;CustomerID is a required field&quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;[Required(ErrorMessage = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer Name is a required field&quot;&lt;/span&gt;)]&lt;br /&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer Name&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Name&quot;&lt;/span&gt;, Order = 2)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;iv) StringLength- Can be applied to string for checking the length.  Let’s apply this validator to CustomerID property as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;[Display(Name=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer ID&quot;&lt;/span&gt;,Description=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer ID&quot;&lt;/span&gt;,Order=1)]&lt;br /&gt;[Required(ErrorMessage=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;CustomerID is a required field&quot;&lt;/span&gt;)]&lt;br /&gt;[StringLength(4,ErrorMessage=&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer ID should&lt;br /&gt;not exceed more than 4 charaters&quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;v) Enum Datatype-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;vi) CustomValidator – You can apply this to a complete class or a specific field. Let’s apply this validator to City property as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;First write a Customer Validator class as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; HEIGHT: 106px; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;class&lt;/span&gt; CustomerValidation&lt;br /&gt;{&lt;br /&gt;   &lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;bool&lt;/span&gt; ValidateCity(&lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; City)&lt;br /&gt;   {&lt;br /&gt;       &lt;span style=&quot;color:#0000ff;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then Apply this to City Property&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: leftfont-family:&#39;Courier New&#39;, courier, monospace;font-size:8pt;color:#f4f4f4;&quot;   &gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Customer City&quot;&lt;/span&gt;,&lt;br /&gt; Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer City&quot;&lt;/span&gt;, Order = 4)]&lt;br /&gt;[CustomValidation(&lt;span style=&quot;color:#0000ff;&quot;&gt;typeof&lt;/span&gt;(CustomerValidation), &lt;span style=&quot;color:#006080;&quot;&gt;&quot;ValidateCity&quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;OR you can do it Normal way also. Look at the bellow code-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BACKGROUND-: left&quot; color=&quot;#f4f4f4&quot; size=&quot;8pt&quot; face=&quot;&#39;Courier New&#39;, courier, monospace&quot;&gt;[Display(Name = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Contact No.&quot;&lt;/span&gt;,&lt;br /&gt;Description = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;This is for Customer Contact No.&quot;&lt;/span&gt;, Order = 6)]&lt;br /&gt;[Range(1, 5000, ErrorMessage = &lt;span style=&quot;color:#006080;&quot;&gt;&quot;Telephone No. should not cross 10 digits??&quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;int&lt;/span&gt; ContactNo&lt;br /&gt;{&lt;br /&gt;   get&lt;br /&gt;   {&lt;br /&gt;      &lt;span style=&quot;color:#0000ff;&quot;&gt;return&lt;/span&gt; _ContactNo;&lt;br /&gt;   }&lt;br /&gt;   set&lt;br /&gt;   {&lt;br /&gt;      &lt;span style=&quot;color:#0000ff;&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color:#0000ff;&quot;&gt;value&lt;/span&gt; &amp;lt;= 0)&lt;br /&gt;         &lt;span style=&quot;color:#0000ff;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; ArgumentException(&lt;span style=&quot;color:#006080;&quot;&gt;&quot;Contact No.&lt;br /&gt;must be greater than Zero&quot;&lt;/span&gt;);&lt;br /&gt;         _ContactNo = &lt;span style=&quot;color:#0000ff;&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;DataForm will capture the above exception as well.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;20) Hit F5 !! and test the result !!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SikIXCcx30I/AAAAAAAAALw/Tklr9rrHhGo/s1600-h/OutPut45.jpg&quot;&gt;&lt;img title=&quot;OutPut4&quot; style=&quot;BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px&quot; height=&quot;414&quot; alt=&quot;OutPut4&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SikIYK2YT5I/AAAAAAAAAL0/8LKOBZoDvCI/OutPut4_thumb3.jpg?imgmax=800&quot; width=&quot;402&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;21) Now as we are done with Validation, Let’s do few Customization with DataForm. The code is as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;pre id=&quot;codeSnippet&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 8pt; PADDING-BOTTOM: 0px; MARGIN: 0em; OVERFLOW: visible; WIDTH: 100%; COLOR: black; DIRECTION: ltr; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; FONT-FAMILY: &#39;Courier New&#39;, courier, monospace; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: #f4f4f4; TEXT-ALIGN: left; BORDER-BOTTOM-STYLE: none&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;LayoutRoot&quot;&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Vertical&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;         &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataForm&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;CustomerForm&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#ff0000;&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding}&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#ff0000;&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Pink&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#ff0000;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Customer Entry Form&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#ff0000;&quot;&gt;CommitButtonContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Save This Customer&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#ff0000;&quot;&gt;CancelButtonContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Cancel This Save&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#ff0000;&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Black&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#ff0000;&quot;&gt;AutoGenerateFields&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;False&quot;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataForm.Fields&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Customer ID&quot;&lt;/span&gt;&lt;br /&gt;                                          &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding CustomerID}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Customer Name&quot;&lt;/span&gt;&lt;br /&gt;                                          &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding CustomerName}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Customer Address&quot;&lt;/span&gt;&lt;br /&gt;                                          &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding Address}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTemplateField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Birth Date&quot;&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTemplateField.DisplayTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding DOB}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTemplateField.DisplayTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTemplateField.EditTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                       &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding DOB}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTemplateField.EditTemplate&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTemplateField&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Contact Name&quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding ContactName}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Contact No.&quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding ContactNo}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;City&quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding City,Mode=TwoWay}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;State&quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding State,Mode=TwoWay}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Country&quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding Country,Mode=TwoWay}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;WebSite URL&quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding WebSiteURL}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataFormTextField&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;FieldLabelContent&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;Notification&quot;&lt;/span&gt;&lt;br /&gt;                                      &lt;span style=&quot;color:#ff0000;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;=&quot;{Binding Status}&quot;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;/&amp;gt;&lt;/span&gt;               &lt;br /&gt;                &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataForm.Fields&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dataFrm:DataForm&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;22) Too Many things !! So, Let’s start looking at each thing one by one-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1) If you want, you can customize the complete DataForm Template as per you specifications. For that DataForm will give you couple of controls. You can even change/Customize the Edit, Insert templates as well.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So, to generate your own fields you have to set DataForm property called “&lt;strong&gt;&lt;u&gt;AutoGenerateFields=False&lt;/u&gt;&lt;/strong&gt;”. Once you do that, DataForm will not not show the default template with default fields.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now, you can use bellow listed fields for designing your own template or you can use standard Silverlight controls as a “&lt;strong&gt;&lt;u&gt;Data template&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1) &lt;strong&gt;&lt;u&gt;DataFormTextField&lt;/u&gt;&lt;/strong&gt;- This field will render a TextBox under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;2) &lt;strong&gt;&lt;u&gt;DataFormCheckBoxField&lt;/u&gt;&lt;/strong&gt; – This field will render a CheckBox under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;3) &lt;strong&gt;&lt;u&gt;DataFormComboBoxField&lt;/u&gt;&lt;/strong&gt; – This field will render a ComboBox under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4) &lt;strong&gt;&lt;u&gt;DataFormDateField&lt;/u&gt;&lt;/strong&gt; – This field will render a calendar under DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5) &lt;strong&gt;&lt;u&gt;DataFormTemplateField&lt;/u&gt;&lt;/strong&gt; – This field will allow you to design your template.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;There are many more features available in DataForm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I will try to capture these features and will come back with other set of labs-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Till the time Enjoy!!&lt;/p&gt;</description><link>http://pkrd.blogspot.com/2009/06/silverlight-3-datafrom-control.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_iHADNmOcn6M/SikITDYPZ3I/AAAAAAAAALc/RjLtwtRxFcc/s72-c/clip_image002_thumb2.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-4809678373464872720</guid><pubDate>Tue, 02 Jun 2009 13:29:00 +0000</pubDate><atom:updated>2009-06-02T06:29:18.896-07:00</atom:updated><title>Silverlight 3.0 Beta and WCF Services</title><description>&lt;p&gt;Hi All,&lt;/p&gt;  &lt;p&gt;I was just looking at changes from Silverlight 2.0 to Silverlight 3.0 for accessing WCF services. Fantastic !!&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;First change is introduction of “Binary XML” message transport over http and Second change is introduction of new tool called as “&lt;u&gt;SLsvcUtil.exe&lt;/u&gt;” for generating Client Proxy for WCF Service.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Advantages of using Binary XML –:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;1) You will see size of the message reduced up to some extend.&lt;/p&gt;  &lt;p&gt;2) It is optimized for Speed.&lt;/p&gt;  &lt;p&gt;3) Can be effectively used for Binary Large objects.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Important Note – It is not optimized for small messages. It is even not optimized for Strings.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;So, I thought let’s prepare a simple Lab manual which will help people to see, Visualize and implement WCF Services in Silverlight 3.0.&lt;/p&gt;  &lt;p&gt;Pre-requisites for this Lab are as follows-&lt;/p&gt;  &lt;p&gt;1) Silverlight 3.0 must be installed on your machine-&lt;/p&gt;  &lt;p&gt;2) For designing optionally you can have Microsoft Expression Blend 3.0 Preview-&lt;/p&gt;  &lt;p&gt;3) Visual Studio 2008 or Visual Studio 2010 Beta-&lt;/p&gt;  &lt;p&gt;So, let’s get started by -&lt;/p&gt;  &lt;p&gt;1) Create Silverlight project by the name “&lt;strong&gt;&lt;u&gt;InvokingWCFInSL3&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;  &lt;p&gt;2) Now, let’s add a DAL (Data Access Layer) which will allow us to access the data from the Database of your choice. For doing the same I am using my own database which is configured on SQLExpress instance on my machine.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Here I am using ADO.NET Entity Data Model as a DAL (Data Access Layer).&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;3) First add a new item in the web application with the name “&lt;strong&gt;CustomersEDM.edmx&lt;/strong&gt;” and follow the wizard to configure the database table as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SiUo8gDWiTI/AAAAAAAAAKc/zIK2Vr4FlVw/s1600-h/EDMPicture%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;EDMPicture&quot; border=&quot;0&quot; alt=&quot;EDMPicture&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SiUo9TQnhVI/AAAAAAAAAKg/inSsEDRxFQ8/EDMPicture_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;462&quot; height=&quot;244&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;4) Now, let’s add a WCF Service in the web application with the name “&lt;strong&gt;&lt;u&gt;FindCustomer.svc&lt;/u&gt;&lt;/strong&gt;”.Y&lt;strong&gt;ou can do the same by adding a “&lt;u&gt;Silverlight- enabled WCF Service&lt;/u&gt;” which will automatically do the necessary settings for you in “Web.Config” file which we will see within few minutes.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;5) Once you are done, let’s write the Service logic to access the data through the ADO.NET Entity data model by using LINQ as shown bellow-&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[OperationContract]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; IEnumerable&amp;lt;CustomerInformation&amp;gt; GetCustomersByCity(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City)&lt;br /&gt;{&lt;br /&gt;   CustomersEntities ed=&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; CustomersEntities();&lt;br /&gt;   var query = from c &lt;span style=&quot;color: #0000ff&quot;&gt;in&lt;/span&gt; ed.CustomerInformation&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;where&lt;/span&gt; c.City.Contains(City)&lt;br /&gt;                    select c;&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; query;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;6) Now as you finished writing WCF Service, let’s browse it by right click to “&lt;strong&gt;&lt;u&gt;FindCustomer.svc&lt;/u&gt;&lt;/strong&gt;” and view it in Browser.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;7) Now, Let’s see one more new feature of Silverlight 3.0 Beta. In Silverlight 3.0 SDK, you will find a tool called “&lt;strong&gt;&lt;u&gt;SLsvcutil.exe&lt;/u&gt;&lt;/strong&gt;” for creating a client proxy. This is a similar tool which people use for generating Client proxy in WCF called “&lt;strong&gt;&lt;u&gt;Svcutil.exe&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here is a path - &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;u&gt;C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Tools&lt;/u&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;8) So, How to use this tool? Well let’s see- you can see all the options available with SLSvcutil.exe tool by “SLsvcutil.exe /?” command.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;For convenience I am making a copy of the tool under C:\Try folder.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;9) Open “&lt;strong&gt;&lt;u&gt;Visual Studio 2008 command prompt&lt;/u&gt;&lt;/strong&gt;” and change the directory to C:\Try- as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SiUo94mCj-I/AAAAAAAAAKk/jnRvxf4LdW0/s1600-h/commandprompt%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;commandprompt&quot; border=&quot;0&quot; alt=&quot;commandprompt&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SiUo-zO1xEI/AAAAAAAAAKo/XFilkWdeY2I/commandprompt_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;454&quot; height=&quot;82&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;10) Now copy the URL of WCF Service with WSDL and write bellow command on command prompt-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/SiUo_VP8DxI/AAAAAAAAAKs/vaZqCAUYlbE/s1600-h/GenerateProxy%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;GenerateProxy&quot; border=&quot;0&quot; alt=&quot;GenerateProxy&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SiUpAB6vxbI/AAAAAAAAAKw/YNpdvoSRtpw/GenerateProxy_thumb%5B4%5D.jpg?imgmax=800&quot; width=&quot;464&quot; height=&quot;73&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So, after pressing enter key, you will see there are two files generated in C:\Try folder.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) CustomerProxy.cs.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;ii) ServiceReferences.ClientConfig.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you do not give config file name, default config file name is “&lt;strong&gt;&lt;u&gt;ServiceReerences.ClientConfig&lt;/u&gt;&lt;/strong&gt;”. I am using default name.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;11) Now as you have generated a proxy and configuration file, let’s see our Web application’s Web.Config file. You will see the major change their itself.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SiUpAxIEbaI/AAAAAAAAAK0/aHwuFAILqDM/s1600-h/WebConfigPict%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;WebConfigPict&quot; border=&quot;0&quot; alt=&quot;WebConfigPict&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SiUpBrj60oI/AAAAAAAAAK4/VHBAAFwmfOc/WebConfigPict_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;474&quot; height=&quot;325&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;12) So, here is a custom binding which will allow your SOAP Message to be transported as Binary over http. WOW !!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;13) Now let’s copy both the files (CustomerProxy.cs and ServiceReferences.ClientConfig) from C:\Try folder and paste it inside Silverlight application and start writing the code for accessing the proxy as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;14) For showing data in a nice way I have made a small design in “&lt;strong&gt;&lt;u&gt;MainPage.xaml&lt;/u&gt;&lt;/strong&gt;” as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;WCFInSL3_WhatIsNew_PartI.MainPage&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Vertical&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtCityLabel&amp;quot;&lt;/span&gt; &lt;br /&gt;                           &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Enter City -&amp;quot;&lt;/span&gt; &lt;br /&gt;                           &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;12&amp;quot;&lt;/span&gt; &lt;br /&gt;                           &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Yellow&amp;quot;&lt;/span&gt; &lt;br /&gt;                           &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtSearchCustomerByCity&amp;quot;&lt;/span&gt; &lt;br /&gt;                         &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;200&amp;quot;&lt;/span&gt; &lt;br /&gt;                         &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnSearch&amp;quot;&lt;/span&gt; &lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Search Customer&amp;quot;&lt;/span&gt; &lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt; &lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;&lt;/span&gt; &lt;br /&gt;                        &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnSearch_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;listCustomers&amp;quot;&lt;/span&gt; &lt;br /&gt;                     &lt;span style=&quot;color: #ff0000&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding}&amp;quot;&lt;/span&gt; &lt;br /&gt;                     &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox.ItemTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;CornerRadius&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10,10,10,10&amp;quot;&lt;/span&gt; &lt;br /&gt;                                    &lt;span style=&quot;color: #ff0000&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;5&amp;quot;&lt;/span&gt; &lt;br /&gt;                                    &lt;span style=&quot;color: #ff0000&quot;&gt;BorderBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Yellow&amp;quot;&lt;/span&gt; &lt;br /&gt;                                    &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Green&amp;quot;&lt;/span&gt; &lt;br /&gt;                                    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;380&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Left&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomerID}&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Yellow&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;12&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomerName}&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;&lt;/span&gt;  &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Yellow&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;12&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding Address}&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Yellow&amp;quot;&lt;/span&gt; &lt;br /&gt;                                           &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;12&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox.ItemTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;15) Now let write a code inside “MainPage.xaml.cs” file on button click event which will fetch the data from database for a given city as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; MainPage : UserControl&lt;br /&gt;   {&lt;br /&gt;       FindCustomerClient proxy = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; FindCustomerClient();&lt;br /&gt;       &lt;br /&gt;       &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; MainPage()&lt;br /&gt;       {&lt;br /&gt;           InitializeComponent();&lt;br /&gt;           proxy.GetCustomersByCityCompleted += &lt;br /&gt;               &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; EventHandler&amp;lt;GetCustomersByCityCompletedEventArgs&amp;gt;&lt;br /&gt;                   (proxy_GetCustomersByCityCompleted);&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;       &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; proxy_GetCustomersByCityCompleted(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, &lt;br /&gt;           GetCustomersByCityCompletedEventArgs e)&lt;br /&gt;       {&lt;br /&gt;           listCustomers.DataContext = e.Result.ToList();&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;       &lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnSearch_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;       {&lt;br /&gt;           proxy.GetCustomersByCityAsync(txtSearchCustomerByCity.Text);&lt;br /&gt;       }&lt;br /&gt;   }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;16) So, you are almost done!! Hit F5 and test your Silverlight application. It should show you the result as bellow -(in my case)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/SiUpCdWGZ1I/AAAAAAAAAK8/WEmRu33CcdI/s1600-h/output%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;output&quot; border=&quot;0&quot; alt=&quot;output&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SiUpC9oThnI/AAAAAAAAALA/1fEN_d5Ypz4/output_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;482&quot; height=&quot;218&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;And also see the Binary data which is coming from WCF service as bellow. To show this binary data, I am using “&lt;strong&gt;&lt;u&gt;Nikhil Kothari’s Web Development Helper Tool&lt;/u&gt;&lt;/strong&gt;”. You may use different tool as per your convenience.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SiUpEDEkA3I/AAAAAAAAALE/Cbt_-7e49Uk/s1600-h/BinaryResponse%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;BinaryResponse&quot; border=&quot;0&quot; alt=&quot;BinaryResponse&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/SiUpE4VLAuI/AAAAAAAAALI/knIkAAN2DiE/BinaryResponse_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;491&quot; height=&quot;319&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;17) Now as you have seen, SOAP Binary Message transportation over http, I am just making few changes. Which will show you difference between Silverlight 2.0 and Silverlight 3.0 Beta-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;18) Just to demonstrate here, I am doing direct changes in WCF Service’s config file and client side config file.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i) Open Web.Config file from Web application under which out WCF Service is hosted and do following change as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;bindings&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;customBinding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;binding&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;customBinding0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #008000&quot;&gt;&amp;lt;!--&amp;lt;binaryMessageEncoding/&amp;gt;--&amp;gt;&lt;/span&gt;&lt;br /&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;textMessageEncoding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;httpTransport&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;customBinding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;bindings&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;ii) Now Open, ServiceReferences.ClientConfig file from Silverlight project and do the following changes as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;bindings&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;customBinding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;binding&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustomBinding_FindCustomer&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #008000&quot;&gt;&amp;lt;!--&amp;lt;binaryMessageEncoding /&amp;gt;--&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;textMessageEncoding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;httpTransport&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;maxReceivedMessageSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;2147483647&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;maxBufferSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;2147483647&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;customBinding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;bindings&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;19) So, Now we are using &amp;lt;textMessageEncoding/&amp;gt; at both the end Server as well as Client, let’s see how the message is transferred to client-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SiUpF359hRI/AAAAAAAAALM/kkLuFb9zg-k/s1600-h/ServiceResponseinText%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ServiceResponseinText&quot; border=&quot;0&quot; alt=&quot;ServiceResponseinText&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/SiUpGrI2D8I/AAAAAAAAALQ/pfH3_kJ2dss/ServiceResponseinText_thumb%5B3%5D.jpg?imgmax=800&quot; width=&quot;485&quot; height=&quot;311&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;20) So, That’s All !! Enjoy !!&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/06/silverlight-30-beta-and-wcf-services.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_iHADNmOcn6M/SiUo9TQnhVI/AAAAAAAAAKg/inSsEDRxFQ8/s72-c/EDMPicture_thumb%5B2%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-4897663322529663770</guid><pubDate>Mon, 25 May 2009 06:53:00 +0000</pubDate><atom:updated>2009-05-24T23:55:19.100-07:00</atom:updated><title>Working with File Dialog box in Silverlight 2.0.</title><description>&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;In this lab we will try to see &lt;strong&gt;&lt;u&gt;OpenFileDialog&lt;/u&gt;&lt;/strong&gt; class for Silverlight 2 application. &lt;strong&gt;&lt;u&gt;OpenFileDialog&lt;/u&gt;&lt;/strong&gt; class will all you to choose the files from Client. It can be used to upload the contents from client to server or you can do many things.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;OpenFileDialog&lt;/u&gt;&lt;/strong&gt; class gives you a very restricted access to client machine. So, it is secured.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So let’s start by&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) Creating a Silverlight 2.0 project by name “SLFileOpenDialogApplication” by using Visual Studio 2008.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Once you finished doing the same, open the same project by Expression Blend 2.0 and start designing the screen as shown bellow-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShpAfVYOYhI/AAAAAAAAAKU/elX6qaKntJ0/s1600-h/OpenFileDailogScreen5.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;OpenFileDailogScreen&quot; border=&quot;0&quot; alt=&quot;OpenFileDailogScreen&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShpAgk9ocZI/AAAAAAAAAKY/hHQy2zUZk8A/OpenFileDailogScreen_thumb3.jpg?imgmax=800&quot; width=&quot;500&quot; height=&quot;377&quot; /&gt;&lt;/a&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Write the Code as shown bellow-&lt;/font&gt;&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SLFileOpenDialogApplication.Page&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;640&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;520&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Canvas&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;395&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;590&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BorderBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FFD1D448&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;5,5,5,5&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;CornerRadius&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10,10,10,10&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;MediaElement&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;385&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;580&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;25&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;35&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Stretch&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;MediaPlayer&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Bear.wmv&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;False&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;119&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;434&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Play&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnPlay&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnPlay_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Pause&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;173&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;434&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnPause&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnPause_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stop&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;477&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;434&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnStop&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnStop_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Slider&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;29&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;179.25&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;233.75&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;434&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ControlVolume&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Maximum&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ValueChanged&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ControlVolume_ValueChanged&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;18&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;89.5&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;273.75&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;460&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Control Volume&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;TextWrapping&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FFFFFFFF&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Mute&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnMute&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;422&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;434&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnMute_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Choose Your Video to Play !!&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnChooseFile&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;173&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;480&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontWeight&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;FontFamily&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Portable User Interface&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontStyle&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Normal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Canvas&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;font size=&quot;3&quot;&gt;4) Now, let’s start writing the code for Choosing “&lt;strong&gt;&lt;u&gt;.WMV&lt;/u&gt;&lt;/strong&gt;” file on the click event of the button “&lt;strong&gt;&lt;u&gt;Choose Your Video to Play !!&lt;/u&gt;&lt;/strong&gt;”. Before that let import the namespace &lt;strong&gt;System.IO&lt;/strong&gt;;&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;FileInfo fileInfo;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnChooseFile_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;   OpenFileDialog openDialog = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; OpenFileDialog()&lt;br /&gt;   {&lt;br /&gt;      Filter = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Media Wmv|*.wmv&amp;quot;&lt;/span&gt;,&lt;br /&gt;      Multiselect = &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;,&lt;br /&gt;   };&lt;br /&gt;&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (openDialog.ShowDialog() == &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;)&lt;br /&gt;   {&lt;br /&gt;      fileInfo = openDialog.File;&lt;br /&gt;      MediaPlayer.SetSource(fileInfo.OpenRead());&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;The above code will allow us to choose .WMV file and set it as a source for our media element.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;5) Once you finished with this, let’s write the code for our “&lt;strong&gt;&lt;u&gt;Play&lt;/u&gt;&lt;/strong&gt;”, “Pause”, “Mute”, “Stop” buttons. and as well as write the code to control the volume as shown bellow-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnPlay_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    MediaPlayer.Play();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnPause_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    MediaPlayer.Pause();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnStop_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    MediaPlayer.Stop();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; ControlVolume_ValueChanged(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedPropertyChangedEventArgs&amp;lt;&lt;span style=&quot;color: #0000ff&quot;&gt;double&lt;/span&gt;&amp;gt; e)&lt;br /&gt;{&lt;br /&gt;    MediaPlayer.Volume = ControlVolume.Value;&lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;bool&lt;/span&gt; flag = &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnMute_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (flag == &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;)&lt;br /&gt;    {&lt;br /&gt;        MediaPlayer.IsMuted = &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;        flag = &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt;&lt;br /&gt;    {&lt;br /&gt;        MediaPlayer.IsMuted = &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;        flag = &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;6) That’s All !! Now Press F5 and see your own favourite videos on Silverlight applications !!&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;Now as you have completed writing the fifteenth Silverlight Lab, let’s have a closer look on sixteenth lab “&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Working with HttpAsyncUpload and HttpAsyncDownload.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;”&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/working-with-file-dialog-box-in.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_iHADNmOcn6M/ShpAgk9ocZI/AAAAAAAAAKY/hHQy2zUZk8A/s72-c/OpenFileDailogScreen_thumb3.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-2132876471510433607</guid><pubDate>Mon, 25 May 2009 06:48:00 +0000</pubDate><atom:updated>2009-05-24T23:48:21.169-07:00</atom:updated><title>Working with Background Worker in Silverlight 2.0.</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;In this lab, we we try to work with Background worker class which plays a very important role for Silverlight application-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Background Worker class&lt;/u&gt;&lt;/strong&gt;-: Any time consuming operation when you run on your User Interface, it makes your user interface non-responsive. For example, database transactions like bulk upload or insert Or any download from server side. In such cases if you want your User Interface Responsive along with long running process, &lt;strong&gt;&lt;u&gt;BackgroundWorker&lt;/u&gt;&lt;/strong&gt; class will be very much helpful.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So let’s start by &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) creating a new Silverlight application with the name “&lt;strong&gt;&lt;u&gt;SLBackgroundWorker&lt;/u&gt;&lt;/strong&gt;” by using Visual studio 2008.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Once you create the project, let’s open the same project by using Microsoft Expression Blend and start designing digital watch as shown bellow-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Sho_L01y6TI/AAAAAAAAAKM/AU-o7BmgnMQ/s1600-h/DigitalWatchDesign4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;DigitalWatchDesign&quot; border=&quot;0&quot; alt=&quot;DigitalWatchDesign&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/Sho_M8mOLiI/AAAAAAAAAKQ/5o_bCgXUf3k/DigitalWatchDesign_thumb2.jpg?imgmax=800&quot; width=&quot;508&quot; height=&quot;308&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Once you finish the design, Expression Blend will generate the code as shown bellow-&lt;/font&gt;&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SLBackgroundWorkerApplication.Page&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Canvas&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Start Clock !!&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnStartColoring&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;220&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;89&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnStartColoring_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stop Clock!!&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnStopColoring&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;220&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;209&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnStopColoring_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;63&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;384&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;8&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;18&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10,10,10,10&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border.BorderBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;EndPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;StartPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF595854&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FFDEC62A&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border.BorderBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;56&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;108.969&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;19&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;16&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00H&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;TextWrapping&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FFFFFFFF&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Center&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Top&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtHrs&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;56&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;101.938&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;127&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;16&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00M&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;TextWrapping&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FFFFFFFF&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Center&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Top&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtMins&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;56&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;105&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;237&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;16&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00S&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;TextWrapping&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Wrap&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FFFFFFFF&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;48&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Center&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Top&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtSecs&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Canvas&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Now open the same project by Visual studio 2008 and write button click event for both of our buttons “Start Clock!!” and “Stop Clock!!”.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;4) Now switch back to Page.xaml.cs file and import the namespace as shown bellow-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.ComponentModel;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; System.Threading;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;5) Now write bellow code in Page.xaml.cs on “Start Clock!!” Button click event as shown bellow-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;BackgroundWorker bgWorker;&lt;br /&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnStartColoring_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt; {&lt;br /&gt;     bgWorker = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; BackgroundWorker();&lt;br /&gt;     bgWorker.DoWork += &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; DoWorkEventHandler(bgWorker_DoWork);&lt;br /&gt;     bgWorker.ProgressChanged += &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ProgressChangedEventHandler&lt;br /&gt;(bgWorker_ProgressChanged);&lt;br /&gt;     bgWorker.RunWorkerCompleted += &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RunWorkerCompletedEventHandler&lt;br /&gt;(bgWorker_RunWorkerCompleted);&lt;br /&gt;     bgWorker.RunWorkerAsync();&lt;br /&gt;     bgWorker.WorkerReportsProgress = &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;     bgWorker.WorkerSupportsCancellation = &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;br /&gt; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;Background worker class will provide couple of methods, events and properties-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;i) DoWork Event-: This event will get fired as soon as you give a call to &lt;strong&gt;&lt;u&gt;RunWorkerAsync()&lt;/u&gt;&lt;/strong&gt; method. This event will give a call to a method where you can start you time consuming work.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;ii) When you start your work, it is a good practice to check whether the work which you have started is cancelled or not. To Support asynchronous cancellation, you will have to make &lt;strong&gt;&lt;u&gt;WorkerSupportsCancellation&lt;/u&gt;&lt;/strong&gt; property to &lt;strong&gt;&lt;u&gt;True&lt;/u&gt;&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;iii) ProgressChanges event will let you know the progress updates. For that you must set property called WorkerReportsProgress to True. It will get fired when you give a call to method “”.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;6) Let’s write a code for DoWork Method as shown bellow-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; bgWorker_DoWork(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, DoWorkEventArgs e)&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt; = 0;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;while&lt;/span&gt; ((&lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt; &amp;lt; 60) &amp;amp;&amp;amp; (!bgWorker.CancellationPending))&lt;br /&gt;    {&lt;br /&gt;    Thread.Sleep(1000);&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt;++;&lt;br /&gt;    bgWorker.ReportProgress(&lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt;);&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (bgWorker.CancellationPending)&lt;br /&gt;    {&lt;br /&gt;    e.Cancel = &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt; == 60)&lt;br /&gt;    {&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt; = 0;&lt;br /&gt;    bgWorker_DoWork(sender, e);&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;7) Now, let’s declare few variables to show Seconds, Minutes and Hours as shown bellow and write a code for ProgressChanged Method-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; min = 0;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; hr = 0;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; sec = 0;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; bgWorker_ProgressChanged(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, ProgressChangedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    sec = e.ProgressPercentage;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (sec &amp;lt;= 9)&lt;br /&gt;    {&lt;br /&gt;    txtSecs.Text = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt; + e.ProgressPercentage.ToString() +&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;S&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt;&lt;br /&gt;    {&lt;br /&gt;    txtSecs.Text = e.ProgressPercentage.ToString() + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;S&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;            &lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (e.ProgressPercentage == 60)&lt;br /&gt;    {&lt;br /&gt;    min++;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (min &amp;lt;= 9)&lt;br /&gt;    {&lt;br /&gt;    txtMins.Text =&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt;+ min.ToString() + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;M&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; &lt;br /&gt;    {&lt;br /&gt;    txtMins.Text = min.ToString() + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;M&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;    sec = 0;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (min == 60)&lt;br /&gt;    {&lt;br /&gt;    hr++;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (min &amp;lt;= 9)&lt;br /&gt;    {&lt;br /&gt;    txtMins.Text = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt; + min.ToString() + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;H&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt;&lt;br /&gt;    {&lt;br /&gt;    txtMins.Text = min.ToString() + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;H&amp;quot;&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;    min = 0;&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;8) Now the last step, let’s write a code to cancel the Background worker thread on “Stop Clock!!” button click event as shown bellow-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnStopColoring_Click&lt;br /&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    bgWorker.CancelAsync();&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;9) That’s All !! Hit F5 and see your Digital clock you can start as well as Stop as per your requirement !!&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;Now as you have completed writing the fourteenth Silverlight Lab, let’s have a closer look on fifteenth lab “&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Working with File Dialog box in Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;”&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/working-with-background-worker-in.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/Sho_M8mOLiI/AAAAAAAAAKQ/5o_bCgXUf3k/s72-c/DigitalWatchDesign_thumb2.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-8986639462061871095</guid><pubDate>Mon, 25 May 2009 06:38:00 +0000</pubDate><atom:updated>2009-05-24T23:39:30.808-07:00</atom:updated><title>Using Custom Types in XAML of Silverlight 2.0</title><description>&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;In this lab, we we try to use “&lt;strong&gt;&lt;u&gt;Custom Types&lt;/u&gt;&lt;/strong&gt;” (Classes) in Silverlight XAML (Extensible Application Markup Language).&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So, Let’s start by-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) Creating Silverlight application called “&lt;strong&gt;&lt;u&gt;SLUsingCustomTypesINXAML&lt;/u&gt;&lt;/strong&gt;” using Visual Studio 2008.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Now, once you have created Silverlight application let’s add two Custom Types (&lt;strong&gt;&lt;u&gt;Classes&lt;/u&gt;&lt;/strong&gt;) as shown bellow-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;i) &lt;strong&gt;&lt;u&gt;Customers.cs&lt;/u&gt;&lt;/strong&gt;-:&lt;/font&gt;&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;p&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; Customers&lt;br /&gt;{&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; ObservableCollection&amp;lt;Customers&amp;gt;  CustomersList{ get; set; }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; Customers()&lt;br /&gt;   {&lt;br /&gt;       CustomersList = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ObservableCollection&amp;lt;Customers&amp;gt;();&lt;br /&gt;   }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;}&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;ii) &lt;strong&gt;&lt;u&gt;Orders.cs&lt;/u&gt;&lt;/strong&gt;-:&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; Orders&lt;br /&gt;{&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; ObservableCollection&amp;lt;Orders&amp;gt; MyOrdersList { get; set; }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; Orders()&lt;br /&gt;   {&lt;br /&gt;       MyOrdersList = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ObservableCollection&amp;lt;Orders&amp;gt;();&lt;br /&gt;   }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; OrderID { get; set; }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID { get; set; }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; OrderDate { get; set; }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; RequiredDateTime { get; set; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;Imp. Note-: You must import &lt;strong&gt;&lt;u&gt;System.Collections.ObjectModel &lt;/u&gt;&lt;/strong&gt;namespace to get &lt;strong&gt;&lt;u&gt;ObservableCollection&lt;/u&gt;&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;ObservableCollection&lt;/u&gt;&lt;/strong&gt; – This collection provides dynamic notifications you when the Item is add, removed or when the collection list is refreshed.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Now to access our custom types in Silverlight XAML code, you will have to import the name to &amp;lt;UserControl/&amp;gt; as shown bellow-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;xmlns:localTypes=&amp;quot;clr-namespace:SLUsingCustomTypesINXAML&amp;quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Sho8yHzMHNI/AAAAAAAAAKE/XmANNOgDudo/s1600-h/ImpNamespacetoXAML4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;ImpNamespacetoXAML&quot; border=&quot;0&quot; alt=&quot;ImpNamespacetoXAML&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Sho8zti0S5I/AAAAAAAAAKI/X9cj8YGWtzo/ImpNamespacetoXAML_thumb2.jpg?imgmax=800&quot; width=&quot;523&quot; height=&quot;163&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;4) Now open Page.xaml and write down the bellow code-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SLUsingCustomTypesINXAML.Page&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:localTypes&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;clr-namespace:SLUsingCustomTypesINXAML&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Customers&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Key&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;myCustomers&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Customers.CustomersList&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Customers&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;PRAV&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;CustomerName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Pravinkumar R. D.&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Customers&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;YASH&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;CustomerName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Yash P. D.&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Customers&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;PARI&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;CustomerName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Priti P. D.&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Customers.CustomersList&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Customers&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Orders&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Key&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;myCustomerOrders&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Orders.MyOrdersList&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Orders&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;PRAV&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;OrderID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ORD1290&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;OrderDate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;21/Oct/2009&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;RequiredDateTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;21/Oct/2009&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Orders&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;YASH&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;OrderID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ORD1290&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;OrderDate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;22/Sept/2009&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;RequiredDateTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;22/Sept/2009&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Orders&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;CustomerID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;PARI&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;OrderID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ORD1290&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;OrderDate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;06/Mar/2009&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;RequiredDateTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;22/Sept/2009&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Orders.MyOrdersList&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;localTypes:Orders&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl.Resources&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ColumnDefinition&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;*&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ColumnDefinition&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;*&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;DataContext&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{StaticResource myCustomers}&amp;quot;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomersList}&amp;quot;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1170&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Grid&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Row&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustList&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox.ItemTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Left&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomerID}&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtCustomerID&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomerName}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;---------------------------------------&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox.ItemTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;DataContext&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{StaticResource myCustomerOrders}&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding MyOrdersList}&amp;quot;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1170&amp;quot;&lt;/span&gt;   &lt;span style=&quot;color: #ff0000&quot;&gt;Grid&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Column&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox.ItemTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Left&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding OrderID}&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustomerID&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding OrderDate}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding RequiredDateTime}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;---------------------------------------&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox.ItemTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ListBox&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;font size=&quot;3&quot;&gt;5) &lt;/font&gt;&lt;font size=&quot;3&quot;&gt;That’s all !! Hit F5 by &lt;/font&gt;&lt;font size=&quot;3&quot;&gt;making “SLUsingCustomTypesINXAMLTestPage.aspx” as a start up page and see your Custom Types output is working.&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;Now as you have completed writing the thirteenth Silverlight Lab, let’s have a closer look on fourteenth lab “&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Working with Background Worker in Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;”&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/using-custom-types-in-xaml-of.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_iHADNmOcn6M/Sho8zti0S5I/AAAAAAAAAKI/X9cj8YGWtzo/s72-c/ImpNamespacetoXAML_thumb2.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-8363621080666195975</guid><pubDate>Mon, 25 May 2009 05:55:00 +0000</pubDate><atom:updated>2009-05-24T23:32:30.346-07:00</atom:updated><title>Creating and using Splash Screen in Silverlight 2.0.</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;In this lab, we will try out a “&lt;strong&gt;&lt;u&gt;Splash Screen&lt;/u&gt;&lt;/strong&gt;” screen. So, &lt;u&gt;What is Splash Screen?&lt;/u&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;u&gt;Splash Screen&lt;/u&gt; is a XAML (&lt;strong&gt;&lt;u&gt;Extensible Application Markup Language&lt;/u&gt;&lt;/strong&gt;) code, which will get splashed before downloading the .XAP file at client’s browser. Sometimes,if the .XAP file is bulky in size or end user’s bandwidth is poor, then downloading of .XAP always takes time. Till the time you can keep user entertained in various ways- For Example, You can play small animation or you can show download progress or show company Logo and many more !!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;So, Let’s get started -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) Create a Silverlight Project with the name SLSplashScreenApplication.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Once your project is created, let’s add a .MP3 or .WMV file into Silverlight project.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Then, bundle the same media file with .XAP file. You may have other contents also in your .XAP file as shown bellow - But for this Lab to make our .XAP file bulky in size, we are taking a media file.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Note-: Try to keep your .XAP file as small as you can.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/Shoyygy6ucI/AAAAAAAAAJ0/sWivltByQDg/s1600-h/MP3InXAP4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;MP3InXAP&quot; border=&quot;0&quot; alt=&quot;MP3InXAP&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShoyzVNA7OI/AAAAAAAAAJ4/c8KcSpQiUn4/MP3InXAP_thumb2.jpg?imgmax=800&quot; width=&quot;253&quot; height=&quot;287&quot; /&gt;&lt;/a&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;4) I have taken a Sample Video “Taare Zameen Par.mp3” which I am deploying with .XAP file. ( &lt;u&gt;I have renamed the file to Taare.mp3&amp;quot;&lt;/u&gt; )&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;5) Now, add a &lt;strong&gt;&lt;u&gt;MediaElement&lt;/u&gt;&lt;/strong&gt; into &lt;strong&gt;&lt;u&gt;Page.xaml&lt;/u&gt;&lt;/strong&gt; and then set Source property of the same to our MP3 song and make its &lt;strong&gt;&lt;u&gt;AutoPlay&lt;/u&gt;&lt;/strong&gt; property “T&lt;strong&gt;&lt;u&gt;rue&lt;/u&gt;&lt;/strong&gt;” as shown bellow-&lt;/font&gt;&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SLSplashScreenApplication.Page&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;MediaElement&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Bear&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;True&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;600&amp;quot;&lt;/span&gt;  &lt;span style=&quot;color: #ff0000&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;/Taare.mp3&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;font size=&quot;3&quot;&gt;6) Now add to add a SplashScreen int our application, right click to &lt;strong&gt;&lt;u&gt;Web Site&lt;/u&gt;&lt;/strong&gt; and add a XMLFile with name and extension as shown bellow-&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Shoy0OVLIaI/AAAAAAAAAJ8/pRebxm2GxRU/s1600-h/AddSplashScreen5.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;AddSplashScreen&quot; border=&quot;0&quot; alt=&quot;AddSplashScreen&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/Shoy1HdS_aI/AAAAAAAAAKA/qzlQ1pmgbMs/AddSplashScreen_thumb3.jpg?imgmax=800&quot; width=&quot;487&quot; height=&quot;321&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;7) Now add small &lt;strong&gt;&lt;u&gt;Animation&lt;/u&gt;&lt;/strong&gt; and a &lt;strong&gt;&lt;u&gt;TextBlock&lt;/u&gt;&lt;/strong&gt; in our &lt;u&gt;&lt;strong&gt;SplashScreen.xaml&lt;/strong&gt;&lt;/u&gt; file as shown in bellow code-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid.Resources&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Storyboard&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Ani&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;RepeatBehavior&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Forever&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BeginTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e2&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetProperty&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.5000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.7000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.8000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.9000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:01&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BeginTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e4&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetProperty&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.5000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.7000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.8000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.9000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:01&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BeginTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e5&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetProperty&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.5000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.7000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.8000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.9000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:01&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BeginTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e6&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetProperty&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.5000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.7000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.8000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.9000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:01&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BeginTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e3&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetProperty&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.5000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.7000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.8000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.9000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:01&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;BeginTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetName&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Storyboard&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;TargetProperty&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;(UIElement.Opacity)&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.5000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.7000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.8000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:00.9000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;SplineDoubleKeyFrame&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;KeyTime&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;00:00:01&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DoubleAnimationUsingKeyFrames&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Storyboard&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid.Resources&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid.Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;RadialGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF2A2779&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.50400000810623169&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;RadialGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid.Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt;  &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Gold&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Show Progress !!&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtProgress&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Left&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;132,203,0,209&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;79&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;EndPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;StartPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF88C81E&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Left&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;226,212,0,218&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;64&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e2&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;EndPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;StartPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF88C81E&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Right&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0,225,220,225&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;44&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e4&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;EndPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;StartPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF88C81E&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Right&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0,230,170,230&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;34&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e5&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;EndPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;StartPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF88C81E&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Right&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0,234,126,235&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;28&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e6&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;EndPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;StartPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF88C81E&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;305,220,278,217&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Stretch&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;e3&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;EndPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;StartPoint&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF000000&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;GradientStop&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF88C81E&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Offset&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;LinearGradientBrush&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse.Fill&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;font size=&quot;3&quot;&gt;7) The code looks lengthy, but it is playing a small animation. It is Showing a big Ellipse and small,&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;font size=&quot;3&quot;&gt; small, small by hiding the previous one.&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;9) Now open “SLSplashScreenApplicationTestPage.html” Page and &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;following two parameters into &lt;strong&gt;&lt;u&gt;&amp;lt;object/&amp;gt;&lt;/u&gt;&lt;/strong&gt; tag &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;which is acting like a &lt;strong&gt;&lt;u&gt;Silverlight container&lt;/u&gt;&lt;/strong&gt; control-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;param&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;splashscreensource&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SplashScreen.xaml&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;param&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;onsourcedownloadprogresschanged&amp;quot;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;OnSourceDownloadProcressChanged&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;div&gt;&lt;br /&gt;    &lt;br /&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;i) Give a SplashScreen.xaml file as a source to parameter named as splashscreensource.&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;ii) Second parameter will allow us to access the controls or resources which we are using in &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;SplashScreen.xaml by using &lt;strong&gt;&lt;u&gt;JavaScript&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;function&lt;/u&gt;&lt;/strong&gt; and do some dynamic, entertaining work like mentioned earlier.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;iii) It will even allow us to track, download of .XAP file &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;in percentage format which &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;we can display in to our SplashScreen.xaml file.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;10) So, now let’s write JavaScript function,&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt; which will display the download progress in percentage &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;into the TextBlock which is there in &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;SplashScreen.xaml and play the animation as well.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; OnSourceDownloadProcressChanged(sender, args)&lt;br /&gt;{&lt;br /&gt;    sender.findName(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;txtProgress&amp;quot;&lt;/span&gt;).Text =&lt;br /&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Download Progress is : [&amp;quot;&lt;/span&gt; + args.progress + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;]&amp;quot;&lt;/span&gt;;&lt;br /&gt;    sender.findName(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Ani&amp;quot;&lt;/span&gt;).Begin();&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;11) That’s all !! Hit F5 by &lt;/font&gt;&lt;font size=&quot;3&quot;&gt;making “SLSplashScreenApplicationTestPage.html” as a start up page and see your splash screen is working.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;Now as you have completed writing the twelve Silverlight Lab, let’s have a closer look on thirteenth lab “&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Using Custom Types in XAML.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;”&lt;/font&gt;&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/creating-and-using-splash-screen-in.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/ShoyzVNA7OI/AAAAAAAAAJ4/c8KcSpQiUn4/s72-c/MP3InXAP_thumb2.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-1757618798673968702</guid><pubDate>Mon, 25 May 2009 05:50:00 +0000</pubDate><atom:updated>2009-05-24T22:52:01.285-07:00</atom:updated><title>Querying data From Collection using LINQ and Silverlight 2.0.</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;In this lab, we will try to see &lt;strong&gt;&lt;u&gt;LINQ&lt;/u&gt;&lt;/strong&gt; (&lt;strong&gt;&lt;u&gt;Language Integrated Query&lt;/u&gt;&lt;/strong&gt;). If you are &lt;strong&gt;&lt;u&gt;already&lt;/u&gt;&lt;/strong&gt; familiar with LINQ, That will be added advantage here !!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;LINQ has different flavours-&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) LINQ to Objects.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) LINQ to Data. (LINQ to Dataset, LINQ to SQL, LINQ to Entity).&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) LINQ to XML.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;If you ask me about &lt;u&gt;LINQ&lt;/u&gt;, I will say “&lt;strong&gt;&lt;u&gt;I LOVE LINQ&lt;/u&gt;&lt;/strong&gt;” especially when I work with &lt;strong&gt;&lt;u&gt;XLINQ&lt;/u&gt;&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;Any ways, that’s my thinking !!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;This demo is will show you how to &lt;u&gt;Query to the objects&lt;/u&gt;. So, Let’s get started -&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;u&gt;&lt;strong&gt;Note-: We will see XLINQ as well in future-&lt;/strong&gt;&lt;/u&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;1) Create Silverlight project by the name SLLinqApplication.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size=&quot;3&quot;&gt;2) Add a new class in Silverlight project by the name “&lt;u&gt;Customers.cs&lt;/u&gt;” and code as shown bellow-&lt;/font&gt;&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; Customers&lt;br /&gt;{&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName { get; set; }&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City { get; set; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;3) Now let’s design the screen as bellow-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShoxiJ3kHSI/AAAAAAAAAJs/gmBXg7dyYvc/s1600-h/CollectionDemoScreen4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;CollectionDemoScreen&quot; border=&quot;0&quot; alt=&quot;CollectionDemoScreen&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/Shoxi_RcC5I/AAAAAAAAAJw/v8EobuspF-k/CollectionDemoScreen_thumb2.jpg?imgmax=800&quot; width=&quot;507&quot; height=&quot;154&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;4) Code is as follows-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;p&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SLLinqLab.Page&amp;quot;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; &lt;br /&gt;    &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;150&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Canvas&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;5&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Choose Operation - &amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ComboBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ChooseOperation&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;150&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Where City Equal To&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Where City Not Equal To&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Where City Contains &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Where City Not Contain&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;txtValue&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0,0,0,0&amp;quot;&lt;/span&gt;  &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;150&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Show Result&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Button_Click&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;30&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Top&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;70&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;See All Customers - &amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Canvas&lt;/span&gt;.&lt;span style=&quot;color: #ff0000&quot;&gt;Left&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ComboBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;SeeCustomers&amp;quot;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;150&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ItemsSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;{Binding CustomerName}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;                &lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Canvas&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;5) Now let’s create Collection to add multiple customers as follows-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; Page()&lt;br /&gt;{&lt;br /&gt;   InitializeComponent();&lt;br /&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.Loaded += &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RoutedEventHandler(Page_Loaded);&lt;br /&gt;}&lt;br /&gt;List&amp;lt;Customers&amp;gt; custList;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; Page_Loaded(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    custList = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; List&amp;lt;Customers&amp;gt;()&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers(){CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;AAA&amp;quot;&lt;/span&gt;,City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pune&amp;quot;&lt;/span&gt;},&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers(){CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;BBB&amp;quot;&lt;/span&gt;,City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Pune&amp;quot;&lt;/span&gt;},&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers(){CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;CCC&amp;quot;&lt;/span&gt;,City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Mumbai&amp;quot;&lt;/span&gt;},&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers(){CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;DDD&amp;quot;&lt;/span&gt;,City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Mumbai&amp;quot;&lt;/span&gt;},&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers(){CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;EEE&amp;quot;&lt;/span&gt;,City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Hydrabad&amp;quot;&lt;/span&gt;},&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers(){CustomerName=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;FFF&amp;quot;&lt;/span&gt;,City=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Bangalore&amp;quot;&lt;/span&gt;}&lt;br /&gt;      };&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;6) Now let’s write code on “&lt;strong&gt;&lt;u&gt;Show Result&lt;/u&gt;&lt;/strong&gt;” button click event-&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; Button_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;switch&lt;/span&gt; (ChooseOperation.SelectedIndex)&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;case&lt;/span&gt; 0:&lt;br /&gt;             var query1 = from customer &lt;span style=&quot;color: #0000ff&quot;&gt;in&lt;/span&gt; custList&lt;br /&gt;                          &lt;span style=&quot;color: #0000ff&quot;&gt;where&lt;/span&gt; customer.City.Equals(txtValue.Text)&lt;br /&gt;                          select &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers { CustomerName=customer.CustomerName};&lt;br /&gt;             SeeCustomers.DisplayMemberPath = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;CustomerName&amp;quot;&lt;/span&gt;;&lt;br /&gt;             SeeCustomers.ItemsSource = query1.ToList();&lt;br /&gt;&lt;br /&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;case&lt;/span&gt; 1:&lt;br /&gt;              var query2 = from customer &lt;span style=&quot;color: #0000ff&quot;&gt;in&lt;/span&gt; custList&lt;br /&gt;                           &lt;span style=&quot;color: #0000ff&quot;&gt;where&lt;/span&gt;  !customer.City.Equals(txtValue.Text)&lt;br /&gt;                           select &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers { CustomerName = customer.CustomerName };&lt;br /&gt;              SeeCustomers.DisplayMemberPath = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;CustomerName&amp;quot;&lt;/span&gt;;&lt;br /&gt;              SeeCustomers.ItemsSource = query2.ToList();&lt;br /&gt;&lt;br /&gt;          &lt;span style=&quot;color: #0000ff&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;          &lt;span style=&quot;color: #0000ff&quot;&gt;case&lt;/span&gt; 2:&lt;br /&gt;              var query3 = from customer &lt;span style=&quot;color: #0000ff&quot;&gt;in&lt;/span&gt; custList&lt;br /&gt;                           &lt;span style=&quot;color: #0000ff&quot;&gt;where&lt;/span&gt; customer.City.Contains(txtValue.Text)&lt;br /&gt;                           select &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers { CustomerName = customer.CustomerName };&lt;br /&gt;             SeeCustomers.DisplayMemberPath = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;CustomerName&amp;quot;&lt;/span&gt;;&lt;br /&gt;             SeeCustomers.ItemsSource = query3.ToList();&lt;br /&gt;          &lt;span style=&quot;color: #0000ff&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;          &lt;span style=&quot;color: #0000ff&quot;&gt;case&lt;/span&gt; 3:&lt;br /&gt;             var query4 = from customer &lt;span style=&quot;color: #0000ff&quot;&gt;in&lt;/span&gt; custList&lt;br /&gt;                           &lt;span style=&quot;color: #0000ff&quot;&gt;where&lt;/span&gt; !customer.City.Contains(txtValue.Text)&lt;br /&gt;                           select &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Customers { CustomerName = customer.CustomerName };&lt;br /&gt;             SeeCustomers.DisplayMemberPath = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;CustomerName&amp;quot;&lt;/span&gt;;&lt;br /&gt;             SeeCustomers.ItemsSource = query4.ToList();&lt;br /&gt;&lt;br /&gt;           &lt;span style=&quot;color: #0000ff&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;     }&lt;br /&gt; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Trebuchet MS&quot;&gt;7) &lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;That’s all !! you are done with the assignment !! &lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;Now as you have completed writing the eleventh Silverlight Lab, let’s have a closer look on twelve lab “&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;&lt;strong&gt;&lt;u&gt;Creating and using Splash Screen in Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;”&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;  </description><link>http://pkrd.blogspot.com/2009/05/querying-data-from-collection-using.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_iHADNmOcn6M/Shoxi_RcC5I/AAAAAAAAAJw/v8EobuspF-k/s72-c/CollectionDemoScreen_thumb2.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-1053100537729595950</guid><pubDate>Wed, 20 May 2009 12:59:00 +0000</pubDate><atom:updated>2009-05-21T00:42:49.414-07:00</atom:updated><title>Consuming WCF Services in Silverlight 2.0.</title><description>&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&amp;#160;&lt;/div&gt;  &lt;div&gt;In this lab, we will try to &lt;strong&gt;&lt;u&gt;Consume WCF Service&lt;/u&gt;&lt;/strong&gt; in Silverlight application. In this Lab we will try to see different topics like-&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;1) &lt;u&gt;WCF (Windows Communication Foundation)&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;2) &lt;strong&gt;&lt;u&gt;LINQ (Language Integrated Query)&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;3) &lt;strong&gt;&lt;u&gt;ADO.NET Entity Framework&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Note-: I am planning to do lab manuals for above specified topics also in future.&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Well, all above topics are out of scope from our Silverlight 2.0 lab manuals. But if necessary I will give an introduction for each one.&lt;/p&gt;  &lt;p&gt;So, let’s start first of all writing WCF Service-&lt;/p&gt;  &lt;p&gt;Before that let’s have a introduction about WCF. I will try to explain only one question Why WCF?&lt;/p&gt;  &lt;p&gt;To explain &lt;strong&gt;&lt;u&gt;Why WCF?&lt;/u&gt;&lt;/strong&gt; let’s take a closer look at a table given bellow-&lt;/p&gt;  &lt;p&gt;I found this in one of the article written by - &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;1) Create a WCF Application by the name “&lt;strong&gt;&lt;u&gt;SLWCFService&lt;/u&gt;&lt;/strong&gt;” as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP-oGAPhQI/AAAAAAAAAJM/K1IcZhBBR58/s1600-h/WCFCreateService5.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;WCFCreateService&quot; border=&quot;0&quot; alt=&quot;WCFCreateService&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP-pUqKR2I/AAAAAAAAAJQ/u1Odl_KlOy0/WCFCreateService_thumb3.jpg?imgmax=800&quot; width=&quot;501&quot; height=&quot;341&quot; /&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;2) Once you are ready with the service, delete the bellow files which are already exists under WCF Project-&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;i) &lt;strong&gt;&lt;u&gt;IService.cs&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;    &lt;p&gt;ii) &lt;strong&gt;&lt;u&gt;Service.svc&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;3) Right click to WCF project and add new item “WCF Service” with the name “&lt;strong&gt;&lt;u&gt;WCFCustomerService.svc&lt;/u&gt;&lt;/strong&gt;” as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP-qKq9M3I/AAAAAAAAAJU/emDwuZDIgIE/s1600-h/AddWCFService4.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;AddWCFService&quot; border=&quot;0&quot; alt=&quot;AddWCFService&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP-rIk27TI/AAAAAAAAAJY/qSdqswI5JxE/AddWCFService_thumb2.jpg?imgmax=800&quot; width=&quot;506&quot; height=&quot;300&quot; /&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;4) Now as we are finished adding WCF Service, let’s Add “&lt;strong&gt;&lt;u&gt;ADO.NET Entity Data Model&lt;/u&gt;&lt;/strong&gt;” by the name “&lt;u&gt;&lt;strong&gt;CustomerORM.edmx&lt;/strong&gt;&lt;/u&gt;” as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Note-: You must have .NET framework 3.5 SP1 installed before adding this new item.&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP-rzrZAJI/AAAAAAAAAJc/mrZyyDK3Krw/s1600-h/AddEntityFrame4.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;AddEntityFrame&quot; border=&quot;0&quot; alt=&quot;AddEntityFrame&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP-tFFlcZI/AAAAAAAAAJg/GWJXsOZLTUI/AddEntityFrame_thumb2.jpg?imgmax=800&quot; width=&quot;511&quot; height=&quot;291&quot; /&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;5) You will see a wizard. Complete the steps as bellow-&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;i) Generate from Database.&lt;/p&gt;    &lt;p&gt;ii) Choose the Connection String and save it in Web.config file.&lt;/p&gt;    &lt;p&gt;iii) Make a choice of table in which you are interested. I am making a choice of the same table from Customers Database “&lt;strong&gt;&lt;u&gt;CustomerInformation&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;6) So, &lt;strong&gt;&lt;u&gt;What is Entity Data Model&lt;/u&gt;&lt;/strong&gt;?&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;u&gt;It is nothing but Entity Relationship Model Model used to define Types or structures and map the relationship between them&lt;/u&gt;.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;7) Now, Let’s start writing WCF Service. Open IWCFCustomerService.cs file which is WCF Contract and write following &lt;strong&gt;&lt;u&gt;[OperationContact]&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;   &lt;div id=&quot;codeSnippetWrapper&quot;&gt;     &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 51px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[OperationContract]&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; InsertCustomer(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName, &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Address, &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City);       &lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;  &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;8) Next step is, open WCFCustomerService.svc.cs file. Remove the existing code from the class and implement the Interface within the class as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 193px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; WCFCustomerService : &lt;br /&gt;IWCFCustomerService&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;color: #cc6633&quot;&gt;#region&lt;/span&gt; IWCFCustomerService Members&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; &lt;br /&gt;InsertCustomer(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName, &lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Address, &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City)&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; &lt;br /&gt;NotImplementedException();&lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;color: #cc6633&quot;&gt;#endregion&lt;/span&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;9) So Let’s write a code to add the customer record in our CustomerInformation table using WCF Service-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 287px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; InsertCustomer(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName,&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Address, &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City)&lt;br /&gt;{&lt;br /&gt;   CustomersEntities edmContext = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; CustomersEntities();&lt;br /&gt;   edmContext.AddToCustomerInformation(&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; CustomerInformation()&lt;br /&gt;   {&lt;br /&gt;       CustomerID = CustomerID,&lt;br /&gt;       CustomerName = CustomerName,&lt;br /&gt;       Address = Address,&lt;br /&gt;       ContactNo = ContactNo,&lt;br /&gt;       City = City&lt;br /&gt;    });&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; i = edmContext.SaveChanges();&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (i &amp;gt; 0)&lt;br /&gt;       &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Customer Information stored successfully !!&amp;quot;&lt;/span&gt;;&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Not Successful ???&amp;quot;&lt;/span&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;10) Now the &lt;u&gt;Most Important&lt;/u&gt;. You need to make a small change with Binding in Web.Config file. Because Silverlight 2.0 does not support &lt;strong&gt;&lt;u&gt;wsHttpBinding&lt;/u&gt;&lt;/strong&gt;, you will have to change it to &lt;strong&gt;&lt;u&gt;basicHttpBinding&lt;/u&gt;&lt;/strong&gt;.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;First in Web.Config file find &amp;lt;system.serviceModel&amp;gt; section. Then find the Endpoint like bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 29px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;endpoint&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;address&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;wsHttpBinding&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;contract&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;WCFCustomerService.IWCFCustomerService&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;And Change it to bellow-&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 36px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;endpoint&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;address&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;basicHttpBinding&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;contract&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;WCFCustomerService.IWCFCustomerService&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;12) Now as you have made the changes into Web.Config file, Make a copy of &lt;strong&gt;clientaccesspolicy.xml&lt;/strong&gt; Or &lt;strong&gt;crossdomain.xml&lt;/strong&gt; which we had seen in last demo into root folder of WCF Service.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;13) Now let’s test it. Right click to “&lt;strong&gt;&lt;u&gt;WCFCustomService.svc&lt;/u&gt;&lt;/strong&gt;” and view in browser. You will see browser instance with link to see WSDL.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;14) Now Let’s design the screen to enter the Customer Information using Silverlight application like bellow-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustomerSLApplication.Page&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;350&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Vertical&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustomerID&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustID&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;38,10,0,10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;200&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Customer Name&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustName&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;13,10,0,10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;200&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Address&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustAddress&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;57,10,0,10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;200&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Contact No.&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustContNo&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;35,10,0,10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;200&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;City&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;CustCity&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;77,10,0,10&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;200&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Clear&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;100&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnClear&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnClear_Click&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Purple&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Insert Data&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnInsert&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnInsert_Click&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;150&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Purple&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Notification&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Notification&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;15) Now let’s write the code to access the WCF Service and insert our Customer details into the database.&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;16) Add WCF service reference to Silverlight project and write a code on Click event of “&lt;strong&gt;&lt;u&gt;Insert Data&lt;/u&gt;&lt;/strong&gt;” button as follows-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;    &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;WCFClientProxy.Service1Client proxy = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; &lt;br /&gt;CustomerSLApplication.WCFClientProxy.Service1Client();&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnInsert_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, &lt;br /&gt;RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;  proxy.InsertCustomerCompleted += &lt;br /&gt;  &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; EventHandler&amp;lt;CustomerSLApplication.WCFClientProxy.&lt;br /&gt;  InsertCustomerCompletedEventArgs&amp;gt;&lt;br /&gt;  (proxy_InsertCustomerCompleted);&lt;br /&gt;  proxy.InsertCustomerAsync(CustID.Text, CustName.Text,&lt;br /&gt;  CustAddress.Text, &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt;.Parse(CustContNo.Text), CustCity.Text);&lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; proxy_InsertCustomerCompleted(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender,&lt;br /&gt;CustomerSLApplication.WCFClientProxy.InsertCustomerCompletedEventArgs e)&lt;br /&gt;{&lt;br /&gt;   Notification.Text = e.Result;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;  &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;  &lt;div id=&quot;codeSnippetWrapper&quot;&gt;17) Now hit F5 !! Test your application, and see the notification as bellow-&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP-uD4E5wI/AAAAAAAAAJk/86tuP0WCfIg/s1600-h/OutputofWS4.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;OutputofWS&quot; border=&quot;0&quot; alt=&quot;OutputofWS&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP-vLsV0lI/AAAAAAAAAJo/BPefO2LreZA/OutputofWS_thumb2.jpg?imgmax=800&quot; width=&quot;516&quot; height=&quot;320&quot; /&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;18) For “&lt;strong&gt;&lt;u&gt;Clear&lt;/u&gt;&lt;/strong&gt;” button click event write following code-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;  &lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnClear_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;   CustID.Text = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;   CustName.Text = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;   CustAddress.Text = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;   CustContNo.Text = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;   CustCity.Text = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;   CustID.Focus();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;19) That’s all !! you are done with the assignment !!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now as you have completed writing the tenth Silverlight Lab, let’s have a closer look on eleventh lab “&lt;strong&gt;&lt;u&gt;Querying data from Collection using LINQ and Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/consuming-wcf-services-in-silverlight.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_iHADNmOcn6M/ShP-pUqKR2I/AAAAAAAAAJQ/u1Odl_KlOy0/s72-c/WCFCreateService_thumb3.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-7979916752703622678</guid><pubDate>Wed, 20 May 2009 12:54:00 +0000</pubDate><atom:updated>2009-05-24T22:43:47.908-07:00</atom:updated><title>Consuming Web Services in Silverlight 2.0.</title><description>&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;/pre&gt;In this lab, we will try to &lt;strong&gt;&lt;u&gt;Consume Web Service&lt;/u&gt;&lt;/strong&gt; in Silverlight application. But, I don’t want to do a lab for “&lt;strong&gt;&lt;u&gt;Hello World&lt;/u&gt;&lt;/strong&gt;” kind of &lt;strong&gt;Web Service&lt;/strong&gt;. So, let’s create something good.&lt;/div&gt;&lt;br /&gt;&lt;p&gt;First, let’s write a Web Service which will insert a record in the database. For this demonstration I will be using a database called “&lt;strong&gt;Customers&lt;/strong&gt;” which is already there with my SQL Express named instance installed on my machine.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;This database contains a table called &lt;strong&gt;&lt;u&gt;CustomerInformation&lt;/u&gt;&lt;/strong&gt; with following attributes-&lt;/p&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;&lt;br /&gt;&lt;table border=&quot;2&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;CustomerID&lt;/td&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;VARCHAR(5)&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;CustomerName&lt;/td&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;VARCHAR(20)&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;Address&lt;/td&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;VARCHAR(30)&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;ContactNo&lt;/td&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;INT&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;City&lt;/td&gt;&lt;br /&gt;&lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;VARCHAR(20)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;So, Let’s start writing web service. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;1) Open Visual Studio 2008 and create a new Web site and make a choice of ASP.NET Web Service Template from template window. Make a language choice as per your convenience. I am using C#. Make sure that you will be creating a web service at &lt;a href=&quot;http://localhost&quot;&gt;&lt;strong&gt;http://localhost&lt;/strong&gt;&lt;/a&gt; location as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP9c03huTI/AAAAAAAAAIc/SdFefDxDYzs/s1600-h/CreateWebService%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;CreateWebService&quot; border=&quot;0&quot; alt=&quot;CreateWebService&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP9d-kRZpI/AAAAAAAAAIg/B0rX-lyCRh8/CreateWebService_thumb.jpg?imgmax=800&quot; width=&quot;530&quot; height=&quot;444&quot;&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;2)&amp;nbsp; Once you have successfully created the Web Service, Add a new item into Web Service project called “&lt;strong&gt;&lt;u&gt;Web Service&lt;/u&gt;&lt;/strong&gt;” by the Name “&lt;strong&gt;&lt;u&gt;CustomerInformation.asmx&lt;/u&gt;&lt;/strong&gt;”.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;3) In the code file of CustomerInformation service add following “&lt;strong&gt;&lt;u&gt;Web Method&lt;/u&gt;&lt;/strong&gt;”. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;Note –: Make sure you will be changing the Connection String and table name as per your implementation!!&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;[WebMethod]&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; InsertCustomerInformation(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerID,&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; CustomerName,&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Address,&lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; ContactNo,&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; City)&lt;br&gt;{      &lt;br&gt;   &lt;span style=&quot;color: #0000ff&quot;&gt;try&lt;/span&gt; &lt;br&gt;   {            &lt;br&gt;         SqlConnection CN=&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; &lt;br&gt;SqlConnection(&lt;span style=&quot;color: #006080&quot;&gt;@&quot;Server=.\SQLExpress;Database=Customers;UID=sa;Pwd=P@ssw0rd&quot;&lt;/span&gt;);&lt;br&gt;         SqlCommand CMD=&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; SqlCommand();&lt;br&gt;         CN.Open();&lt;br&gt;         CMD.Connection=CN;&lt;br&gt;         CMD.CommandText=&lt;br&gt;&lt;span style=&quot;color: #006080&quot;&gt;&quot;Insert into CustomerInformation values(&#39;&quot;&lt;/span&gt; + CustomerID + &lt;span style=&quot;color: #006080&quot;&gt;&quot;&#39;,&#39;&quot;&lt;/span&gt; + &lt;br&gt;CustomerName + &lt;span style=&quot;color: #006080&quot;&gt;&quot;&#39;,&#39;&quot;&lt;/span&gt; + Address + &lt;span style=&quot;color: #006080&quot;&gt;&quot;&#39;,&quot;&lt;/span&gt; + ContactNo + &lt;span style=&quot;color: #006080&quot;&gt;&quot;,&#39;&quot;&lt;/span&gt; + City + &lt;span style=&quot;color: #006080&quot;&gt;&quot;&#39;)&quot;&lt;/span&gt;;&lt;br&gt;         CMD.ExecuteNonQuery();&lt;br&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&quot;Customer Information stored successfully !!&quot;&lt;/span&gt;;&lt;br&gt;    }&lt;br&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;catch&lt;/span&gt; (Exception ex)&lt;br&gt;    {&lt;br&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #006080&quot;&gt;&quot;Exception :-&quot;&lt;/span&gt; + ex.Message;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;br&gt;&lt;/pre&gt;&lt;/font&gt;&lt;/font&gt;4) Once you have finished writing Web Method, Hit F5 and test your service. Now as we are done with Writing Web Service, Let’s start designing the entry screen by Silverlight application.&lt;/div&gt;&lt;br /&gt;&lt;p&gt;5) So, let’s create Silverlight project with the name CustomerSLApplication and design the screen as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP9em3E0TI/AAAAAAAAAIk/prZqdWQP8PA/s1600-h/CustomerEntry%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;CustomerEntry&quot; border=&quot;0&quot; alt=&quot;CustomerEntry&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP9fYc5-PI/AAAAAAAAAIo/p6gLrJ4i3MM/CustomerEntry_thumb.jpg?imgmax=800&quot; width=&quot;548&quot; height=&quot;388&quot;&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;6) You can see the code for the Customer Entry screen bellow-&lt;/p&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Class&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;CustomerSLApplication.Page&quot;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt; &lt;br&gt;&lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xmlns:x&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt; &lt;br&gt;&lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;400&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;350&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;LayoutRoot&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Black&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Vertical&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;CustomerID&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;CustID&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;38,10,0,10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Customer Name&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;CustName&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;13,10,0,10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Address&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;CustAddress&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;57,10,0,10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Contact No.&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;CustContNo&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;35,10,0,10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;City&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;CustCity&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;77,10,0,10&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Clear&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;100&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;btnClear&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;btnClear_Click&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;20&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Purple&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Insert Data&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;20&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;btnInsert&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;btnInsert_Click&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;150&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Purple&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt; &lt;br&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;TextBlock&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;x:Name&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Notification&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;20&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;White&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;Notification&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;7) Now as we have finished designing screen, let’s write the code to utilize the Web Service which we have created to insert the Customer Information into our Customers Database-But before that you will have to add Customer Service Web reference into Silverlight application as shown bellow by the name &lt;strong&gt;&lt;u&gt;CustomerInformationProxy&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP9geu7I6I/AAAAAAAAAIs/XYDWEUs24TU/s1600-h/AddServiceRef.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;AddServiceRef&quot; border=&quot;0&quot; alt=&quot;AddServiceRef&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP9hEGhZhI/AAAAAAAAAIw/Gsnn16b2Wao/AddServiceRef_thumb.jpg?imgmax=800&quot; width=&quot;570&quot; height=&quot;489&quot;&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;8) So, to use this proxy let’s write code in Page.xaml.cs file on “&lt;strong&gt;&lt;u&gt;Insert&lt;/u&gt;&lt;/strong&gt;” button click event.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;Imp. Note-: Silverlight application always works at client side. Whenever it needs to access any resources from Server, it will allow you to call those resources by making a Asynchronous call to the server.&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;CustomerInformationProxy.CustomerInformationSoapClient proxy = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; CustomerSLApplication.CustomerInformationProxy.CustomerInformationSoapClient();&lt;br&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnInsert_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br&gt;{&lt;br&gt;proxy.InsertCustomerInformationCompleted += &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; EventHandler&amp;lt;CustomerSLApplication.CustomerInformationProxy.InsertCustomerInformationCompletedEventArgs&amp;gt;(proxy_InsertCustomerInformationCompleted);&lt;br&gt;proxy.InsertCustomerInformationAsync(CustID.Text, CustName.Text, CustAddress.Text, &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt;.Parse(CustContNo.Text), CustCity.Text);&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; proxy_InsertCustomerInformationCompleted(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, CustomerSLApplication.CustomerInformationProxy.InsertCustomerInformationCompletedEventArgs e)&lt;br&gt;{&lt;br&gt;Notification.Text = e.Result;&lt;br&gt;}&lt;pre class=&quot;csharpcode&quot;&gt;9) &lt;font face=&quot;Trebuchet MS&quot;&gt;Hit F5, Make a entry of new Customer and see the Result-&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;&lt;strong&gt;&lt;u&gt;You got Exception ????&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP9hxAK6xI/AAAAAAAAAI0/LisU1qJuyis/s1600-h/PolicyException%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;PolicyException&quot; border=&quot;0&quot; alt=&quot;PolicyException&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP9i5pofMI/AAAAAAAAAI4/SHA13Pa3qvU/PolicyException_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;536&quot; height=&quot;350&quot;&gt;&lt;/a&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;10) Silverlight application will never allow any resources which you are trying to access through Cross Domain. Once Silverlight detects that the request is made for &lt;strong&gt;&lt;u&gt;Cross Domain Service&lt;/u&gt;&lt;/strong&gt;, It will look for the policy file. There are two different ways of writing the policy file as shown bellow-&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;p&gt;i) &lt;strong&gt;Silverlight Cross domain Policy file called &lt;u&gt;clientaccesspolicy.xml&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Or&lt;/p&gt;&lt;br /&gt;&lt;p&gt;ii) &lt;strong&gt;Adobe Cross domain Policy file called &lt;u&gt;crossdomain.xml&lt;/u&gt; file&lt;/strong&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;Copy any one of the file at a domain root level of Web Service. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;11) However, Always try to Keep you &lt;strong&gt;&lt;u&gt;Web contents&lt;/u&gt;&lt;/strong&gt; separate than your &lt;strong&gt;&lt;u&gt;Services domain&lt;/u&gt;&lt;/strong&gt; due to security reasons. And I guess that’s how you might be working !!&lt;/p&gt;&lt;br /&gt;&lt;p&gt;12) &lt;strong&gt;&lt;u&gt;clientaccesspolicy.xml&lt;/u&gt;&lt;/strong&gt; file code-&lt;/p&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;xml&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;1.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;utf-8&quot;&lt;/span&gt;?&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;access-policy&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;cross-domain-access&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;policy&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;allow-from&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;http-request-headers&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;*&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;domain&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;uri&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;*&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;allow-from&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;grant-to&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;resource&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;path&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;/&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;include-subpaths&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;grant-to&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;policy&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;cross-domain-access&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;access-policy&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;13) &lt;strong&gt;&lt;u&gt;crossdomain.xml&lt;/u&gt;&lt;/strong&gt; file code-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div id=&quot;codeSnippetWrapper&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;xml&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;1.0&quot;&lt;/span&gt;?&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;!&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;DOCTYPE&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;cross-domain-policy&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;SYSTEM&lt;/span&gt;&lt;br&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&quot;http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;cross-domain-policy&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;       &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;allow-access-from&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;domain&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;*&quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;*&quot;&lt;/span&gt; &lt;br&gt;         &lt;span style=&quot;color: #ff0000&quot;&gt;secure&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;cross-domain-policy&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;14) Create anyone of the .xml by the same name given above and copy it to the root directory of Web site as follows-&lt;/font&gt;&lt;/div&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP9jrfsFYI/AAAAAAAAAI8/qJpI--xFjvE/s1600-h/CopyClientAccessPolicyfile%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;CopyClientAccessPolicyfile&quot; border=&quot;0&quot; alt=&quot;CopyClientAccessPolicyfile&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP9koHJQmI/AAAAAAAAAJA/zT5uBQhrZVY/CopyClientAccessPolicyfile_thumb.jpg?imgmax=800&quot; width=&quot;548&quot; height=&quot;353&quot;&gt;&lt;/a&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;15) Now Hit F5, and see the output once again !!&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP9lYHRD9I/AAAAAAAAAJE/Iz3Om_-BzRw/s1600-h/OutputofWS%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;OutputofWS&quot; border=&quot;0&quot; alt=&quot;OutputofWS&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP9mHbZHHI/AAAAAAAAAJI/tpO5HReFBms/OutputofWS_thumb.jpg?imgmax=800&quot; width=&quot;543&quot; height=&quot;415&quot;&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;17) Now try out the same steps for crossdomain.xml file and See your application working !!&lt;/p&gt;&lt;br /&gt;&lt;p&gt;18) For “&lt;strong&gt;&lt;u&gt;Clear&lt;/u&gt;&lt;/strong&gt;” button click event write following code-&lt;/p&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; btnClear_Click(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br&gt;{&lt;br&gt;CustID.Text = &lt;span style=&quot;color: #006080&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;br&gt;CustName.Text = &lt;span style=&quot;color: #006080&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;br&gt;CustAddress.Text = &lt;span style=&quot;color: #006080&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;br&gt;CustContNo.Text = &lt;span style=&quot;color: #006080&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;br&gt;CustCity.Text = &lt;span style=&quot;color: #006080&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;br&gt;CustID.Focus();&lt;br&gt;}&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;19) That’s all !! you are done with the assignment !!&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now as you have completed writing the ninth Silverlight Lab, let’s have a closer look on tenth lab “&lt;strong&gt;&lt;u&gt;Consuming WCF Services in Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/consuming-web-services-in-silverlight.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/ShP9d-kRZpI/AAAAAAAAAIg/B0rX-lyCRh8/s72-c/CreateWebService_thumb.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-7025562699661054301</guid><pubDate>Wed, 20 May 2009 12:43:00 +0000</pubDate><atom:updated>2009-05-20T05:43:00.705-07:00</atom:updated><title>Working with MediaElement control in Silverlight 2.0.</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;In this lab, we will try to work with Silverlight Control called “&lt;strong&gt;&lt;u&gt;MediaElement&lt;/u&gt;&lt;/strong&gt;”. I will not do anything &lt;strong&gt;&lt;u&gt;Fancy&lt;/u&gt;&lt;/strong&gt;. So, let’s start working with our &lt;strong&gt;&lt;u&gt;MediaElement&lt;/u&gt;&lt;/strong&gt; control.&lt;/p&gt;  &lt;p&gt;1) Create a Silverlight Application using Visual Studio 2008 and write the bellow code to see a simple media element design-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP60LRJS5I/AAAAAAAAAIU/cu5q814B-hc/s1600-h/MediaElementDesign%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;MediaElementDesign&quot; border=&quot;0&quot; alt=&quot;MediaElementDesign&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP60mZlCWI/AAAAAAAAAIY/2SbhOt5tqzQ/MediaElementDesign_thumb.jpg?imgmax=800&quot; width=&quot;538&quot; height=&quot;418&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The code for above design is as follows-&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;SLMediaElement.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;640&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;480&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;vsm&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;clr-namespace:System.Windows;assembly=System.Windows&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Canvas &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;395&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;590&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;25&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;35&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FF000000&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderBrush&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FFD1D448&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;5,5,5,5&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;CornerRadius&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;10,10,10,10&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;385&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;580&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;25&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;35&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Stretch&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Fill&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;MediaPlayer&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;30&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;119&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;434&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Play&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnPlay&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnPlay_Click&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;30&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Pause&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;173&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;434&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnPause&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnPause_Click&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;30&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Stop&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;477&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;434&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnStop&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnStop_Click&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Slider &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;29&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;179.25&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;233.75&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;434&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;ControlVolume&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Maximum&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ValueChanged&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;ControlVolume_ValueChanged&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;18&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;89.5&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;273.75&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;460&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Control Volume&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;TextWrapping&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Wrap&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FFFFFFFF&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;30&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Mute&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnMute&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;422&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;434&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;btnMute_Click&amp;quot;/&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Canvas&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;2) Now as you are done with the design part, let’s write the code for Loading, Playing, Pause and Stopping the Video which we are playing-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;3) Add a video (.wmv) file in ClientBin folder which you like. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4) For Playing the Video, let’s write the code on “&lt;strong&gt;&lt;u&gt;Play&lt;/u&gt;”&lt;/strong&gt; button click Event as follows-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; btnPlay_Click(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;   MediaPlayer.Play();            &lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;5) &lt;font face=&quot;Trebuchet MS&quot;&gt;For Pausing the Video, let’s write the code on “&lt;strong&gt;&lt;u&gt;Pause&lt;/u&gt;”&lt;/strong&gt; button click Event as follows-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; btnPause_Click(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;   MediaPlayer.Pause();&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;6) &lt;font face=&quot;Trebuchet MS&quot;&gt;For Changing the Volume, let’s write the code on “&lt;strong&gt;&lt;u&gt;Control Volume&lt;/u&gt;”&lt;/strong&gt; Slider Change Event as follows-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; ControlVolume_ValueChanged(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, RoutedPropertyChangedEventArgs&amp;lt;&lt;span class=&quot;kwrd&quot;&gt;double&lt;/span&gt;&amp;gt; e)&lt;br /&gt;{&lt;br /&gt;   MediaPlayer.Volume = ControlVolume.Value;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;7) To&lt;font face=&quot;Trebuchet MS&quot;&gt; Mute the Volume, let’s write the code on “&lt;strong&gt;&lt;u&gt;Mute&lt;/u&gt;”&lt;/strong&gt; button click Event as follows-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;bool&lt;/span&gt; flag=&lt;span class=&quot;kwrd&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; btnMute_Click(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;  &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (flag == &lt;span class=&quot;kwrd&quot;&gt;false&lt;/span&gt;)&lt;br /&gt;  {&lt;br /&gt;      MediaPlayer.IsMuted = &lt;span class=&quot;kwrd&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;      flag = &lt;span class=&quot;kwrd&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;  }&lt;br /&gt;  &lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt;&lt;br /&gt;  {&lt;br /&gt;      MediaPlayer.IsMuted = &lt;span class=&quot;kwrd&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;      flag = &lt;span class=&quot;kwrd&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;8) &lt;font face=&quot;Trebuchet MS&quot;&gt;For Stopping the Video, let’s write the code on “&lt;strong&gt;&lt;u&gt;Stop&lt;/u&gt;”&lt;/strong&gt; button click Event as follows-&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; btnStop_Click(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;  MediaPlayer.Stop();&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;9) &lt;font face=&quot;Trebuchet MS&quot;&gt;So, That’s all !! You are done with the assignment. Hit F5 and Test the application.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Note- We will try out the Same &lt;u&gt;MediaElement&lt;/u&gt; control in more fancy way in future.&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now as you have completed writing the eighth Silverlight Lab, let’s have a closer look on Ninth lab – “&lt;strong&gt;&lt;u&gt;Consuming Web Services in Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/working-with-mediaelement-control-in.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_iHADNmOcn6M/ShP60mZlCWI/AAAAAAAAAIY/2SbhOt5tqzQ/s72-c/MediaElementDesign_thumb.jpg?imgmax=800" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-813809522096184880</guid><pubDate>Wed, 20 May 2009 12:38:00 +0000</pubDate><atom:updated>2009-05-20T05:38:04.107-07:00</atom:updated><title>Creating and applying Styles &amp;amp; Templates in Silverlight 2.0 using Microsoft Expression Blend 2.0.</title><description>&lt;p&gt;&amp;#160; &lt;/p&gt;  &lt;p&gt;In this lab we will have a closer look on designing &lt;strong&gt;&lt;u&gt;Styles and Templates&lt;/u&gt;&lt;/strong&gt; by using&lt;strong&gt;&lt;u&gt; Microsoft Expression Blend 2.0&lt;/u&gt;&lt;/strong&gt;. So, lets see how to Create, Apply, and Manage the Styles First-&lt;/p&gt;  &lt;p&gt;1) Create a new Silverlight 2.0 project by using Expression Blend 2.0 as shown in previous Blog.&lt;/p&gt;  &lt;p&gt;2) Once you are done with creating a project, let’s take few controls on the design surface of Page.xaml as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5WgcbifI/AAAAAAAAAGE/uEfphOncFfk/s1600-h/BlendScreenForStyle5.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5WgcbifI/AAAAAAAAAGI/lS1VMhzNYsU/s1600-h/BlendScreenForStyle%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;BlendScreenForStyle&quot; border=&quot;0&quot; alt=&quot;BlendScreenForStyle&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP5XlW2oGI/AAAAAAAAAGQ/IpBgmyN_KsM/BlendScreenForStyle_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;499&quot; height=&quot;296&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;3) Once you finished with the design, start styling the &lt;strong&gt;&lt;u&gt;TextBlock&lt;/u&gt;&lt;/strong&gt; control. Make a choice of first TextBlock titled “&lt;strong&gt;First Name&lt;/strong&gt;”. Then go to &lt;strong&gt;&lt;u&gt;Object Menu –&amp;gt; Edit Style –&amp;gt; Create Empty&lt;/u&gt;&lt;/strong&gt; Click as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP5YQC12FI/AAAAAAAAAGU/Tjbvl7vfd5A/s1600-h/ObjectMenuStyle5.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP5YQC12FI/AAAAAAAAAGY/5qQXmYytjus/s1600-h/ObjectMenuStyle%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ObjectMenuStyle&quot; border=&quot;0&quot; alt=&quot;ObjectMenuStyle&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP5aMYkvWI/AAAAAAAAAGc/O4BTc2vWvSk/ObjectMenuStyle_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;505&quot; height=&quot;273&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;4) You will get a dialog box for &lt;strong&gt;&lt;u&gt;Create Style Resource&lt;/u&gt;&lt;/strong&gt;. Style resources you can keep or manage at different levels. This dialog shows you to manage the styles at a Document level or Application level.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5bnvXBuI/AAAAAAAAAGk/A_y26OIJXeo/s1600-h/CreateStyleResource4.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5bnvXBuI/AAAAAAAAAGo/ZfiPEHYrVEk/s1600-h/CreateStyleResource%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;CreateStyleResource&quot; border=&quot;0&quot; alt=&quot;CreateStyleResource&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP5dFKgSjI/AAAAAAAAAGw/hc8MWkJ5hH4/CreateStyleResource_thumb.jpg?imgmax=800&quot; width=&quot;524&quot; height=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Styles can be managed at various levels, Like- &lt;/p&gt;  &lt;p&gt;1) &lt;strong&gt;Styles can be managed at Panel level.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;2) &lt;strong&gt;Document Level&lt;/strong&gt; – The style which is created at Document level can be accessed through out the document and can be applied to any control which is targeted. &lt;/p&gt;  &lt;p&gt;3) &lt;strong&gt;Application Level&lt;/strong&gt; – The style which is created at Application level can be accessed through out all the documents which are there under Silverlight Project&amp;#160; and can be applied to any control which is targeted.&lt;/p&gt;  &lt;p&gt;So, Let’s create a style at document level by giving the style name as “&lt;strong&gt;TextBlockStyle&lt;/strong&gt;”.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;FontSize = 12,&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;FontWeight = Bold,&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Foreground colour = #FFF3B2B2&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Save the style which you have created and then return back to User Control.&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP5d9LYu2I/AAAAAAAAAG0/o1jH6Mdnt2Q/s1600-h/ReturnBackToScope5.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP5d9LYu2I/AAAAAAAAAG4/1BUUkIJ-wyw/s1600-h/ReturnBackToScope%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ReturnBackToScope&quot; border=&quot;0&quot; alt=&quot;ReturnBackToScope&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP5fOBM_NI/AAAAAAAAAG8/q1k9RrQujwg/ReturnBackToScope_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;550&quot; height=&quot;186&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;4) Now as you are ready with the style, lets apply the same style to other TextBlock Controls. There are different ways of doing the same. For example you can Drag &amp;amp; drop the style from Resources Window on to the different TextBlock controls as shown bellow &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5fz-GMRI/AAAAAAAAAHE/6LsWw8y1_i8/s1600-h/DragNDropStyle5.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5fz-GMRI/AAAAAAAAAHI/eTCUKnNDZ-Y/s1600-h/DragNDropStyle%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;DragNDropStyle&quot; border=&quot;0&quot; alt=&quot;DragNDropStyle&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP5hP9fakI/AAAAAAAAAHQ/LThZSLnw_xY/DragNDropStyle_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;548&quot; height=&quot;279&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Or you can go back to &lt;strong&gt;&lt;u&gt;Object Menu&lt;/u&gt; –&amp;gt; &lt;u&gt;Edit Style&lt;/u&gt; –&amp;gt; &lt;u&gt;Apply Resource&lt;/u&gt; –&amp;gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;Style Name&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP5h6PXVlI/AAAAAAAAAHU/jpNKmFiSTeA/s1600-h/ApplyStyle4.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP5h6PXVlI/AAAAAAAAAHY/dGcxOe07pzw/s1600-h/ApplyStyle%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ApplyStyle&quot; border=&quot;0&quot; alt=&quot;ApplyStyle&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5jk2PncI/AAAAAAAAAHg/YpNX0oTLbkw/ApplyStyle_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;542&quot; height=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Now as you have seen how to Create and Apply Style for TextBlock, try similar thing with TextBox or some other controls.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Imp. Note: I will be creating No. of styles and templates during this Lab sessions. You can even try the same when you will be following these demos.&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Now, let’s move towards creating templates. Follow the steps as bellow-&lt;/p&gt;  &lt;p&gt;1) Make a choice of Button and create a empty data Template for Button as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP5kWePUwI/AAAAAAAAAHk/bMstxKRb2Pw/s1600-h/ControlTemplate4.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShP5kWePUwI/AAAAAAAAAHo/Ip7U2rYF67k/s1600-h/ControlTemplate%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ControlTemplate&quot; border=&quot;0&quot; alt=&quot;ControlTemplate&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShP5lhobEFI/AAAAAAAAAHw/HTzUUU718Sg/ControlTemplate_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;540&quot; height=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;2) Name the Template as &lt;strong&gt;Button Template&lt;/strong&gt; -&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP5m0HbMsI/AAAAAAAAAH0/ZaVO2GnHynw/s1600-h/ButtonTemplate4.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP5m0HbMsI/AAAAAAAAAH4/g5GckB93LOo/s1600-h/ButtonTemplate%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ButtonTemplate&quot; border=&quot;0&quot; alt=&quot;ButtonTemplate&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShP5oHVe2MI/AAAAAAAAAH8/ZRo1ahMLf4E/ButtonTemplate_thumb.jpg?imgmax=800&quot; width=&quot;552&quot; height=&quot;307&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;3) Once you have created the Style Resource with the name &lt;strong&gt;ButtonTemplate&lt;/strong&gt;, delete the following items from Object and TimeLine window-&lt;/p&gt;  &lt;p&gt;i) &lt;strong&gt;Background.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;ii) &lt;strong&gt;DisabledVisualItem.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;iii) &lt;strong&gt;FocusVisualItem.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt; 4) Draw the Border with Border Thickness of 2,Corner Radius with 10, Border colour White, Background colour LinearGradientBrush with Two colour combination as you like as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP5oo6NfVI/AAAAAAAAAIE/56M6FAy7M3w/s1600-h/DrawingTamplate5.jpg&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP5oo6NfVI/AAAAAAAAAII/v9-Dd0FFM18/s1600-h/DrawingTamplate%5B3%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;DrawingTamplate&quot; border=&quot;0&quot; alt=&quot;DrawingTamplate&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShP5qk8Vt7I/AAAAAAAAAIQ/91nb5qcBBkc/DrawingTamplate_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;514&quot; height=&quot;304&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;5) Make Border Opacity 60. That’s it you got a nice shape Button. Additionally you can add few Visual States which will show you how to give different effects to the Button Templates as you like- For Example - &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&amp;lt;vsm:VisualStateManager.VisualStateGroups&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualStateGroup x:Name=&amp;quot;CommonStates&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualState x:Name=&amp;quot;Normal&amp;quot;/&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualState x:Name=&amp;quot;MouseOver&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard/&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/vsm:VisualState&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualState x:Name=&amp;quot;Pressed&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard/&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/vsm:VisualState&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualState x:Name=&amp;quot;Disabled&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard/&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/vsm:VisualState&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/vsm:VisualStateGroup&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualStateGroup x:Name=&amp;quot;FocusStates&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualState x:Name=&amp;quot;Focused&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Storyboard/&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/vsm:VisualState&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;vsm:VisualState x:Name=&amp;quot;Unfocused&amp;quot;/&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/vsm:VisualStateGroup&amp;gt;       &lt;br /&gt;&amp;lt;/vsm:VisualStateManager.VisualStateGroups&amp;gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;6) You can do lot many things when you talk about Styles and Templates- We will look at few more examples in future.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Now as you have completed writing the forth Silverlight Lab, let’s have a closer look on Fifth lab – “&lt;strong&gt;&lt;u&gt;Encoding Media using Expression Encoder and testing with ASP.NET MediaPlayer control.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/creating-and-applying-styles-templates.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/ShP5XlW2oGI/AAAAAAAAAGQ/IpBgmyN_KsM/s72-c/BlendScreenForStyle_thumb%5B1%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-1581284706405436255</guid><pubDate>Wed, 20 May 2009 12:13:00 +0000</pubDate><atom:updated>2009-05-20T05:13:18.363-07:00</atom:updated><title>Creating Deep Zoom Application for your Images</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;In this lab we will have a closer look on using “&lt;strong&gt;&lt;u&gt;Sea Dragon Technology&lt;/u&gt;&lt;/strong&gt;” called “&lt;strong&gt;&lt;u&gt;Silverlight Deep Zoom&lt;/u&gt;&lt;/strong&gt;”. Basically used for &lt;strong&gt;&lt;u&gt;Zooming and Panning Images&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;To work with Sea Dragon you will have to download a tool called as “&lt;strong&gt;&lt;u&gt;Deep Zoom Composer&lt;/u&gt;&lt;/strong&gt;” from Microsoft download centre and install it-&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=457B17B7-52BF-4BDA-87A3-FA8A4673F8BF&amp;amp;displaylang=en&quot; href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=457B17B7-52BF-4BDA-87A3-FA8A4673F8BF&amp;amp;displaylang=en&quot;&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=457B17B7-52BF-4BDA-87A3-FA8A4673F8BF&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This tool allows you to Zoom and Pan the images like never before. For that you must have High Resolution Images needs to be prepared.&lt;/p&gt;  &lt;p&gt;Once you finished installing the &lt;strong&gt;&lt;u&gt;Deep Zoom Composer&lt;/u&gt;&lt;/strong&gt; tool, you are ready to use it and deploy the files with Silverlight 2.0. So, let’s get started-&lt;/p&gt;  &lt;p&gt;1) Open Deep Zoom Composer tool as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShPzv2-4OQI/AAAAAAAAAFc/idOlaMg-Hmg/s1600-h/DeepZoomScreen%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;DeepZoomScreen&quot; border=&quot;0&quot; alt=&quot;DeepZoomScreen&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShPzwkRp3kI/AAAAAAAAAFg/ot4p2mMULGA/DeepZoomScreen_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;562&quot; height=&quot;303&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;2) This tool follows a simple workflow kind three steps- &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;i) &lt;strong&gt;&lt;u&gt;Import&lt;/u&gt;&lt;/strong&gt; –: Import Images like .jpg, .png etc.&lt;/p&gt;    &lt;p&gt;ii) &lt;strong&gt;&lt;u&gt;Compose&lt;/u&gt;&lt;/strong&gt; –: Arrange the images as per the requirements. For example set height, width, overlaying images, alignment of images. &lt;/p&gt;    &lt;p&gt;iii) &lt;strong&gt;&lt;u&gt;Export&lt;/u&gt;&lt;/strong&gt; –: Export Images will allow you to export the Images to DeepZoomPix Technology demonstration or &lt;strong&gt;Custom&lt;/strong&gt; as a Single Image or Multiple Images.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;3) So, let’s create a new application by the name &lt;strong&gt;&lt;u&gt;DZCSLApplication&lt;/u&gt;&lt;/strong&gt; and start importing few images in our first step to create deep zoom application.&lt;/p&gt;  &lt;p&gt;4) I have imported five images as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPzxRZZmMI/AAAAAAAAAFk/AgNWZHjQR7o/s1600-h/ImportImages%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;ImportImages&quot; border=&quot;0&quot; alt=&quot;ImportImages&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPzyGfcgQI/AAAAAAAAAFo/tNlOm1SR2wA/ImportImages_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;568&quot; height=&quot;279&quot; /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;5) Now let’s start looking at how to compose images and what are different tools available for the same-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShPzzJcTSPI/AAAAAAAAAFs/A98hJnyomkE/s1600-h/ComposingImages5.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;ComposingImages&quot; border=&quot;0&quot; alt=&quot;ComposingImages&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPzzxlt4qI/AAAAAAAAAFw/R5x-0DqnOQk/ComposingImages_thumb3.jpg?imgmax=800&quot; width=&quot;728&quot; height=&quot;405&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;If you watch it closely, you will see I have done the overlaying of images as highlighted by red box. &lt;/p&gt;  &lt;p&gt;6) Once you finish with this have a closer look on a tool bar bellow which will allow you to align the images, and make height and width same with other images-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPz0p3YSyI/AAAAAAAAAF0/16MjRDnGeoA/s1600-h/DZCToolBar%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;DZCToolBar&quot; border=&quot;0&quot; alt=&quot;DZCToolBar&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPz1jo_PAI/AAAAAAAAAF4/j8YU-Z7dw04/DZCToolBar_thumb.jpg?imgmax=800&quot; width=&quot;538&quot; height=&quot;66&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;7) Now the last step is Export the composition as per your requirement. As mentioned earlier you can export the composition either DeepZoomPix Technology demonstration or &lt;strong&gt;Custom&lt;/strong&gt; as a Single Image or Multiple Images.&lt;/p&gt;  &lt;p&gt;8) We will export our composition to Silverlight as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPz2bwgvXI/AAAAAAAAAF8/-3U1URgbaqs/s1600-h/ExportDZCComposition4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;ExportDZCComposition&quot; border=&quot;0&quot; alt=&quot;ExportDZCComposition&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPz3FaqLLI/AAAAAAAAAGA/LRB3VLGAcVM/ExportDZCComposition_thumb2.jpg?imgmax=800&quot; width=&quot;368&quot; height=&quot;422&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;As shown above, make a choice of “&lt;strong&gt;&lt;u&gt;Silverlight Deep Zoom&lt;/u&gt;”&lt;/strong&gt; option from &lt;strong&gt;&lt;u&gt;Output Type&lt;/u&gt;&lt;/strong&gt;. Name the output as &lt;strong&gt;&lt;u&gt;SimpleDZCApplication&lt;/u&gt;&lt;/strong&gt;. &lt;strong&gt;Image Settings&lt;/strong&gt; make a choice of “&lt;strong&gt;&lt;u&gt;Export as a Collection (multiple images)”&lt;/u&gt;&lt;/strong&gt;. Click &lt;strong&gt;&lt;u&gt;Export&lt;/u&gt;&lt;/strong&gt; button. &lt;/p&gt;  &lt;p&gt;9) Once Export is completed, &lt;strong&gt;&lt;u&gt;Preview the output in Browser&lt;/u&gt;&lt;/strong&gt; and have a closer look at &lt;strong&gt;&lt;u&gt;View&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;Project Folder&lt;/u&gt;&lt;/strong&gt; as well. &lt;/p&gt;  &lt;p&gt;10) Open the .sln file in Visual studio 2008 and have a closer look on the code which is there in &lt;strong&gt;&lt;u&gt;Page.xaml&lt;/u&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;u&gt;Page.xaml.cs&lt;/u&gt;&lt;/strong&gt; file.&lt;/p&gt;  &lt;p&gt;11) In Page.xaml you will see a control called MultiscaleImage&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MultiScaleImage &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;msi&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/GeneratedImages/dzc_output.xml&amp;quot;/&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;  &lt;p&gt;&lt;span style=&quot;color: red&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;The&lt;/font&gt; &lt;strong&gt;&lt;u&gt;Source&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;strong&gt;&lt;u&gt;=&amp;quot;/GeneratedImages/dzc_output.xml&amp;quot;&lt;/u&gt;&lt;/strong&gt; &lt;font color=&quot;#000000&quot;&gt;property value is coming from ClientBin Folder where the composition output is available. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;12) Open Page.xaml.cs file and observe the code which is generated for you by default.&lt;/p&gt;  &lt;p&gt;13) Now take a closer look on class file called “&lt;strong&gt;&lt;u&gt;MouseWheelHelper.cs&lt;/u&gt;&lt;/strong&gt;”. This will help you to see the Zoom-in or Zoom-out effect by using Mouse Wheel. &lt;/p&gt;  &lt;p&gt;14) So, that’s all !! you are done with the assignment.&lt;/p&gt;  &lt;p&gt;Now as you have completed writing the sixth Silverlight Lab, let’s have a closer look on seventh lab – “&lt;strong&gt;&lt;u&gt;Creating and using Resources in Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/creating-deep-zoom-application-for-your.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_iHADNmOcn6M/ShPzwkRp3kI/AAAAAAAAAFg/ot4p2mMULGA/s72-c/DeepZoomScreen_thumb%5B1%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-429835794138297052</guid><pubDate>Wed, 20 May 2009 12:07:00 +0000</pubDate><atom:updated>2009-05-20T05:07:45.680-07:00</atom:updated><title>Encoding Media using Expression Encoder and testing with ASP.NET MediaPlayer control</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;In this lab we will have a closer look on Encoding Media by using&lt;strong&gt;&lt;u&gt; Microsoft Expression Encoder 2.0&lt;/u&gt;&lt;/strong&gt;. So, lets see how to encode Media and use it with ASP.NET control &lt;strong&gt;&lt;u&gt;MediaPlayer&lt;/u&gt;&lt;/strong&gt;-&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Introduction – :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Make sure you have installed following tools as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;1) Microsoft Expression Encoder 2.0 with SP1.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;2) Microsoft Visual Studio 2008 With SP1.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;1) So, let’s start by opening &lt;strong&gt;&lt;u&gt;Microsoft Expression Encoder 2.0&lt;/u&gt;&lt;/strong&gt; .&lt;/p&gt;  &lt;p&gt;2) Drag and Drop any .wmv file on the surface of &lt;strong&gt;&lt;u&gt;Expression Encoder 2.0&lt;/u&gt;&lt;/strong&gt; as you like.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;I took the Bear.wmv file in this lab.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;3) Now if you observe carefully, you will see a “&lt;strong&gt;&lt;u&gt;Orange Slider&lt;/u&gt;&lt;/strong&gt;” which will allow you to play the video as per the time frame you would like to choose as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPyaW9NomI/AAAAAAAAAEk/ALC-tzhwr_4/s1600-h/EncoderSlider%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;EncoderSlider&quot; border=&quot;0&quot; alt=&quot;EncoderSlider&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPybaiZp-I/AAAAAAAAAEo/_0sNfW7shyw/EncoderSlider_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;510&quot; height=&quot;321&quot; /&gt;&lt;/a&gt; &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;4) This Slider will allow you to choose time frame from where you would like to put the &lt;strong&gt;Book Marks&lt;/strong&gt; and start playing the video from the &lt;strong&gt;Book Mark&lt;/strong&gt; you would like to-&lt;/p&gt;  &lt;p&gt;5) To add Book Marks into the video, move the slider as per you convenient timer. Make a choice of &lt;strong&gt;&lt;u&gt;Metadata Window&lt;/u&gt;&lt;/strong&gt; from Windows Menu as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPyb7V28lI/AAAAAAAAAEs/6A8AKdrwDu4/s1600-h/MetaDataWindow%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;MetaDataWindow&quot; border=&quot;0&quot; alt=&quot;MetaDataWindow&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPycySl-9I/AAAAAAAAAEw/af0y0mEZNvs/MetaDataWindow_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;490&quot; height=&quot;218&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;6) Once you get the Metadata window you will see the Markers section (Group) within Metadata window.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPydZB8fEI/AAAAAAAAAE0/oUs3gm1jw2g/s1600-h/MarkerSection%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;MarkerSection&quot; border=&quot;0&quot; alt=&quot;MarkerSection&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShPyeNEPJHI/AAAAAAAAAE4/AJZxcZTsB2E/MarkerSection_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;548&quot; height=&quot;211&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;7) By clicking “&lt;strong&gt;&lt;u&gt;Add&lt;/u&gt;&lt;/strong&gt;” button, you can add the book marks. Once you add the Book Marks, now you can name the “&lt;strong&gt;&lt;u&gt;Value&lt;/u&gt;&lt;/strong&gt;” as Marker1 and check the Thumb Nails checkbox as well.When you click the Thumb Nails, it actually creates a .JPG file for you which you can use further a head to play the video as per you requirement.&lt;/p&gt;  &lt;p&gt;8) So, now let’s create few markers for our Bear.wmv video by moving a slider. Once you finished with adding markers, Click the Button “&lt;strong&gt;&lt;u&gt;Encode&lt;/u&gt;&lt;/strong&gt;” as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPye4k7jaI/AAAAAAAAAE8/lDO4Pl5nFQs/s1600-h/EncodeButton%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;EncodeButton&quot; border=&quot;0&quot; alt=&quot;EncodeButton&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPyfjiTLrI/AAAAAAAAAFA/WuCu4-Ql63U/EncodeButton_thumb.jpg?imgmax=800&quot; width=&quot;555&quot; height=&quot;89&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;9) Once it is Encoded, Go to Output Window by making a choice of &lt;strong&gt;&lt;u&gt;Window Menu-&amp;gt; Output&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPygZlHO2I/AAAAAAAAAFE/mB9YkQNRhTw/s1600-h/image%5B3%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPyhFmYG6I/AAAAAAAAAFI/r4utRbtdoTk/image_thumb%5B2%5D.png?imgmax=800&quot; width=&quot;567&quot; height=&quot;307&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;10) Make a choice of &lt;strong&gt;Directory &lt;/strong&gt;as shown above and copy the path. Open the path in Windows Explorer and observer the directory. You will find the Encoded Video and few Thumb nails which we have created during our encoding procedure in a folder.&lt;/p&gt;  &lt;p&gt;Now our Encoding is done. So, Let’s Create A &lt;strong&gt;&lt;u&gt;Silverlight Project&lt;/u&gt;&lt;/strong&gt; Or &lt;strong&gt;&lt;u&gt;Simple ASP.NET web site&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;11) Once you have created the Web site, you will find the &lt;strong&gt;&lt;u&gt;Default.aspx&lt;/u&gt;&lt;/strong&gt; page. Drag and drop the &lt;strong&gt;&lt;u&gt;ScriptManager&lt;/u&gt;&lt;/strong&gt; control on &lt;strong&gt;&lt;u&gt;Default.aspx&lt;/u&gt;&lt;/strong&gt; page. This is a &lt;strong&gt;&lt;u&gt;mandatory step&lt;/u&gt;&lt;/strong&gt; for showing the output of our Encoded Video. &lt;/p&gt;  &lt;p&gt;12) Create an empty folder into web site you have created. Name it as MediaOutput and Copy the Encoded output ( Encoded Media .wmv file and .jpg files) in a folder.&lt;/p&gt;  &lt;p&gt;13) After that go to Silverlight group from the tool box and drag and drop MediaPlayer Control on the &lt;strong&gt;&lt;u&gt;Default.aspx&lt;/u&gt;&lt;/strong&gt; page. Go to design view of Default.aspx page and adjust the Height and Width of the Silverlight MediaPlayer control.&lt;/p&gt;  &lt;p&gt;14) Click the pin and click a link called Import Skin. You will see an Import Skin window from where you can make a choice of beautiful skins for MediaPlayer as per you choice. These are the default skins which are given by Microsoft. But If you want to build your own skins you can do the same and apply it to MediaPlayer. &lt;/p&gt;  &lt;p&gt;15) Make a choice of a skin which you like and give the Media source as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPyhkP3ahI/AAAAAAAAAFM/ig5ZtH5FzM4/s1600-h/MediaProperties%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;MediaProperties&quot; border=&quot;0&quot; alt=&quot;MediaProperties&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPyilaCBsI/AAAAAAAAAFQ/U48AzEZY46M/MediaProperties_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;530&quot; height=&quot;250&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;16) Now go back to Default.aspx HTML source and type the following-&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaPlayer &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;MediaPlayer1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;server&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot; &lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;496px&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;MediaSkinSource&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;~/Expression.xaml&amp;quot; &lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;MediaSource&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;~/MediaOutput/Bear.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;671px&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Chapters&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaChapter &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Position&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2.0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ThumbnailSource&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;~/MediaOutput/Bear_2.002.jpg&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Marker1&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaChapter &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Position&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;5.0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ThumbnailSource&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;~/MediaOutput/Bear_4.997.jpg&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Marker2&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaChapter &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Position&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;8.0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ThumbnailSource&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;~/MediaOutput/Bear_8.004.jpg&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Marker3&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaChapter &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Position&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;11.0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ThumbnailSource&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;~/MediaOutput/Bear_11.024.jpg&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Marker4&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Chapters&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaPlayer&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;17) And you are Done !! Hit F5 to test the Encoded media and you should see the output as bellow-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPyjfzL4jI/AAAAAAAAAFU/i3zBoxQbhHY/s1600-h/MediaOutput%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;MediaOutput&quot; border=&quot;0&quot; alt=&quot;MediaOutput&quot; src=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPykNVRo3I/AAAAAAAAAFY/pu_XyzzWHLs/MediaOutput_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;552&quot; height=&quot;347&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now as you have completed writing the fifth Silverlight Lab, let’s have a closer look on sixth lab – “&lt;strong&gt;&lt;u&gt;Creating Deep Zoom Application for your Images.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/encoding-media-using-expression-encoder.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_iHADNmOcn6M/ShPybaiZp-I/AAAAAAAAAEo/_0sNfW7shyw/s72-c/EncoderSlider_thumb%5B1%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-8358426661732285749</guid><pubDate>Wed, 20 May 2009 11:51:00 +0000</pubDate><atom:updated>2009-05-20T04:51:29.007-07:00</atom:updated><title>Introduction to Layouts &amp;amp; Controls in Silverlight 2.0. Part - II</title><description>&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;We have seen Layout management in our previous lab. So, continuing with the same lab let’s have introduction to commonly used controls. In this lab, &lt;strong&gt;&lt;u&gt;I’ll not be taking all controls.&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Bellow is a controls list which we will try out-&lt;/p&gt;  &lt;p&gt;1) &lt;strong&gt;&lt;u&gt;Border Control&lt;/u&gt;&lt;/strong&gt; : Try out following Example -&lt;/p&gt;  &lt;p&gt;Most of the time you will see Border Control is used in templates. Important point to note down here is – If you try to add more than one control within border, you will get exception that “&lt;strong&gt;The property &lt;u&gt;Child&lt;/u&gt; is set more than once&lt;/strong&gt;”. So, you will see where ever you want to use more than one control inside border you will have to use some container which allows to include more than one control.&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;FirstSLApplication.Page&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;400&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderBrush&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;RosyBrown&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot; /&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderBrush&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Green&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;CornerRadius&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;10,10,10,10&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot; /&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderBrush&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;CornerRadius&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;10,10,10,10&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Center&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Brown&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Blue&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Bisque&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Green&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;15&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;HotPink&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;5,0,0,0&amp;quot;/&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderBrush&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;BorderThickness&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;CornerRadius&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;10,10,10,10&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;75&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Butterfly.jpg&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Stretch&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Fill&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;40&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;65&amp;quot; /&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;      &lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt; 2) &lt;strong&gt;&lt;u&gt;TextBolck Control&lt;/u&gt;&lt;/strong&gt; : Try out following example -&lt;/p&gt;  &lt;p&gt;TextBlock control is a lightweight control which is used to display messages or contents.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;FirstSLApplication.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;400&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;txtSimpleTxBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;This is Simple TextBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;txtSimpleTxBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontFamily&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Times New Roman&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;This is Simple TextBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;txtSimpleTxBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Green&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;This is Simple TextBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;txtSimpleTxBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;White&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontFamily&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Comic Sans MS&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;This is Simple TextBlock&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot;/&amp;gt;&lt;br /&gt;        &lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;3) &lt;strong&gt;&lt;u&gt;Button Control&lt;/u&gt;&lt;/strong&gt; : Try out following example -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is &lt;strong&gt;&lt;u&gt;not an ordinary Button control&lt;/u&gt;&lt;/strong&gt; which you had seen in Win Forms or Web Forms. Silverlight Button control is a&lt;strong&gt;&lt;u&gt; Container&lt;/u&gt;&lt;/strong&gt; control which can hold other controls inside.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;FirstSLApplication.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;400&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Click Me !!&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;200&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;200&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Click Me&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Blue&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontWeight&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Bold&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;200&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;                   &lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/Silverlight.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Click Me !!&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;HotPink&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;200&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot; IsEnabled=&amp;quot;False&amp;quot;/&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4) &lt;strong&gt;&lt;u&gt;CheckBox Control&lt;/u&gt;&lt;/strong&gt; : Try out following example -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;CheckBox control is a &lt;u&gt;C&lt;strong&gt;ontainer&lt;/strong&gt;&lt;/u&gt; control unlike the simple CheckBox you had seen in Win form and Web form.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;FirstSLApplication.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;400&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Click Me !!&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Click Me&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Blue&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontWeight&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Bold&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Center&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Center&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/Silverlight.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;HotPink&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;IsEnabled&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;False&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Butterfly.jpg&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5) &lt;strong&gt;&lt;u&gt;RadioButton Control &lt;/u&gt;&lt;/strong&gt;: Try out following example -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;RadioButton control is a &lt;u&gt;C&lt;strong&gt;ontainer&lt;/strong&gt;&lt;/u&gt; control unlike the simple CheckBox you had seen in Win form and Web form.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;FirstSLApplication.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;400&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Click Me !!&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Click Me&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Blue&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontWeight&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Bold&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Center&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Center&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/Silverlight.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;HotPink&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;IsEnabled&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;False&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Butterfly.jpg&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton.Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RadioButton&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;6) &lt;strong&gt;&lt;u&gt;TextBox Control&lt;/u&gt;&lt;/strong&gt; : Try out following example -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is a Simple TextBox control-&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;FirstSLApplication.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;400&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;300&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;220&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;This is Simple TextBox !!&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;25&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;220&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Blue&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontWeight&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Bold&amp;quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;TextBox with Foreground Color&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;25&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;220&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontWeight&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Bold&amp;quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;TextBox with Background Color&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;25&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;220&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;This is Formated TextBox !!&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;25&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Gray&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;7) &lt;strong&gt;&lt;u&gt;Slider Control&lt;/u&gt;&lt;/strong&gt; : Try out following example -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Slider control has few important property which you need to consider are as follows -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1) &lt;u&gt;&lt;strong&gt;Minimum.&lt;/strong&gt;&lt;/u&gt; 2) &lt;strong&gt;&lt;u&gt;Maximum.&lt;/u&gt;&lt;/strong&gt; and 3) &lt;strong&gt;&lt;u&gt;Value.&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The bellow example is using slider to change the&lt;strong&gt;&lt;u&gt; Rotation Transform &lt;/u&gt;&lt;/strong&gt;and &lt;strong&gt;&lt;u&gt;Skew Transform &lt;/u&gt;&lt;/strong&gt;of Ellipse programmatically on the &lt;strong&gt;&lt;u&gt;ValueChanged&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;Event&lt;/u&gt;&lt;/strong&gt; of Slider. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;SLBlendFirstApp.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;640&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;480&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;mc&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;mc&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Ignorable&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;d&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FF000000&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ColumnDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0.500*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ColumnDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0.500*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0.740*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0.260*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Slider  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Slider1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;LargeChange&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;10&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Maximum&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;360&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ValueChanged&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Slider1_ValueChanged&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Slider  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Slider2&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Maximum&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;LargeChange&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;10&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ValueChanged&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Slider2_ValueChanged&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;57,88,63,117&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FFFFF100&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FF000000&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;200&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;150&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;El1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;RenderTransformOrigin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0.5,0.5&amp;quot;&amp;gt;&lt;br /&gt;            &lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;57,88,63,117&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FF0040FF&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;#FF000000&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;200&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;150&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;El2&amp;quot;/&amp;gt;&lt;br /&gt;        &lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Open your &lt;strong&gt;&lt;u&gt;Page.xaml.cs &lt;/u&gt;&lt;/strong&gt;file and write bellow code on &lt;strong&gt;&lt;u&gt;Slider’s&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;ValueChanged&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;event&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; Slider1_ValueChanged(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, RoutedPropertyChangedEventArgs&amp;lt;&lt;span class=&quot;kwrd&quot;&gt;double&lt;/span&gt;&amp;gt; e)&lt;br /&gt;{&lt;br /&gt;    RotateTransform rTransform=&lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; RotateTransform();&lt;br /&gt;    rTransform.Angle=Slider1.Value;&lt;br /&gt;    El1.RenderTransform = rTransform;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; Slider2_ValueChanged(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, RoutedPropertyChangedEventArgs&amp;lt;&lt;span class=&quot;kwrd&quot;&gt;double&lt;/span&gt;&amp;gt; e)&lt;br /&gt;{&lt;br /&gt;    SkewTransform rTransform = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; SkewTransform();&lt;br /&gt;    rTransform.AngleX = Slider2.Value;&lt;br /&gt;    El2.RenderTransform = rTransform;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;8) &lt;strong&gt;&lt;u&gt;ComboBox Control &lt;/u&gt;&lt;/strong&gt;: Try out following example -&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is a container controls as bellow example show the same.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;SLBlendFirstApp.Page&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;640&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;480&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;mc&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;mc&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Ignorable&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;d&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Black&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;LayoutRoot&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;*&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;150&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Pravinkumar&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yash&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Priti&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Manish&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Ramakant&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;150&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Purple&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red Says Stop -          &amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;12&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow Says Slow -      &amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;12&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Green&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Green Says Stop -       &amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;12&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Green&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;150&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Purple&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Video - 1&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;12&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/Silverlight.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Yellow&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Video - 2&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;12&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/Silverlight.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Green&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Video - 3&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;12&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/Silverlight.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;50&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;150&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Purple&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Butterfly.jpg&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;MediaElement &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;/Silverlight.wmv&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;AutoPlay&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Red&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Butterfly.jpg&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;20&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Butterfly.jpg&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt; And like wise their are many more controls which you can use to design the better UX in Silverlight 2.0.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Imp. Note : &lt;u&gt;I have not covered all the controls here&lt;/u&gt;. Controls even you can learn by your own. But just to give you a &lt;u&gt;Sneak-Peak-Preview&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;of Silverlight 2.0 Controls I took this opportunity!!&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now as you have completed writing the third Silverlight Lab, let’s have a closer look on Forth lab – “&lt;strong&gt;&lt;u&gt;Creating and applying Styles &amp;amp; Templates in Silverlight 2.0 using Microsoft Expression Blend 2.0.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/introduction-to-layouts-controls-in_20.html</link><author>noreply@blogger.com (Pravinkumar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-3810303038128418804</guid><pubDate>Wed, 20 May 2009 11:48:00 +0000</pubDate><atom:updated>2009-05-20T04:48:25.280-07:00</atom:updated><title>Introduction to Layouts &amp;amp; Controls in Silverlight 2.0. Part - I</title><description>&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;In this third lab we will have introduction to Layout management in Silverlight 2.0. Below are the steps –:&lt;/p&gt; &lt;p&gt;In Silverlight 2.0 we have few Layouts as follows - &lt;/p&gt; &lt;p&gt;1) &lt;u&gt;&lt;strong&gt;Grid Panel&lt;/strong&gt;.&lt;/u&gt;&lt;/p&gt; &lt;p&gt;2) &lt;strong&gt;&lt;u&gt;Canvas&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt; &lt;p&gt;3) &lt;strong&gt;&lt;u&gt;Stack Panel&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt; &lt;p&gt;To work with these Panels, follow below steps -&lt;/p&gt; &lt;p&gt;1) Create Silverlight 2.0 Project as shown in previous Blog and give name to it as SLLayoutManagement.&lt;/p&gt; &lt;p&gt;2) Add an Image of your choice in Silverlight project as shown bellow - &lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPuA1cCDhI/AAAAAAAAAEc/4kfdqxeaUzY/s1600-h/AddImage4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;AddImage&quot; border=&quot;0&quot; alt=&quot;AddImage&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPuB_EpM6I/AAAAAAAAAEg/L0apfdSHW_s/AddImage_thumb2.jpg?imgmax=800&quot; width=&quot;269&quot; height=&quot;293&quot;&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;3) We will first have a look at &lt;strong&gt;&lt;u&gt;Grid Layout&lt;/u&gt;&lt;/strong&gt;. By using Grid Layout you can arrange the contents in Rows and Columns by Specifying the Margin for the contents to appear perfect on your screen.&lt;/p&gt; &lt;p&gt;4) Open Page.xaml and Start typing bellow code -&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;FirstSLApplication.Page&quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;400&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;300&quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;LayoutRoot&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Black&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;True&quot; &amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ColumnDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ColumnDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;ColumnDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Click To See Time&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;0&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;0&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Click To See Time&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;0&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;1&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Click To See Time&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;0&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;2&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;75&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Stretch&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Fill&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Butterfly.jpg&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;1&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;0&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;75&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Stretch&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Fill&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Butterfly.jpg&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;1&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;1&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;75&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Stretch&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Fill&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Butterfly.jpg&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;1&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;2&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;75&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Yellow&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;2&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;0&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;75&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Yellow&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;2&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;1&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;75&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;120&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Yellow&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;2&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;2&quot;/&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/pre&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;u&gt;&lt;/u&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;5) Once you are done, hit F5 to test the application of Silverlight 2.0.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;u&gt;Note : If you want to Create new project, please follow the steps to create a new project of Silverlight Or modify the existing one. I am modifying existing one.&lt;/u&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;1) Now as you have seen how &lt;strong&gt;&lt;u&gt;Grid Layout&lt;/u&gt;&lt;/strong&gt; works, let’s have a look at &lt;strong&gt;&lt;u&gt;Stack Panel&lt;/u&gt;&lt;/strong&gt; . Stack Panel can be used to arrange the contents either Horizontally or Vertically. The &lt;strong&gt;&lt;u&gt;default alignment&lt;/u&gt;&lt;/strong&gt; of the contents using Stack Panel is &lt;strong&gt;&lt;u&gt;Vertical&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;2) If you are using the same project like I am doing in this demo, please comment out the Grid code and start typing the bellow code in Page.xaml-&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;FirstSLApplication.Page&quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;400&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;300&quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;LayoutRoot&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Black&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;ShowGridLines&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;True&quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;RowDefinition &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;*&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Vertical&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;0&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Top&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Center&quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;100&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Red&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;100&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Green&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;100&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Blue&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Horizontal&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;1&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Center&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Center&quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;100&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Yellow&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;100&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Wheat&quot;/&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;50&quot;  &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;100&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;BurlyWood&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;u&gt;&lt;/u&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;3) Once you are done, hit F5 to test the application of Silverlight 2.0.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;If you observe above code, we are actually &lt;strong&gt;&lt;u&gt;using Stack Panel within Grid Panel&lt;/u&gt;&lt;/strong&gt; !! &lt;strong&gt;&lt;u&gt;Exciting&lt;/u&gt;&lt;/strong&gt; !!&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;u&gt;Note : If you want to Create new project, please follow the steps to create a new project of Silverlight Or modify the existing one. I am modifying existing one.&lt;/u&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;1) Now let’s have a look on &lt;strong&gt;&lt;u&gt;Canvas Panel&lt;/u&gt;&lt;/strong&gt;. Unlike Grid Panel Or Stack Panel Canvas allows us to place the contents as per our flexibility. So, when we use Canvas for content alignment, we have to remember few properties.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;2) First property is : &lt;strong&gt;Canvas.Left&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;3) Second Property is : &lt;strong&gt;Canvas.Top&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;4) If you are using the same project like I am doing in this demo, please comment out the Grid code and start typing the bellow code in Page.xaml.&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;FirstSLApplication.Page&quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;400&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;300&quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Canvas &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Black&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;LayoutRoot&quot;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;200&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;15&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;AliceBlue&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;200&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;40&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;AntiqueWhite&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;200&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;65&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Aqua&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;200&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;90&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Aquamarine&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;200&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;115&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Azure&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;200&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;140&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Beige&quot;/&amp;gt;&lt;br /&gt;        &lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;175&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;15&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;BlanchedAlmond&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;150&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;15&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Blue&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;125&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;15&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;BlueViolet&quot;/&amp;gt;&lt;br /&gt;        &lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;225&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;15&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;BurlyWood&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;250&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;15&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Yellow&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Ellipse &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Left&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;275&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Canvas.Top&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;15&quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;Gold&quot;/&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Canvas&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;5) Once you are done, hit F5 to test the application of Silverlight 2.0.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now as you have completed writing the third Silverlight Lab, let’s have few controls introduction and continue with our third Lab – “&lt;strong&gt;&lt;u&gt;Introduction to Layouts &amp;amp; Controls in Silverlight 2.0.&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;  </description><link>http://pkrd.blogspot.com/2009/05/introduction-to-layouts-controls-in.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/ShPuB_EpM6I/AAAAAAAAAEg/L0apfdSHW_s/s72-c/AddImage_thumb2.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6879201915693495054.post-4235717041348640346</guid><pubDate>Wed, 20 May 2009 11:45:00 +0000</pubDate><atom:updated>2009-05-20T04:45:25.541-07:00</atom:updated><title>Using Microsoft Expression Blend 2.0 to Design Silverlight 2.0 applications.</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;In this second Lab we will have a closer look on &lt;strong&gt;&lt;u&gt;Microsoft Expression Blend 2.0&lt;/u&gt;&lt;/strong&gt; to create Silverlight 2.0 Application.&lt;/p&gt;  &lt;p&gt;As most of you might be knowing that, this tool is majorly used by Designers. To have a better &lt;strong&gt;&lt;u&gt;collaboration between Developer &amp;amp; Designer&lt;/u&gt;&lt;/strong&gt; Microsoft has released &lt;strong&gt;&lt;u&gt;Microsoft Expression Blend 2.0&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;However make one note that if you are designing Silverlight 2.0 application by using Microsoft Expression Blend 2.0, you must first install &lt;strong&gt;&lt;u&gt;Microsoft Expression Blend 2.0 SP1&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=EB9B5C48-BA2B-4C39-A1C3-135C60BBBE66&amp;amp;displaylang=en&quot; href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=EB9B5C48-BA2B-4C39-A1C3-135C60BBBE66&amp;amp;displaylang=en&quot;&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=EB9B5C48-BA2B-4C39-A1C3-135C60BBBE66&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So, Let’s get started with Expression Blend !!&lt;/p&gt;  &lt;p&gt;1) Open Microsoft Expression Blend 2.0 and make a choice of Silverlight 2.0 application as below-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPtLK9i6xI/AAAAAAAAADk/Hn4MNCd3I4U/s1600-h/BlendSLCrProj%5B3%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;BlendSLCrProj&quot; border=&quot;0&quot; alt=&quot;BlendSLCrProj&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPtMNaMSPI/AAAAAAAAADo/cs3sMlLJcng/BlendSLCrProj_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;512&quot; height=&quot;361&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;2) Specify application name as &lt;strong&gt;SLBlendFirstApp&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;3) Now let’s see the different windows and a tool box which is available with Microsoft Expression Blend.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPtMsZjyPI/AAAAAAAAADs/PXHX9l78fQA/s1600-h/BlendWindows4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;BlendWindows&quot; border=&quot;0&quot; alt=&quot;BlendWindows&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPtNhDkLZI/AAAAAAAAADw/elzFtyZnoHg/BlendWindows_thumb2.jpg?imgmax=800&quot; width=&quot;434&quot; height=&quot;280&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Following are the four different windows –:&lt;/p&gt;  &lt;p&gt;i) &lt;strong&gt;&lt;u&gt;Interaction window&lt;/u&gt;&lt;/strong&gt; : It contents Two parts one is &lt;strong&gt;&lt;u&gt;States&lt;/u&gt;&lt;/strong&gt; and other is &lt;strong&gt;&lt;u&gt;Objects and Timeline&lt;/u&gt;&lt;/strong&gt;. State is nothing but a V&lt;strong&gt;&lt;u&gt;isual State Manager&lt;/u&gt;&lt;/strong&gt; to control the &lt;strong&gt;&lt;u&gt;look and Feel&lt;/u&gt;&lt;/strong&gt; of Silverlight controls which will appear on the screen. We will have a closer look on &lt;strong&gt;&lt;u&gt;Creating Visual States&lt;/u&gt;&lt;/strong&gt; latter.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;strong&gt;&lt;u&gt;Object and Timeline&lt;/u&gt;&lt;/strong&gt; : it shows you what are all objects you have it on Silverlight Page and even it allows you to &lt;strong&gt;&lt;u&gt;create&lt;/u&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;u&gt;modify&lt;/u&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;u&gt;delete&lt;/u&gt;&lt;/strong&gt; &lt;u&gt;Story&lt;/u&gt;&lt;strong&gt; &lt;u&gt;Boards &lt;/u&gt;&lt;/strong&gt;(Animation), &lt;strong&gt;&lt;u&gt;Edit&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;Styles&lt;/u&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;u&gt;create&lt;/u&gt;&lt;/strong&gt; &lt;u&gt;&lt;strong&gt;styles&lt;/strong&gt;&lt;/u&gt;, &lt;strong&gt;&lt;u&gt;Create&lt;/u&gt;&lt;/strong&gt; &lt;strong&gt;&lt;u&gt;Templates&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;ii) &lt;strong&gt;&lt;u&gt;Project Window&lt;/u&gt;&lt;/strong&gt; : Similar to your solution explorer in VS 2008.&lt;/p&gt;  &lt;p&gt;iii) &lt;strong&gt;&lt;u&gt;Properties Window&lt;/u&gt;&lt;/strong&gt; : Allows you to modify properties of controls.&lt;/p&gt;  &lt;p&gt;iv) &lt;strong&gt;&lt;u&gt;Resources&lt;/u&gt;&lt;/strong&gt; : Allows you to manage resources at Page Level or Application Level.&lt;/p&gt;  &lt;p&gt;4) Now let’s have a look at Tool box –:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPtOObVVcI/AAAAAAAAAD0/utNNvLKJB28/s1600-h/ToolBoxBlend4.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;ToolBoxBlend&quot; border=&quot;0&quot; alt=&quot;ToolBoxBlend&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPtPECq0RI/AAAAAAAAAD4/SgRFyFW3Z2Q/ToolBoxBlend_thumb2.jpg?imgmax=800&quot; width=&quot;70&quot; height=&quot;300&quot; /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Now you can have a closer look on the tools and controls which are available. If you want to see more controls, Click Asset Library.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPtPjj0j6I/AAAAAAAAAD8/j3JMuGX8W8o/s1600-h/AssetLib2.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;AssetLib&quot; border=&quot;0&quot; alt=&quot;AssetLib&quot; src=&quot;http://lh6.ggpht.com/_iHADNmOcn6M/ShPtQa_1HmI/AAAAAAAAAEA/P-34g5TkMG8/AssetLib_thumb.jpg?imgmax=800&quot; width=&quot;103&quot; height=&quot;65&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;5) Now, let’s work as a Designer and build some nice &lt;strong&gt;&lt;u&gt;UX (User Experience)&lt;/u&gt;&lt;/strong&gt; using &lt;strong&gt;&lt;u&gt;Expression Blend 2.0&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;6) Make a choice of &lt;strong&gt;&lt;u&gt;LayoutRoot&lt;/u&gt;&lt;/strong&gt; from Objects and Timeline window. Go to property window and make a choice of background property with &lt;strong&gt;&lt;u&gt;Gradient Brush&lt;/u&gt;&lt;/strong&gt; as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPtQ8nRPZI/AAAAAAAAAEE/mNx9sJcfTEw/s1600-h/BGColor%5B3%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;BGColor&quot; border=&quot;0&quot; alt=&quot;BGColor&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPtRguSDEI/AAAAAAAAAEI/scAcTL9nE7o/BGColor_thumb%5B2%5D.jpg?imgmax=800&quot; width=&quot;481&quot; height=&quot;324&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;7) You can Brush Transform to transform the colours as per your need. If you want you can change the colours which are in ARGB (Alpha, Red, Green, Blue) format.&lt;/p&gt;  &lt;p&gt;8) Now design a screen like bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/_iHADNmOcn6M/ShPtSnlTL1I/AAAAAAAAAEM/1d62IyB_P_I/s1600-h/BlendOutput%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;BlendOutput&quot; border=&quot;0&quot; alt=&quot;BlendOutput&quot; src=&quot;http://lh3.ggpht.com/_iHADNmOcn6M/ShPtTUhaoHI/AAAAAAAAAEQ/bpSV5XzeZmo/BlendOutput_thumb%5B1%5D.jpg?imgmax=800&quot; width=&quot;473&quot; height=&quot;356&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;When you design the screen like above, &lt;strong&gt;Expression Blend&lt;/strong&gt; will automatically generate the&lt;strong&gt;&lt;u&gt; XAML&lt;/u&gt;&lt;/strong&gt; code for you.&lt;/p&gt;  &lt;p&gt;10) Now, the final step is writing some logic on the Click Event of the Button which you can not do by using Microsoft Expression Blend 2.0. So, for that follow the bellow steps and complete your application -&lt;/p&gt;  &lt;p&gt;11) In Project window of Expression Blend, Right Click to Project/Solution and make a choice of context menu to Edit in Visual Studio as shown bellow-&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPtUKLImkI/AAAAAAAAAEU/0z-qld8l_z4/s1600-h/EditInVS08%5B1%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;EditInVS08&quot; border=&quot;0&quot; alt=&quot;EditInVS08&quot; src=&quot;http://lh4.ggpht.com/_iHADNmOcn6M/ShPtU5cVObI/AAAAAAAAAEY/pMF-eEMY0mA/EditInVS08_thumb.jpg?imgmax=800&quot; width=&quot;512&quot; height=&quot;308&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;12) Once you do that, In visual studio, open Page.xaml and locate you Login button. Hook up a click event to the button and write a logic which you are suppose to write to finish the application.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;60&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Margin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;280.457,0,145.543,74&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Bottom&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Login Now !!&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;FontSize&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;14&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;RenderTransformOrigin&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;0.5,0.5&amp;quot; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Click&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;Button_Click&amp;quot;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;13) Once you are done, hit F5 to test the First application of Silverlight 2.0. &lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now as you have completed the second lab, let’s start with our third Lab – “&lt;strong&gt;&lt;u&gt;Introduction to Layouts &amp;amp; Controls in Silverlight 2.0&lt;/u&gt;&lt;/strong&gt;”&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;  </description><link>http://pkrd.blogspot.com/2009/05/using-microsoft-expression-blend-20-to.html</link><author>noreply@blogger.com (Pravinkumar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_iHADNmOcn6M/ShPtMNaMSPI/AAAAAAAAADo/cs3sMlLJcng/s72-c/BlendSLCrProj_thumb%5B2%5D.jpg?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item></channel></rss>