<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Lee's corner</title>
	<atom:link href="http://leeontech.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://leeontech.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 03 Jan 2012 09:51:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='leeontech.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Lee's corner</title>
		<link>http://leeontech.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://leeontech.wordpress.com/osd.xml" title="Lee&#039;s corner" />
	<atom:link rel='hub' href='http://leeontech.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Finding Key State using PInvoke in SL5 RC</title>
		<link>http://leeontech.wordpress.com/2011/09/19/finding-key-state-using-pinvoke-in-sl5-rc/</link>
		<comments>http://leeontech.wordpress.com/2011/09/19/finding-key-state-using-pinvoke-in-sl5-rc/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 17:48:09 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[Silverlight 5]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=625</guid>
		<description><![CDATA[If we have to find the Key State of  CAPS lock,  NUM lock etc in silverlight 5 RC, we could do like this using PInvoke Add the Declaration [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true, CallingConvention = CallingConvention.Winapi)] public static extern short GetKeyState(int keyCode); And to get the different Key states bool CapsLock = (((ushort)GetKeyState(0&#215;14)) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=625&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2011/09/19/finding-key-state-using-pinvoke-in-sl5-rc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>
	</item>
		<item>
		<title>Using PInvoke in SL5 to show MessageBox</title>
		<link>http://leeontech.wordpress.com/2011/09/01/using-pinvoke-in-sl5-to-show-messagebox/</link>
		<comments>http://leeontech.wordpress.com/2011/09/01/using-pinvoke-in-sl5-to-show-messagebox/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 18:39:24 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[Silverlight 5]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=615</guid>
		<description><![CDATA[One of the new features in SL5 is the ability to use PInvoke. This post shows how to use PInvoke to show MesageBox with lot more options. Start by creating a SL5 OOB application with elevated trust and add the following code [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern MessageBoxResult MessageBox(IntPtr hWnd, String text, String [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=615&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2011/09/01/using-pinvoke-in-sl5-to-show-messagebox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>

		<media:content url="http://leeontech.files.wordpress.com/2011/09/capture.png" medium="image">
			<media:title type="html">Capture</media:title>
		</media:content>
	</item>
		<item>
		<title>Enum&#8217;s and MarkupExtension</title>
		<link>http://leeontech.wordpress.com/2011/04/27/enums-and-markupextension/</link>
		<comments>http://leeontech.wordpress.com/2011/04/27/enums-and-markupextension/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 17:27:39 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[Silverlight 5 beta]]></category>
		<category><![CDATA[silverlight 5]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=607</guid>
		<description><![CDATA[Here is quick sample to get all the values from an enum using MarkupExtension. This returns a Dictionary  public class EnumValuesExtension : MarkupExtension     {         public string EnumName { get; set; }         public override object ProvideValue(IServiceProvider serviceProvider)         {             IXamlTypeResolver xamlResolver = serviceProvider.GetService(typeof(IXamlTypeResolver)) as IXamlTypeResolver;             Type t = xamlResolver.Resolve(EnumName);             return [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=607&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2011/04/27/enums-and-markupextension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>
	</item>
		<item>
		<title>DataGrid random behavior when scrolling</title>
		<link>http://leeontech.wordpress.com/2011/04/12/datagrid-random-behavior-when-scrolling/</link>
		<comments>http://leeontech.wordpress.com/2011/04/12/datagrid-random-behavior-when-scrolling/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 13:54:54 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[Silverlight 4]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=603</guid>
		<description><![CDATA[I came across a post in the silverlight forums which shows the random behavior of the DataGrid. This happens obviously only when scrollbars are there and when we scroll. Wraping DataGridRowsPresenter in the Template of the DataGrid in a scrollviewer seems to get around this issue. As scrollviewer has some border margin etc. I styled [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=603&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2011/04/12/datagrid-random-behavior-when-scrolling/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>
	</item>
		<item>
		<title>DataGrid and &#8220;No Records Found&#8221; message</title>
		<link>http://leeontech.wordpress.com/2011/04/09/datagrid-and-no-records-found-message/</link>
		<comments>http://leeontech.wordpress.com/2011/04/09/datagrid-and-no-records-found-message/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 09:25:22 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[Silverlight 4]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=588</guid>
		<description><![CDATA[Here is one way to display a message when we dont have any data returned 1. Grab the Template of the DataGrid from Blend 2. Modify the Template. All we do is find the RowsPresenter line &#60;sdk:DataGridRowsPresenter x:Name=&#8221;RowsPresenter&#8221; Grid.ColumnSpan=&#8221;2&#8243; Grid.Row=&#8221;1&#8243;/&#62; and move it inside a Grid element, we add in the template in the same [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=588&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2011/04/09/datagrid-and-no-records-found-message/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>

		<media:content url="http://leeontech.files.wordpress.com/2011/04/norecords.png" medium="image">
			<media:title type="html">NoRecords</media:title>
		</media:content>
	</item>
		<item>
		<title>EntityFramework 4, code first and RIA Services</title>
		<link>http://leeontech.wordpress.com/2011/02/25/entityframework-4-code-first-and-ria-services/</link>
		<comments>http://leeontech.wordpress.com/2011/02/25/entityframework-4-code-first-and-ria-services/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 11:36:02 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[Silverlight 4]]></category>
		<category><![CDATA[Code first]]></category>
		<category><![CDATA[EF4]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=580</guid>
		<description><![CDATA[I was looking at EF4 and code first CTP5 and wanted to see how that works with RIA Services. So I took John Papa&#8217;s sample from PDC10 and started converting that to use code first. Here are the steps 1.Becasue we already have a database and want to generate the classes quickly Open the EDMX file  right click [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=580&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2011/02/25/entityframework-4-code-first-and-ria-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>
	</item>
		<item>
		<title>Prism 4 &#8211; Silverlight and Custom Commands</title>
		<link>http://leeontech.wordpress.com/2010/11/21/prism-4-silverlight-and-custom-commands/</link>
		<comments>http://leeontech.wordpress.com/2010/11/21/prism-4-silverlight-and-custom-commands/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 00:31:28 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[Prism 4]]></category>
		<category><![CDATA[Silverlight 4]]></category>
		<category><![CDATA[Custom command]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=571</guid>
		<description><![CDATA[Silverlight 4 includes commanding support for ButtonBase classes, but for anything else we would need to write a little bit of code. There is a nice section here on how to extend this to other situations. Here is a quick sample on how to create command support for MouseLeftButtonDown on an UIElement. You can download the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=571&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2010/11/21/prism-4-silverlight-and-custom-commands/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>
	</item>
		<item>
		<title>RIA services and combobox lookups with Async CTP</title>
		<link>http://leeontech.wordpress.com/2010/11/03/ria-services-and-combobox-lookups-with-async-ctp/</link>
		<comments>http://leeontech.wordpress.com/2010/11/03/ria-services-and-combobox-lookups-with-async-ctp/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 17:07:01 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[Silverlight 4]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=562</guid>
		<description><![CDATA[If we are editing data in a datagrid and have a few combobox columns, it will be difficult to know when the data is ready for all the comboboxes. The Async CTP that was released will help. I got the extension method Kyle McClellan wrote in this post to consume LoadOperations as Tasks. I had the following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=562&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2010/11/03/ria-services-and-combobox-lookups-with-async-ctp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF RIA Services and ComplexObjects</title>
		<link>http://leeontech.wordpress.com/2010/10/29/wcf-ria-services-and-complexobjects/</link>
		<comments>http://leeontech.wordpress.com/2010/10/29/wcf-ria-services-and-complexobjects/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 15:43:38 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[Silverlight 4]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=555</guid>
		<description><![CDATA[The release of the WCF RIA Services V1.0 SP1 Beta, added support for complex type members in entities and DomainService operations. Here is a quick walkthrough. I started with Northwind database and customers table. I refactored some of the columns (Address,City,Region, PostalCode, Country) into a complex object called &#8220;AddressDetails&#8221; and updated the mappings like we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=555&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2010/10/29/wcf-ria-services-and-complexobjects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>

		<media:content url="http://leeontech.files.wordpress.com/2010/10/complextype.png" medium="image">
			<media:title type="html">complextype</media:title>
		</media:content>

		<media:content url="http://leeontech.files.wordpress.com/2010/10/model.png" medium="image">
			<media:title type="html">model</media:title>
		</media:content>
	</item>
		<item>
		<title>Highlighting entire column in Datagrid</title>
		<link>http://leeontech.wordpress.com/2010/10/20/highlighting-entire-column-in-datagrid/</link>
		<comments>http://leeontech.wordpress.com/2010/10/20/highlighting-entire-column-in-datagrid/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 15:50:54 +0000</pubDate>
		<dc:creator>lee</dc:creator>
				<category><![CDATA[Silverlight 4]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=550</guid>
		<description><![CDATA[I came across this post on stackoverflow on highlighting an entire column when that column is sorted (clicked on header). The question was already answered. Here is another version. ItemsSource property need not be a PagedCollectionView in this version. The code need to be changed if there are any TemplateColumns defined. using this behavior  &#60;sdk:DataGrid  x:Name=&#8221;datagrid1&#8243;  &#62;             [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leeontech.wordpress.com&amp;blog=2984453&amp;post=550&amp;subd=leeontech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2010/10/20/highlighting-entire-column-in-datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">lee</media:title>
		</media:content>
	</item>
	</channel>
</rss>
