<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silverlight Ace</title>
	<atom:link href="http://www.silverlightace.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silverlightace.com</link>
	<description></description>
	<lastBuildDate>Mon, 25 Apr 2011 02:07:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Silverlight for Windows Phone  7</title>
		<link>http://www.silverlightace.com/2010/03/silverlight-for-windows-phone-7/</link>
		<comments>http://www.silverlightace.com/2010/03/silverlight-for-windows-phone-7/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 11:13:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=60</guid>
		<description><![CDATA[Silverlight is likely to be the main development platform for Windows Phone OS.]]></description>
			<content:encoded><![CDATA[<p>Silverlight is likely to be the main development platform for Windows  Phone OS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/03/silverlight-for-windows-phone-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started with Silverlight in SharePoint 2010</title>
		<link>http://www.silverlightace.com/2010/03/getting-started-with-silverlight-in-sharepoint-2010/</link>
		<comments>http://www.silverlightace.com/2010/03/getting-started-with-silverlight-in-sharepoint-2010/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 11:11:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=57</guid>
		<description><![CDATA[Silverlight integration is already included in SharePoint 2010 – when you try to create a new list, library, discussion board or a simple page  without Silverlight installed  you will find the traditional SharePoint Create page. [SharepointMonitor.com]]]></description>
			<content:encoded><![CDATA[<p>Silverlight integration is already included in  SharePoint 2010 – when you try to create a new list, library, discussion  board or a simple page  without Silverlight installed  you will find  the traditional SharePoint Create page. [SharepointMonitor.com] </p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/03/getting-started-with-silverlight-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 &#8211; HtmlBrush</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-htmlbrush/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-htmlbrush/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 09:31:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[HtmlBrush]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=54</guid>
		<description><![CDATA[Silverlight&#8217;s HtmlBrush is an alternative to the WebBrowser control for displaying HTML content in Silverlight app. There are two primary differences between the HtmlBrush and WebBrowser controls : WebBrowser can display &#8220;live&#8221; content, whereas the HtmlBrush only display static html &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-htmlbrush/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Silverlight&#8217;s HtmlBrush is an alternative to the <a href="http://www.silverlightace.com/2010/02/silverlight-4-0-webbrowser-control/">WebBrowser control</a> for displaying HTML content in Silverlight app. There are two primary differences between the HtmlBrush and WebBrowser controls :</p>
<ol>
<li>WebBrowser can display &#8220;live&#8221; content, whereas the HtmlBrush only display static html content</li>
<li>HtmlBrush can have transforms applied to it, so for visual effects this is the control of choice.</li>
</ol>
<p>The below sample shows how to paint a simple rectangle with the HtmlBrush:</p>
<p>You can render HTML content with HtmlBrush, too. The following XAML snippet &#8216;paints&#8217; a Rectangle with an HTML page.</p>
<p>&lt;WebBrowser Name=&#8221;demoWB&#8221; Source=&#8221;/silverlightace.htm&#8221;  /&gt;<br />
&lt;Rectangle Canvas.Left=&#8221;1&#8243; Canvas.Top=&#8221;20&#8243; Height=&#8221;100&#8243; Width=&#8221;100&#8243;&gt;<br />
&lt;Rectangle.Fill&gt;<br />
&lt;HtmlBrush SourceName=&#8221;demoWB&#8221; x:Name=&#8221;demoBrush&#8221; /&gt;<br />
&lt;/Rectangle.Fill&gt;<br />
&lt;/Rectangle&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-htmlbrush/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4.0 &#8211; WebBrowser Control</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-0-webbrowser-control/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-0-webbrowser-control/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 06:04:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[WebBrowser]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=49</guid>
		<description><![CDATA[Silverlight is still a maturing technology not suitable for every purpose. As such, hybrid applications are often developed where a Silverlight element is embedded in an HTML page. However, this was obviously not an option for out-of-browser Silverlight applications. The &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-0-webbrowser-control/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Silverlight is still a maturing technology not suitable for every purpose. As such, hybrid applications are often developed where a Silverlight element is embedded in an HTML page. However, this was obviously not an option for out-of-browser Silverlight applications.</p>
<p>The new WebBrowser control allows for an HTML element to be embedded in a Silverlight application when the app is running out-of-browser. This is an important addition for several scenario&#8217;s &#8211; for example migrating an ASP.NET application to Silverlight can be done in stages as some of the ASP.NET code can be run and accessed from the WebBrowser control.</p>
<p>The WebBrowser control is a relatively simple one and contains the following properties:</p>
<ul>
<li><em><strong>Source &#8211; </strong></em>Gets or sets the URI which is rendered in the WebBrowser control</li>
<li><em><strong>Navigate</strong></em>: &#8211; Sets the URI to be loaded in the WebBrowser control (identical to the Source property)</li>
<li><em><strong>NavigateToString</strong></em>: &#8211; Displays on-the-fly generated HTML. This can be done using this method.</li>
</ul>
<p>The syntax for the WebBrowser control is shown below:</p>
<div id="codeSnippetWrapper">
<div id="codeSnippet">
<pre>&lt;WebBrowser x:Name="DemoBrowser"   Width="1000" Height="800"&gt;&lt;/WebBrowser&gt;</pre>
<p><!--CRLF--></p>
</div>
</div>
<p>To set the URI use the following code:</p>
<pre>DemoBrowser.Navigate(new Uri("URIstring"));</pre>
<p>It is important to note that unless the Silverlight application has elevated trust the WebBrowser will only show HTML from the same domain as the app (a workaround this is to use an iframe to redirect to a page on another domain).</p>
<p>An alternative to the WebBrowser control is the <a href="http://www.silverlightace.com/2010/02/silverlight-4-htmlbrush/">HtmlBrush Control </a>which paints static HTML into objects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-0-webbrowser-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4.0 &#8211; StringFormat</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-0-stringformat/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-0-stringformat/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 05:05:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[StringFormat]]></category>
		<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=46</guid>
		<description><![CDATA[New to Silverlight 4.0 &#8211; StringFormat provides a simple  solution for databinding in XAML and formatting the output. StringFormat is primarily used to format dates, numbers and currency values. For example, formatting a date in a text box: &#60;TextBox x:Name=&#8221;dummyBox&#8221;  &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-0-stringformat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">New to Silverlight 4.0 &#8211; <strong>StringFormat </strong>provides a simple  solution for databinding in XAML and formatting the output. StringFormat is primarily used to format dates, numbers and currency values.</p>
<p>For example, formatting a date in a text box:</p>
<p>&lt;TextBox x:Name=&#8221;dummyBox&#8221;  Text=&#8221;{Binding Path=PublishedDate, Mode=OneWay, StringFormat=&#8217;MM-dd-yyyy&#8217;}&#8221;/&gt;</p>
<p><strong>TargetNullValue </strong>can be used to set the null value for the control:</p>
<p>&lt;TextBox  x:Name=&#8221;dummyBox&#8221;   Text=&#8221;{Binding Path=QuantityOnHand, Mode=TwoWay, TargetNullValue=0}&#8221; /&gt;</p>
<p>Alternatively a <strong>FallBackValue </strong>can be set:</p>
<p>&lt;TextBox  x:Name=&#8221;dummyBox&#8221;  Text=&#8221;{Binding Path=SomeBindingValue, Mode=TwoWay, FallbackValue=N/A}&#8221; /&gt;</p>
<p>The FallbackValue displays a value when the binding operation is unsuccessful, where the TargetNullValue helps provide a value when the result of the binding value is NULL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-0-stringformat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 &#8211; WebCam Support</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-webcam-support/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-webcam-support/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 05:04:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[WebCam]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=43</guid>
		<description><![CDATA[Silverlight 4 introduces WebCam support which is probably the highlight of the Silverlight 4 release. The WebCam API is relatively simple to use, a webcam can be added, video captured and placed on the screen using the following procedure: WebCam &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-webcam-support/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Silverlight 4 introduces WebCam support which is probably the highlight of the Silverlight 4 release. The WebCam API is relatively simple to use, a webcam can be added, video captured and placed on the screen using the following procedure:</p>
<h2>WebCam Video Capture Procedure</h2>
<ol>
<li>Add a rectangle plus a button.</li>
<li>Get a handle on the video capture device using CaptureDeviceConfiguration.</li>
<li>Request access to the WebCam using CaptureDeviceConfiguration.RequestDeviceAccess().</li>
<li>After the user clicks Yes at the prompt , create a  CaptureSource  object and set the  VideoCaptureDevice  to the selected webcam.</li>
<li>Create a  VideoBrush and set its source.
 </li>
<li>Start the WebCam.</li>
<li>Fill the Rectangle.</li>
</ol>
<h2>Code for WebCam Video Capture</h2>
<p>//access the WebCam<br />
VideoCaptureDevice webcamObj = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();</p>
<p>//user confirmation clips<br />
if (CaptureDeviceConfiguration.RequestDeviceAccess())</p>
<p>CaptureSource captureSourceObj = new CaptureSource();<br />
captureSourceObj.VideoCaptureDevice = webcamObj;</p>
<p>VideoBrush videoBrushObj = new VideoBrush();<br />
videoBrushObj.SetSource(captureSourceObj);<br />
videoBrushObj.Stretch = Stretch.UniformToFill;</p>
<p>//start WebCam<br />
videoBrushObj.Start();</p>
<p>//fill the rectangle with the video<br />
this.MyVideo.Fill = videoBrushObj;</p>
<p>This code only works for a single WebCam but  CaptureDeviceConfiguration.GetAvailableVideoCaptureDevices  will return a list of all available webcams.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-webcam-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 &#8211; Clipboard Access</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-clipboard-access/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-clipboard-access/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 01:52:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Clipboard]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=38</guid>
		<description><![CDATA[Silverlight 4 introduces a new API for accessing the  clipboard through  3 static methods &#8211; GetText(), SetText(), ContainsText() . Using these methods is very simple, for example to test if there is anything on the clipboard and then paste it &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-clipboard-access/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Silverlight 4 introduces a new API for accessing the  clipboard through  3 static methods &#8211; GetText(), SetText(), ContainsText() . Using these methods is very simple, for example to test if there is anything on the clipboard and then paste it to a text box.</p>
<p>if (Clipboard.ContainsText())</p>
<p>{</p>
<p>txtText.Text = Clipboard.GetText();<br />
}</p>
<p>To place text on the clipboard:</p>
<p>Clipboard.SetText(txtText.Text);</p>
<p>Silverlight can only access the clipboard  from a user initiated action (such as from the mouse or keyboard) after performing this action the user is prompted to acknowledge the app is accessing the clipboard, this occurs only once per session.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-clipboard-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 &#8211; Out of Browser Features</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-out-of-browser-features/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-out-of-browser-features/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 12:25:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Out of Browser]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=15</guid>
		<description><![CDATA[Silverlight 4 introduces several new features for out-of-browser applications that are not available to browser-based applications, namely: New window features including run-time resizing and always on top capability. Offline digital rights management (DRM). HTML hosting with the WebBrowser control. Popup &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-out-of-browser-features/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a>Silverlight 4 introduces several new features for out-of-browser applications that are not available  to browser-based applications, namely:</a></p>
<ul>
<li>New window features  including run-time resizing and always on top capability.</li>
<li>Offline digital rights management (DRM).</li>
<li>HTML hosting with the WebBrowser control.</li>
<li>Popup notifications using the NotificationWindow class.</li>
<li>Elevated trust support.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-out-of-browser-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 &#8211; Detecting Elevated Trust</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-detecting-elevated-trust/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-detecting-elevated-trust/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:30:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Elevated Permissions]]></category>
		<category><![CDATA[Elevated Trust]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=30</guid>
		<description><![CDATA[Elevated Trust is a new feature in Silverlight 4 which allows Silverlight apps to be run with fewer security restrictions. To check whether an app is  running in elevated trust  use the HasElevatedPermissions property. If an app requires elevated trust, &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-detecting-elevated-trust/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a>Elevated Trust is a new feature in Silverlight 4 which allows Silverlight apps to be run with fewer security restrictions. To check whether an app is  running in elevated trust  use the </a>HasElevatedPermissions property.</p>
<p>If an app requires elevated trust, users must  first consent before installing the application for out-of-browser use. Thus you will not normally have to detect whether an app is  running in elevated trust. Instead, you can simply check if an app is running outside of the browser by checking the Application.IsRunningOutOfBrowser property.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-detecting-elevated-trust/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 &#8211; Local File Access</title>
		<link>http://www.silverlightace.com/2010/02/silverlight-4-local-file-access/</link>
		<comments>http://www.silverlightace.com/2010/02/silverlight-4-local-file-access/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:19:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[File Access]]></category>

		<guid isPermaLink="false">http://www.silverlightace.com/?p=25</guid>
		<description><![CDATA[In Silverlight 4  apps which run with Elevated Trust can access local files by using System.IO and related types that would otherwise be unavailable. This allows apps  to access user files directly without recourse to the OpenFileDialog and SaveFileDialog classes. &#8230; <a href="http://www.silverlightace.com/2010/02/silverlight-4-local-file-access/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div>
<p>In Silverlight 4  apps which run with Elevated Trust can access local files by using System.IO and related  types that would otherwise be unavailable. This allows apps  to access user files  directly without recourse to the OpenFileDialog and  SaveFileDialog classes. However,  access is limited to the the  MyDocuments, MyPictures,MyMusic,  and MyVideos folders.</p>
<p>Use the local file access APIs in the same way as the  desktop framework, but use the values of the System.Environment..SpecialFolder enumeration to create the paths. For example:</p>
<pre>private void TestLocalFileAccess()
{
    if (Application.Current.HasElevatedPermissions)
    {
        string myDocuments = Environment.GetFolderPath(
            Environment.SpecialFolder.MyDocuments);
        string filenamestr = "testfile.txt";
        string pathstr = System.IO.Path.Combine(myDocuments, filenamestr);
        if (File.Exists(pathstr))
        {
            string contents = File.ReadAllText(pathstr);
            MessageBox.Show(contents);
        }
    }
}
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightace.com/2010/02/silverlight-4-local-file-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

