<?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>Ignore the man behind the curtain &#187; Silverlight</title>
	<atom:link href="http://brianseekford.com/index.php/category/net-development/silverlight-net-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://brianseekford.com</link>
	<description>Software engineering in a .NET world</description>
	<lastBuildDate>Wed, 22 May 2013 14:31:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>CommunicationException with Silverlight and a cross domain call</title>
		<link>http://brianseekford.com/index.php/2010/12/04/communicationexception-with-silverlight-and-a-cross-domain-call/</link>
		<comments>http://brianseekford.com/index.php/2010/12/04/communicationexception-with-silverlight-and-a-cross-domain-call/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 04:15:36 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[.NET Development]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[call]]></category>
		<category><![CDATA[clientaccesspolicy.xml]]></category>
		<category><![CDATA[cross domain]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=439</guid>
		<description><![CDATA[You are calling your services from Silverlight but the services are accessed via a different URI than the Silverlight application is being hosted. Errors galore, right?  Silverlight honors the protection that helps mitigate a sites scripts from being called if someone simply copied your app to their server.  The error you get is this:  An [...]]]></description>
				<content:encoded><![CDATA[<p>You are calling your services from Silverlight but the services are accessed via a different URI than the Silverlight application is being hosted. Errors galore, right? </p>
<p>Silverlight honors the protection that helps mitigate a sites scripts from being called if someone simply copied your app to their server. </p>
<p>The error you get is this: </p>
<p>An error occurred while trying to make a request to URI &#8216;http://localhost.:2935/Services/UserService.svc&#8217;. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details. </p>
<p>This error is very easily fixed. </p>
<p>Create a file in you web root. Must be the root called <strong>clientaccesspolicy.xml</strong> . It must be named exactly and must live in the root. </p>
<p>File: <strong>clientaccesspolicy.xml</strong></p>
<p>Now, copy this into the file: </p>
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;access-policy&gt;
  &lt;cross-domain-access&gt;
    &lt;policy&gt;
      &lt;allow-from http-request-headers="SOAPAction"&gt;
        &lt;domain uri="*"/&gt;
      &lt;/allow-from&gt;
      &lt;grant-to&gt;
        &lt;resource path="/" include-subpaths="true"/&gt;
      &lt;/grant-to&gt;
    &lt;/policy&gt;
  &lt;/cross-domain-access&gt;
&lt;/access-policy&gt;</pre>
<p>Save it, rebuild and run. Voila, you should now be up and running. If you need more info, check this helpful link. </p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/12/04/communicationexception-with-silverlight-and-a-cross-domain-call/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fiddler and Silverlight with the localhost, how to debug WCF failures!</title>
		<link>http://brianseekford.com/index.php/2010/12/04/fiddler-and-silverlight-with-the-localhost-how-to-debug-wcf-failures/</link>
		<comments>http://brianseekford.com/index.php/2010/12/04/fiddler-and-silverlight-with-the-localhost-how-to-debug-wcf-failures/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 04:04:44 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[failure]]></category>
		<category><![CDATA[fiddler]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=437</guid>
		<description><![CDATA[If you use Silverlight and you are trying to look at why service calls are failing, you will want to use Fiddler to see what is actually going on. Is the request going through, is the server returning an error. Since Silverlight always gives the same crappy error, Endpoint not found or something similair, then [...]]]></description>
				<content:encoded><![CDATA[<p>If you use Silverlight and you are trying to look at why service calls are failing, you will want to use Fiddler to see what is actually going on. Is the request going through, is the server returning an error. Since Silverlight always gives the same crappy error, Endpoint not found or something similair, then looking at the actual raw request responses is pretty helpful.</p>
<p>So you turn on Fiddler, but no requests appear? Well, some strange issues, with a long explanation, about using localhost don&#8217;t get logged into Fiddler. The trick is to rename your service references to localhost. Yes, simply add the .</p>
<p>Just make sure you type that URL the same way into your browser, otherwise you get a cross domain call issue. That is the subject for the next quick post.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/12/04/fiddler-and-silverlight-with-the-localhost-how-to-debug-wcf-failures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight and WPF Boolean Not Converter&#8230;To be or NOT to be</title>
		<link>http://brianseekford.com/index.php/2010/12/02/silverlight-and-wpf-boolean-not-converterto-be-or-not-to-be/</link>
		<comments>http://brianseekford.com/index.php/2010/12/02/silverlight-and-wpf-boolean-not-converterto-be-or-not-to-be/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 16:23:20 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[boolean]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2010/12/02/silverlight-and-wpf-boolean-not-converterto-be-or-not-to-be/</guid>
		<description><![CDATA[So you have an IsReadOnly flag on your viewmodel, but you want to set the IsEnabled property on control. A conundrum for a binding, right. Well, simple solution to an annoying problem. Use the converter below on your binding and it becomes opposite day. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; &#160; [...]]]></description>
				<content:encoded><![CDATA[<p style="line-height: normal; margin-bottom: 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" class="MsoNormal"><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">So you have an IsReadOnly flag on your viewmodel, but you want to set the IsEnabled property on control. A conundrum for a binding, right.</span></font></p>
<p style="line-height: normal; margin-bottom: 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" class="MsoNormal"><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">Well, simple solution to an annoying problem. Use the converter below on your binding and it becomes opposite day.</span></font></p>
<p style="line-height: normal; margin-bottom: 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" class="MsoNormal"><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"></span></font></p>
<p style="line-height: normal; margin-bottom: 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" class="MsoNormal"><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">using</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"> System;        <br /></span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">using</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"> System.Collections.Generic;        <br /></span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">using</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"> System.Linq;        <br /></span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">using</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"> System.Text;        <br /></span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">using</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"> System.Windows.Data;        <br /><span style="mso-spacerun: yes">&#160;</span>         <br /></span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">namespace</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"> Seekford{        <br />&#160;&#160;&#160; </span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">public</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">&#160;</span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">class</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">&#160;</span></font><font color="#2b91af" size="2" face="Consolas"><span style="font-family: consolas; color: #2b91af; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">BooleanNotConverter</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch"> : </span></font><font color="#2b91af" size="2" face="Consolas"><span style="font-family: consolas; color: #2b91af; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">IValueConverter</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">        <br />&#160;&#160;&#160; {         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">//easy peezy.</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: de-ch; mso-fareast-language: de-ch">        <br /><span style="mso-spacerun: yes">&#160;</span>         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;summary&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> Converts a value.</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/summary&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;value&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The value produced by the binding source.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;targetType&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The type of the binding target property.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;parameter&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The converter parameter to use.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;culture&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The culture to use in the converter.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;returns&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> A converted value. If the method returns null, the valid null value is used.</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/returns&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">public</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">object</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> Convert(</span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">object</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> value, </span></font><font color="#2b91af" size="2" face="Consolas"><span style="font-family: consolas; color: #2b91af; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">Type</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> targetType, </span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">object</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> parameter, System.Globalization.</span></font><font color="#2b91af" size="2" face="Consolas"><span style="font-family: consolas; color: #2b91af; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">CultureInfo</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> culture)        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">return</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> !(</span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">bool</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">)value;        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }         <br /><span style="mso-spacerun: yes">&#160;</span>         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;summary&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> Converts a value.</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/summary&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;value&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The value that is produced by the binding target.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;targetType&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The type to convert to.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;parameter&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The converter parameter to use.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;param name=&quot;culture&quot;&gt;</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">The culture to use in the converter.</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/param&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;returns&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> A converted value. If the method returns null, the valid null value is used.</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">///</span></font><font color="#008000" size="2" face="Consolas"><span style="font-family: consolas; color: green; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#808080" size="2" face="Consolas"><span style="font-family: consolas; color: gray; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&lt;/returns&gt;</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">public</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">&#160;</span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">object</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> ConvertBack(</span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">object</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> value, </span></font><font color="#2b91af" size="2" face="Consolas"><span style="font-family: consolas; color: #2b91af; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">Type</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> targetType, </span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">object</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> parameter, System.Globalization.</span></font><font color="#2b91af" size="2" face="Consolas"><span style="font-family: consolas; color: #2b91af; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">CultureInfo</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> culture)        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">return</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US"> !(</span></font><font color="#0000ff" size="2" face="Consolas"><span style="font-family: consolas; color: blue; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">bool</span></font><font color="#000000" size="2" face="Consolas"><span style="font-family: consolas; color: windowtext; font-size: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Courier New&#39;; mso-ansi-language: en-us; mso-fareast-language: de-ch" lang="EN-US">)value;        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }         <br /><span style="mso-spacerun: yes">&#160;</span>         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; }         <br />} </span>
</p>
<p>   </font></p>
</p>
<p class="MsoBodyText"><font size="2" face="Arial"><span style="font-size: 10.5pt" lang="EN-GB"></span>
<p>&#160;</p>
<p>   </font></p>
</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/12/02/silverlight-and-wpf-boolean-not-converterto-be-or-not-to-be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silveright 4 RelativeSource Binding with FindAncestor</title>
		<link>http://brianseekford.com/index.php/2010/11/30/silveright-4-relativesource-binding-with-findancestor/</link>
		<comments>http://brianseekford.com/index.php/2010/11/30/silveright-4-relativesource-binding-with-findancestor/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 04:24:51 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[DataContext]]></category>
		<category><![CDATA[FindAncestor]]></category>
		<category><![CDATA[RelativeSource]]></category>
		<category><![CDATA[SL4]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=433</guid>
		<description><![CDATA[The bad news. The folks at Microsoft still haven&#8217;t developed the FindAncestor relative source binding into SL4. The good news, I find a guy that was resourceful enough to write his own. Please check out this great article. The source code is at the bottom of the article. You just need to extract the classes [...]]]></description>
				<content:encoded><![CDATA[<p>The bad news. The folks at Microsoft still haven&#8217;t developed the FindAncestor relative source binding into SL4. The good news, I find a guy that was resourceful enough to write his own.</p>
<p>Please check out this great article. The source code is at the bottom of the article. You just need to extract the classes out and put into your own project. Took me about 5 minutes.</p>
<p><a href="http://blog.thekieners.com/2010/09/08/relativesource-binding-with-findancestor-mode-in-silverlight/">http://blog.thekieners.com/2010/09/08/relativesource-binding-with-findancestor-mode-in-silverlight/</a></p>
<p>I am testing it out more tonight, but seems to do the trick. So much nicer to now have my item template be able to reach the parent context.</p>
<p>Oh, and he even made the greatest simple addition. It has the built in feature to auto search for the nearest DIFFERENT datacontext. How great is that? Makes the xaml def even easier to write.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/11/30/silveright-4-relativesource-binding-with-findancestor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight Auto Select for TextBox &#8211; Attached Behavior</title>
		<link>http://brianseekford.com/index.php/2010/11/04/silverlight-auto-select-for-textbox-attached-behavior/</link>
		<comments>http://brianseekford.com/index.php/2010/11/04/silverlight-auto-select-for-textbox-attached-behavior/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 19:14:50 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[attached property]]></category>
		<category><![CDATA[autoselect]]></category>
		<category><![CDATA[behavior]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[textbox]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2010/11/04/silverlight-auto-select-for-textbox-attached-behavior/</guid>
		<description><![CDATA[I was looking for a way to make a textbox highlight itself when clicked. Makes for easier user input when you defaulted values and saves them from having to delete them and then enter their own text. I know, rare for developers to care what the user&#8217;s experience is like. ha. Anyway, I was just [...]]]></description>
				<content:encoded><![CDATA[<p>I was looking for a way to make a textbox highlight itself when clicked. Makes for easier user input when you defaulted values and saves them from having to delete them and then enter their own text. I know, rare for developers to care what the user&#8217;s experience is like. ha. </p>
<p>Anyway, I was just about to write my own behavior when I found this one. It was written for Silverlight 3 but works fine in Silverlight 4. </p>
<p>&#160;</p>
<p>Check out his article, much more detailed than I would write.</p>
<p>&#160;<a href="http://dnchannel.blogspot.com/2010/01/silverlight-3-auto-select-text-in.html" target="_blank">http://dnchannel.blogspot.com/2010/01/silverlight-3-auto-select-text-in.html</a> </p>
<p>&#160;</p>
<p>Happy Coding! </p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/11/04/silverlight-auto-select-for-textbox-attached-behavior/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Config file issue to make you rip hair out</title>
		<link>http://brianseekford.com/index.php/2010/08/10/config-file-issue-to-make-you-rip-hair-out/</link>
		<comments>http://brianseekford.com/index.php/2010/08/10/config-file-issue-to-make-you-rip-hair-out/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 22:06:23 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fault]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=365</guid>
		<description><![CDATA[I spent about 2 hours staring at this lovely cryptic error: Extension element &#8216;silverlightFaults&#8217; cannot be added to this element.  Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions I had it setup correctly, but why would the system not compile it? This was the registration: &#60;add name="silverlightFaults" type="Seekford.SilverlightFaultBehavior.SilverlightFaultBehavior,Seekford.SilverlightFaultBehavior, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7073c134a4dabf61" [...]]]></description>
				<content:encoded><![CDATA[<p>I spent about 2 hours staring at this lovely cryptic error:<br />
Extension element &#8216;silverlightFaults&#8217; cannot be added to this element.  Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions</p>
<p>I had it setup correctly, but why would the system not compile it?</p>
<p>This was the registration:</p>
<pre>
&lt;add name="silverlightFaults"
type="Seekford.SilverlightFaultBehavior.SilverlightFaultBehavior,Seekford.SilverlightFaultBehavior, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7073c134a4dabf61" /&gt;
</pre>
<p>So? What is wrong with this picture? Nothing unless you are an unforgiving parse engine that exists to make life difficult.</p>
<p>I had to add a space. Yes, a space between the class and assembly name and BAM!, it worked.</p>
<pre>
&lt;add name="silverlightFaults"
type="Seekford.SilverlightFaultBehavior.SilverlightFaultBehavior, Seekford.SilverlightFaultBehavior, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7073c134a4dabf61" /&gt;
</pre>
<p>What a pile of #$%!!</p>
<p>Anyway, remember your spacing.</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/08/10/config-file-issue-to-make-you-rip-hair-out/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>DateTimePicker Validation Error Block Calendar Button</title>
		<link>http://brianseekford.com/index.php/2010/08/09/datetimepicker-validation-error-block-calendar-button/</link>
		<comments>http://brianseekford.com/index.php/2010/08/09/datetimepicker-validation-error-block-calendar-button/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 16:47:44 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[datetimepicker]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=363</guid>
		<description><![CDATA[I had a lot of user complaints about the tooltip for the DateTime Picker for Silverlight showing the error tooltip over the Calendar button. It made it so that it was next to impossible to actually select a date, since you couldn&#8217;t click the button. I opened the DateTimePicker template and voila! The tard who [...]]]></description>
				<content:encoded><![CDATA[<p>I had a lot of user complaints about the tooltip for the DateTime Picker for Silverlight showing the error tooltip over the Calendar button. It made it so that it was next to impossible to actually select a date, since you couldn&#8217;t click the button.</p>
<p>I opened the DateTimePicker template and voila! The tard who made such a nice control set the error template to sit next to the TextBox instead of the Button.</p>
<p>Simple fix. Just generate the  DateTimePicker template (Expression Blend) and change the following section:<br />
i.e. Search for ToolTipService.ToolTip</p>
<pre>
&lt;ToolTipService.ToolTip&gt;
&lt;ToolTip x:Name="validationTooltip" Template="{StaticResource CommonValidationToolTipTemplate}" Placement="Right" PlacementTarget="{Binding ElementName=<strong>Button</strong>}" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"&gt;
&lt;ToolTip.Triggers&gt;
&lt;EventTrigger RoutedEvent="Canvas.Loaded"&gt;
&lt;BeginStoryboard&gt;
&lt;Storyboard&gt;
&lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsHitTestVisible"&gt;
&lt;DiscreteObjectKeyFrame KeyTime="0"&gt;
&lt;DiscreteObjectKeyFrame.Value&gt;
&lt;System:Boolean&gt;true&lt;/System:Boolean&gt;
&lt;/DiscreteObjectKeyFrame.Value&gt;
&lt;/DiscreteObjectKeyFrame&gt;
&lt;/ObjectAnimationUsingKeyFrames&gt;
&lt;/Storyboard&gt;
&lt;/BeginStoryboard&gt;
&lt;/EventTrigger&gt;
&lt;/ToolTip.Triggers&gt;
&lt;/ToolTip&gt;
&lt;/ToolTipService.ToolTip&gt;
</pre>
<p>Using Change the above to Button instead of TextBox. Super easy!</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/08/09/datetimepicker-validation-error-block-calendar-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deep Clone objects in Silverlight with simple extension method and Serialization</title>
		<link>http://brianseekford.com/index.php/2010/08/04/deep-clone-objects-in-silverlight-with-simple-extension-method-and-serialization/</link>
		<comments>http://brianseekford.com/index.php/2010/08/04/deep-clone-objects-in-silverlight-with-simple-extension-method-and-serialization/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 11:01:53 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[serialization]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=359</guid>
		<description><![CDATA[I had the need to clone objects to do original vs modified delta checks. I decided that I could either do a lot of work to make copies or go the easy route. As always, smarter over harder prevailed. Here is a simple extension class to put into your infrastructure. Enjoy! using System; using System.IO; [...]]]></description>
				<content:encoded><![CDATA[<p>I had the need to clone objects to do original vs modified delta checks. I decided that I could either do a lot of work to make copies or go the easy route. As always, smarter over harder prevailed.</p>
<p>Here is a simple extension class to put into your infrastructure. Enjoy!</p>
<pre><code>
using System;
using System.IO;
using System.Xml.Serialization;

namespace Seekford.Extensions
{
public static class ObjectCopyMachine
{
/// &lt;summary&gt;
/// Extension to perform a deep Copy of the object specified.
/// &lt;/summary&gt;
/// &lt;typeparam name="T"&gt;The type of object being copied.&lt;/typeparam&gt;
/// &lt;param name="source"&gt;The object instance to copy.&lt;/param&gt;
/// &lt;returns&gt;The copied object.&lt;/returns&gt;
public static T Clone&lt;T&gt;(this T source)
{
if (!typeof(T).IsSerializable)
{
throw new ArgumentException("The type must be serializable.", "source");
}

// Don't serialize a null object, simply return the default for that object
if (Object.ReferenceEquals(source, null))
{
return default(T);
}
XmlSerializer serializer = new XmlSerializer(source.GetType());
Stream stream = new MemoryStream();
using (stream)
{
serializer.Serialize(stream, source);
stream.Seek(0, SeekOrigin.Begin);
return (T)serializer.Deserialize(stream);
}
}
}
}

</code>
</pre>
<p>Now you can just call any object and say. Abracadabra&#8230;&#8230;      myObject.Clone();</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/08/04/deep-clone-objects-in-silverlight-with-simple-extension-method-and-serialization/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamic service endpoint binding for Silverlight using WCF</title>
		<link>http://brianseekford.com/index.php/2010/08/02/dynamic-service-endpoint-binding-for-silverlight-using-wcf/</link>
		<comments>http://brianseekford.com/index.php/2010/08/02/dynamic-service-endpoint-binding-for-silverlight-using-wcf/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 17:46:42 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[transport]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=350</guid>
		<description><![CDATA[As part of my continuing effort in create a high quality line of business application in Silverlight, I am laying out a nice foundation for the repository layer. The services interaction is being shielded from the higher layers. The main hurdle that was annoying me was having to change the endpoint the Silverlight application was [...]]]></description>
				<content:encoded><![CDATA[<p>As part of my continuing effort in create a high quality line of business application in Silverlight, I am laying out a nice foundation for the repository layer. The services interaction is being shielded from the higher layers.</p>
<p>The main hurdle that was annoying me was having to change the endpoint the Silverlight application was pointing by editing a configuration file that was embedded in the application. Mainly, the fact that this required a recompile when going from local build to server. What a pain!!! Bad Microsoft&#8230;Bad..</p>
<p>I decided to just write a simple addition to my factory to generate the endpoints on the fly, no more recompile per site required. This also lets the application easily be moved server to server without any pains. Relative WCF URLS should have been a mandatory addition, but alas their not. If Microsoft had thought of everything, I wouldn&#8217;t have a job I guess.</p>
<p>Here is the simple code to do a dynamic endpoint in Silverlight. Enjoy!</p>
<pre>using System;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Windows;

namespace Seekford.Repository.MyServices
{
    internal class MyServiceFactory
    {
        private const string myServiceLocation = "../Services/MyCService.svc";

        /// &lt;summary&gt;
        /// Creates the binding.
        /// &lt;/summary&gt;
        /// &lt;returns&gt;&lt;/returns&gt;
        private static CustomBinding CreateBinding()
        {
            CustomBinding binding = new CustomBinding();
            binding.Name = "SilverlightBindingGoodTimes";
           binding.Elements.Add(new BinaryMessageEncodingBindingElement());
            binding.Elements.Add(new HttpTransportBindingElement()
                {
                    MaxBufferSize = int.MaxValue,
                    MaxReceivedMessageSize = int.MaxValue
                }
            );

            binding.OpenTimeout = new TimeSpan(0, 5, 0);
            binding.CloseTimeout = new TimeSpan(0, 5, 0);
            binding.ReceiveTimeout = new TimeSpan(0, 5, 0);
            binding.SendTimeout = new TimeSpan(0, 5, 0);         

            return binding;
        }

        /// &lt;summary&gt;
        /// Creates the aand C service client.
        /// &lt;/summary&gt;
        /// &lt;returns&gt;&lt;/returns&gt;
        public static MyServiceClient CreateMyServiceClient()
        {
            var binding = CreateBinding();
            return new MyServiceClient (binding, new EndpointAddress(
                new Uri(Application.Current.Host.Source, myServiceLocation )));
        }       

    }
}
</pre>
<p>You will obviously need to tailor to your needs, but the idea is pretty straight forward.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/08/02/dynamic-service-endpoint-binding-for-silverlight-using-wcf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add padding to Grid in Silverlight for Row and Column</title>
		<link>http://brianseekford.com/index.php/2010/07/16/add-padding-to-datagrid-in-silverlight-for-datarow-and-datacolumn/</link>
		<comments>http://brianseekford.com/index.php/2010/07/16/add-padding-to-datagrid-in-silverlight-for-datarow-and-datacolumn/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:21:40 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[datacolumn]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[datarow]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://brianseekford.com/?p=348</guid>
		<description><![CDATA[I spent far too long trying figure out how to add padding to a Grid&#8217;s rows and column. I styled the controls, etc. It finally dawned on me that the answer was much simpler. Stupid Simple actually, so just save yourself some headache and INSERT A ROW WITH A FIXED HEIGHT!. Or COLUMN&#8230;&#8230;Stupid simple, I [...]]]></description>
				<content:encoded><![CDATA[<p>I spent far too long trying figure out how to add padding to a Grid&#8217;s rows and column. I styled the controls, etc. It finally dawned on me that the answer was much simpler. Stupid Simple actually, so just save yourself some headache and INSERT A ROW WITH A FIXED HEIGHT!. Or COLUMN&#8230;&#8230;Stupid simple, I told you.</p>
<pre><code>&lt;Grid&gt;
&lt;Grid.RowDefinitions&gt;
        &lt;RowDefinition Height="Auto" /&gt;
        &lt;RowDefinition Height="4" /&gt; &lt;!-- Look ma, padding --&gt;
        &lt;RowDefinition Height="Auto" /&gt;
&lt;/Grid.RowDefinitions&gt;
.....
&lt;/Grid&gt;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2010/07/16/add-padding-to-datagrid-in-silverlight-for-datarow-and-datacolumn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
