<?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>Codelog</title>
	<atom:link href="http://codelog.blogial.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codelog.blogial.com</link>
	<description>foreach(Snippet aSnippet in CodeLog){ aSnippet.GetSolution(); }</description>
	<lastBuildDate>Sun, 08 Jan 2012 13:11:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>DoUNo: ApplicationBar in WindowsPhone is not bindable</title>
		<link>http://codelog.blogial.com/2012/01/08/douno-applicationbar-in-windowsphone-is-not-bindable/</link>
		<comments>http://codelog.blogial.com/2012/01/08/douno-applicationbar-in-windowsphone-is-not-bindable/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 13:06:41 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[DoUNo]]></category>
		<category><![CDATA[Tips 'n' Tricks]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=601</guid>
		<description><![CDATA[ApplicationBar is not a FrameworkElment and is not bindable. Which implies that if you are so much used to MVVM and wants to bind things to ApplicationBar, its not easy; you need to create your own ApplicationBar. This sounds pretty lame and I really don&#8217;t know why Microsoft is not interested in creating an ApplicationBar [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://codelog.blogial.com/files/application_bar_bindable.png"><img class="alignleft size-medium wp-image-604" src="http://codelog.blogial.com/files/application_bar_bindable-160x300.png" alt="" width="160" height="300" /></a>ApplicationBar</strong> is <strong>not a FrameworkElment</strong> and is <strong>not bindable</strong>. Which implies that if you are so much used to MVVM and wants to bind things to ApplicationBar, <a href="http://blog.xyzzer.me/2011/10/21/the-quest-for-a-bindable-applicationbar-part-1/">its not easy</a>; you need to create your own ApplicationBar.</p>
<p>This sounds pretty lame and I really don&#8217;t know why Microsoft is not interested in creating an ApplicationBar that is bindable.</p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2012/01/08/douno-applicationbar-in-windowsphone-is-not-bindable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DoUNo: You can tombstone an app using Windows Phone Emulator</title>
		<link>http://codelog.blogial.com/2011/12/29/douno-you-can-test-tombstoning-using-windows-phone-emulator/</link>
		<comments>http://codelog.blogial.com/2011/12/29/douno-you-can-test-tombstoning-using-windows-phone-emulator/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 11:17:00 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[DoUNo]]></category>
		<category><![CDATA[Tips 'n' Tricks]]></category>
		<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[IDE]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=592</guid>
		<description><![CDATA[You cannot predict when an app would be tombstoned in Windows Phone. But still you can simulate it by enabling a settings in the Property page of the Windows Phone project. Browse to the Property page of the Windows Phone project. Select the Debug tab. Select the Tombstone upon deactivation while debugging. Build and Run [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_593" class="wp-caption alignleft" style="width: 310px"><a href="http://codelog.blogial.com/files/property_page_wp.png"><img class="size-medium wp-image-593" src="http://codelog.blogial.com/files/property_page_wp-300x181.png" alt="Property page of a WP project" width="300" height="181" /></a><p class="wp-caption-text">Property page of a WP project</p></div>
<p>You cannot predict when an app would be tombstoned in Windows Phone. But still you can simulate it by enabling a settings in the Property page of the Windows Phone project.</p>
<ol>
<li>Browse to the Property page of the Windows Phone project.</li>
<li>Select the Debug tab.</li>
<li>Select the Tombstone upon deactivation while debugging.</li>
<li>Build and Run the project.</li>
<li>After the app launches, click on the Windows key to deactivate the app, there by tombstoning it.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2011/12/29/douno-you-can-test-tombstoning-using-windows-phone-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life cycle model of Windows Phone apps and Tombstoning</title>
		<link>http://codelog.blogial.com/2011/12/29/tombstoning-in-windows-phone/</link>
		<comments>http://codelog.blogial.com/2011/12/29/tombstoning-in-windows-phone/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 09:17:05 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[General Programming]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=571</guid>
		<description><![CDATA[Life cycle of program instances differ greatly between desktop and mobile and Windows Phone is no exclusion.Its essential to understand the application life cycle model before writing apps. Of course there are quite a few article explaining this but none pointing out the difference between SDK7.0 and SDK7.1. This article, briefly lets you understand the [...]]]></description>
			<content:encoded><![CDATA[<p>Life cycle of program instances differ greatly between desktop and mobile and Windows Phone is no exclusion.Its essential to understand the application life cycle model before writing apps. Of course there are quite a few article explaining this but none pointing out the difference between SDK7.0 and SDK7.1. This article, briefly lets you understand the different states and the life cycle model changes between <a href="http://msdn.microsoft.com/en-us/library/ff637516%28v=vs.92%29.aspx" target="_blank">SDK7.0 and SDK7.1</a>.</p>
<p><strong>States</strong></p>
<p>In Windows Phone (WP), every app goes thru&#8217; three different states after its instantiated. <span id="more-571"></span></p>
<ol>
<li><strong>Running</strong> &#8211; when the application is actually running in the foreground.</li>
<li><strong>Dormant</strong> &#8211; when the application is deactivated, sent to background.</li>
<li><strong>Tombstoned</strong> &#8211; when the application is terminated after living in a prolonged deactivated state.</li>
</ol>
<p style="padding-left: 30px"><span style="color: #ff6600"><strong>Tombstoning referes to the process in which the application is terminated but its state is preserved by the phone. examples could be the page navigation history, UI states, etc., so that when it is resurrected, it brings back the same user experience.</strong></span></p>
<p><strong>Events</strong></p>
<p>There are a lot of events provided by the framework for the app developers to manage these states. Here are a few of the event that takes an app across the above mentioned states.</p>
<ol>
<li><strong>Launching</strong> &#8211; raised when the application is being launched fresh from the start screen.</li>
<li><strong>Closing</strong> &#8211; raised when the application is terminated by pressing the back  button when the application is in the foreground or when the application is tombstoned.</li>
<li><strong>Activated</strong> &#8211; raised after launching. This event causes the app to get in to Running state.</li>
<li><strong>Deactivated</strong> &#8211; raised before getting in to a dormant state. This event causes the app to get in to Dormant state.</li>
</ol>
<p>&nbsp;</p>
<p><span style="color: #000000"><strong>State Flow</strong><strong> (based on SDK7.1)</strong></span></p>
<div class="mceTemp">
<div id="attachment_587" class="wp-caption alignleft" style="width: 310px"><a href="http://codelog.blogial.com/files/state_machine_wp1.png"><img class="size-medium wp-image-587" src="http://codelog.blogial.com/files/state_machine_wp1-300x174.png" alt="" width="300" height="174" /></a><p class="wp-caption-text">States of an app in WP</p></div>
<ul>
<li><span style="color: #000000">When the application is in the foreground, pressing the Windows key doesn&#8217;t terminate the application. Its simple deactivates it &#8211; puts the app in dormant state.</span></li>
<li><span style="color: #000000">When the application is in the foreground, pressing the Back key terminates the application, raising the closing event.</span></li>
<li><span style="color: #000000">When the application is in the foreground, launching another task, might deactivate the app and put it in dormant state.</span></li>
<li><span style="color: #000000">When the application is in the dormant state and  if its not activated for a while or if the OS runs out of memory, then the application might be tombstoned (based on least recently used applications logic).</span></li>
</ul>
</div>
<p>&nbsp;</p>
<p><strong>Difference between SDK7.0 and SDK7.1</strong></p>
<p><em>In SDK7.0, the application is always tombstoned, meaning, there is no Dormant state.</em> When the application is in the foreground and when the Windows key is pressed, deactivated event is raised, followed by closing event.</p>
<p>This is not the case with SDK7.1. When the application is in foreground and when the Windows key is pressed, application is deactivated but not tombstoned. Its simple in dormant state.</p>
<p><strong>How to test</strong></p>
<p>It was difficult for me to understand this initially. So I wrote two sets of application to test and understand this. One for SDK7.0 and another for SDK7.1. Its a simple app, with a toggle button (to test the state of UI) and a text block that prints the HashCode of the application itself. When I ran the 7.1 app, on pressing the Windows key and bringing it back to foreground neither changed the toggle state not changed the HashCode. When I ran the 7.0 app, on pressing the Windows key and bringing it back to foreground changed the toggle state and the HashCode.</p>
<p><strong><span style="text-decoration: underline"><em>So the conclusion is that </em></span></strong><strong><span style="text-decoration: underline"><em>there is no Dormant state in SDK7.0, unlike SDK7.1 and pressing Windows key simply tombstones the app.<br />
</em></span></strong></p>
<p><strong>Tombstoning</strong></p>
<p>You can store your application data in to an Isolated storage when the application is tombstoned using the <strong>IsolatedStorageSettings</strong> class, which I am yet to explore and will write more when I do so.</p>
<p>You can find an elaborate article on the application life cycle model in <a href="msdn.microsoft.com/en-us/library/ff817008(v=vs.92).aspx" target="_blank">MSDN</a>.</p>
<p>Hope this article has given you an insight in to the application life cycle model of Windows Phones.</p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2011/12/29/tombstoning-in-windows-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting off with Windows Phone 7 Programming</title>
		<link>http://codelog.blogial.com/2011/12/29/starting-off-with-windows-phone-7-programming/</link>
		<comments>http://codelog.blogial.com/2011/12/29/starting-off-with-windows-phone-7-programming/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 06:54:45 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[General Programming]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=554</guid>
		<description><![CDATA[As I had mentioned earlier that I am planning to start off with Windows 8 programming, I also thought it would be logical to start off with Windows Phone 7 programming. I know, Windows Phone 7 has got nothing to do with Windows 8 programming, except for the UI and thats the reason. User Experience [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 250px"><img src="http://upload.wikimedia.org/wikipedia/en/5/55/Windows_Phone_7.5_Start_Screen.png" alt="Windows Phone 7" width="240" height="400" /><p class="wp-caption-text">Windows Phone 7 - Wikipedia</p></div>
<p>As I had mentioned <a href="http://codelog.blogial.com/2011/12/18/windows-8-build/" target="_blank">earlier</a> that I am planning to start off with Windows 8 programming, I also thought it would be logical to start off with <a href="http://www.charlespetzold.com/phone/" target="_blank">Windows Phone 7 programming</a>. I know, Windows Phone 7 has got nothing to do with Windows 8 programming, except for the <a href="http://en.wikipedia.org/wiki/Metro_%28design_language%29" target="_blank">UI</a> and thats the reason. User Experience is really important, especially for handheld devices.</p>
<p><em>Here are a few things you need  before you kick start with Windows Phone 7 programming.</em></p>
<ul>
<li>.<strong>NET and Visual Studio</strong> &#8211; you ought to be familiar with .net and Visual Studio.</li>
<li><strong>WPF (xaml to be precise)</strong> &#8211; at least the fundamentals. The book that I have linked underneath lets you learn the basics but still I suggest a book that talks just about xaml (?!?).</li>
<li><em>**Silverlight &#8211; not necessarily; <a href="http://stackoverflow.com/questions/944608/wpf-vs-silverlight" target="_blank">ifyou know WPF, well, thats enough</a>.</em></li>
<li>Visual Studio 2010 with <a href="http://go.microsoft.com/fwlink/?LinkId=210710" target="_blank">SP1</a> and <a href="http://download.microsoft.com/download/6/E/7/6E795194-EE2D-4636-AEBD-D1C42D2E06E1/WPSDKv71_en1.iso" target="_blank">Windows Phone 7.1 SDK</a>.</li>
<li>Book or some kind of tutorial &#8211; obviously we start off with a book. <a href="http://download.microsoft.com/download/5/0/A/50A39509-D015-410F-A8F2-A5511E5A988D/Microsoft_Press_ebook_Programming_Windows_Phone_7_PDF.pdf" target="_blank">Programming Windows Phone 7</a> by <a href="http://www.charlespetzold.com/" target="_blank">Charles Petzold</a> is what I am currently learning.</li>
<li>Windows Phone &#8211; even though you get an emulator with Visual Studio Windows Phone 7 SDK, the emulator is every simple and you might not find it useful if you are planing to write complex applications involving multi touch gestures, notifications, etc.</li>
</ul>
<p>I just started off with Windows Phone 7 programming last week and is really cool. I am finding it very simple as I have been working on .NET, C# and WPF for quite some time now. If you are new to WPF, I suggest you learn it and get acclimatized to the XAML fundamentals and syntax before you start off with WP7 programming. I will also try and write about things which I find notifiable, out here.</p>
<p>So long, lets write some Windows Phone apps <img src='http://codelog.blogial.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2011/12/29/starting-off-with-windows-phone-7-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 8 &#8211; Build</title>
		<link>http://codelog.blogial.com/2011/12/18/windows-8-build/</link>
		<comments>http://codelog.blogial.com/2011/12/18/windows-8-build/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 07:25:48 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[General Programming]]></category>
		<category><![CDATA[windows 8]]></category>
		<category><![CDATA[Windows 8]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=549</guid>
		<description><![CDATA[Windows 8. I tried out the OS last month; pretty neat. So now, I am planning to start off with the app development. This is where I am gonna start from. Hoping to write more soon.]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 410px"><a href="http://upload.wikimedia.org/wikipedia/en/4/4d/Windows_8_Developer_Preview_Start_Screen.png"><img src="http://upload.wikimedia.org/wikipedia/en/4/4d/Windows_8_Developer_Preview_Start_Screen.png" alt="Windows 8" width="400" height="224" /></a><p class="wp-caption-text">Windows 8</p></div>
<p><span style="color: #888888"><strong>Windows 8</strong>.</span> I tried out the OS last month; pretty neat. So now, I am planning to start off with the app development.</p>
<p>This is where I am gonna <a href="http://www.buildwindows.com/" target="_blank">start</a> from. Hoping to write more soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2011/12/18/windows-8-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test post</title>
		<link>http://codelog.blogial.com/2011/07/22/test-post/</link>
		<comments>http://codelog.blogial.com/2011/07/22/test-post/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 17:06:28 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/2011/07/22/test-post/</guid>
		<description><![CDATA[This is a test post from office writer!!!]]></description>
			<content:encoded><![CDATA[<p>This is a test post from office writer!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2011/07/22/test-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From .net to iOS</title>
		<link>http://codelog.blogial.com/2011/01/08/from-net-to-ios/</link>
		<comments>http://codelog.blogial.com/2011/01/08/from-net-to-ios/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 05:21:13 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[General Programming]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Tips 'n' Tricks]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=539</guid>
		<description><![CDATA[Its been a week since I started off with application development using iOS. So far the experiences has been awesome. So if you want to write programs for iPhone/iPod/iPad, all you gotta do is, Get a Mac. You cannot develop apps from your pc. I tried using virtual machine, but it is NOT POSSIBLE AT [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a week since I started off with application development using iOS. So far the experiences has been awesome. So if you want to write programs for iPhone/iPod/iPad, all you gotta do is,</p>
<ol>
<li>Get a Mac. You cannot develop apps from your pc. I tried using v<a title="http://developer.apple.com" href="http://developer.apple.com" target="_blank">i</a>rtual machine, but it is NOT POSSIBLE AT ALL. Forget about your pc. Go get your mac !!</li>
<li>Once you have your mac, navigate to <a href="http://developer.apple.com" target="_blank">http://developer.apple.com</a>. You have so many resources out there which should get you on board immediately</li>
</ol>
<p>Tips for beginners,</p>
<ul>
<li><strong>Development Center</strong> &#8211; is really neat and way ahead than MSDN</li>
<li><strong>Programming Paradigm</strong> &#8211; is MVC and should be familiar if you were programming for quite a while</li>
<li><strong>IDE</strong> &#8211; XCode and InterfaceBuilder are the IDEs with which you write programs for iOS. Thou&#8217; they are not as good as Visual Studio, they are pretty good for beginners</li>
<li><strong>Programming Language &#8211; ObjectiveC</strong> &#8211; so far is the biggest challenge for me. If you are new to this, you will find it to be really weird</li>
<li><strong>Unmanaged Code</strong> &#8211; if you are a .net programmer with no experience writing C/C++ programs, you should be extra careful in here</li>
<li><strong>Tutorials and Samples</strong> &#8211; development center has got everything for you. Do not worry about this</li>
</ul>
<p><em><strong>Overall, the experience is good and exciting so far. </strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2011/01/08/from-net-to-ios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Difference between UserControl and CustomControl in wpf</title>
		<link>http://codelog.blogial.com/2010/11/27/difference-between-usercontrol-and-customcontrol-in-wpf/</link>
		<comments>http://codelog.blogial.com/2010/11/27/difference-between-usercontrol-and-customcontrol-in-wpf/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 07:27:40 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[Control Template]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=534</guid>
		<description><![CDATA[Ever wondered the difference between UserControl and CustomControl. UserControl is a composite control. We use UserControl when you want to group similar controls and reuse them across multiple windows/pages. UserControl is not considered as a single control by the logical tree. i.e., if the UserControl contains three buttons and a list box and when this [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered the difference between UserControl and CustomControl.</p>
<p>UserControl is a composite control. We use UserControl when you want to group similar controls and reuse them across multiple windows/pages. UserControl is <strong>not </strong>considered as a single control by the logical tree. i.e., if the UserControl contains three buttons and a list box and when this UserControl is used in window, the logical tree of the window can identify each of there controls (buttons and list box).</p>
<p>CustomControl is a single control with a control template located in the &#8220;Themes-&gt;Generic.xaml&#8221; file. When CustomControls are used in a window/page, the logical tree cannot identify its internals. For example, if you want to use snip control (a control that has up and down buttons to scroll values in a textbox), then create a custom control that inherit from Control class and give it a theme (default ControlTenplate).</p>
<p><strong>Okay, now when to use what ??</strong></p>
<p><em>If you are writing a <strong>CustomControl, its template can always be overridden</strong>. Which means, if you want to ship a control as a library and if you want it to be customizable by others, then go for CustomControl. Otherwise, its simple, go ahead and use a UserControl</em></p>
<p>Hope you got the difference now.</p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2010/11/27/difference-between-usercontrol-and-customcontrol-in-wpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Equivalent</title>
		<link>http://codelog.blogial.com/2010/11/27/visual-studio-equivalent/</link>
		<comments>http://codelog.blogial.com/2010/11/27/visual-studio-equivalent/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 06:59:26 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Editors]]></category>
		<category><![CDATA[General Programming]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[xaml]]></category>
		<category><![CDATA[IDE]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=532</guid>
		<description><![CDATA[For those who wish to write c# code and cannot afford to buy Visual Studio, you have &#8220;Sharp Develop&#8220;, a open source comparable to Visual Studio. One more happy news, they even have a WPF designer is a quite awesome. Give it a try]]></description>
			<content:encoded><![CDATA[<p>For those who wish to write c# code and cannot afford to buy Visual Studio, you have &#8220;<a href="http://www.icsharpcode.net/opensource/sd/" target="_blank">Sharp Develop</a>&#8220;, a open source comparable to Visual Studio.</p>
<p>One more happy news, they even have a WPF designer is a quite awesome. Give it a try</p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2010/11/27/visual-studio-equivalent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DoUNo: Whadds up with the Background property of a control</title>
		<link>http://codelog.blogial.com/2010/07/20/douno-whadds-up-with-the-background-property-of-a-control/</link>
		<comments>http://codelog.blogial.com/2010/07/20/douno-whadds-up-with-the-background-property-of-a-control/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 09:48:17 +0000</pubDate>
		<dc:creator>sudarsanyes</dc:creator>
				<category><![CDATA[Control Template]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[DoUNo]]></category>
		<category><![CDATA[Tips 'n' Tricks]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[xaml]]></category>
		<category><![CDATA[ControlTemplate]]></category>

		<guid isPermaLink="false">http://codelog.blogial.com/?p=521</guid>
		<description><![CDATA[This is weird !! Try to customize the control template of a button, Place a grid as the base panel (don&#8217;t add any Background property to it) Add an ellipse and a content presenter to this Add a Click event handler to the button Run it and try to click on the white space, the [...]]]></description>
			<content:encoded><![CDATA[<p>This is weird !! Try to customize the control template of a button,</p>
<ol>
<li>Place a grid as the base panel (don&#8217;t add any Background property to it)</li>
<li>Add an ellipse and a content presenter to this</li>
<li>Add a <em>Click</em> event handler to the button</li>
<li>Run it and try to click on the white space,<strong> the event will not be raised !!!</strong></li>
</ol>
<p>Go back to the template,</p>
<ol>
<li>Add a <strong>Background</strong> property to the grid and set the value to Blue (can be any color other than transparent)</li>
<li>Run it and try to click on the Blue color, <strong>the event will be raised !!!</strong></li>
</ol>
<p>Go back to the template,</p>
<ol>
<li>Set the value of the <strong>Background</strong> Property to <strong>Transparent</strong></li>
<li>Run it and try to click on the white space,<strong> the event will still be raised !!! (WHY ?!?)</strong></li>
</ol>
<p>Looks weird to me thou&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://codelog.blogial.com/2010/07/20/douno-whadds-up-with-the-background-property-of-a-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  codelog.blogial.com/feed/ ) in 0.98366 seconds, on Feb 4th, 2012 at 5:05 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 4th, 2012 at 6:05 am UTC -->
