<?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: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>
	<pubDate>Tue, 22 Jul 2008 13:01:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Dynamic Styles - part 2</title>
		<link>http://leeontech.wordpress.com/2008/07/22/dynamic-styles-part-2/</link>
		<comments>http://leeontech.wordpress.com/2008/07/22/dynamic-styles-part-2/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 12:59:13 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=130</guid>
		<description><![CDATA[In the last post we saw we could change the skin of the application without reloading the app. what is missing is when the user opens the app the next time, it doesnt remember the last theme selected. To start the app with the last selected theme when the user runs the app again is [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/07/22/dynamic-styles-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dynamic Styles</title>
		<link>http://leeontech.wordpress.com/2008/07/21/dynamic-styles/</link>
		<comments>http://leeontech.wordpress.com/2008/07/21/dynamic-styles/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 18:05:58 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<category><![CDATA[dynamic styles]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=116</guid>
		<description><![CDATA[In this post, I will show my attempt to change the Theme of SL application without reloading the app.
you can see a demo here . There are 3 main steps
1. Isolate all the styles into individual files .xaml or xml
2. load all the resources and save them
3. clear the Application Resources before the content is initialized
I [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/07/21/dynamic-styles/feed/</wfw:commentRss>
	
		<media:content url="http://leeontech.files.wordpress.com/2008/07/default.jpg?w=300" medium="image" />

		<media:content url="http://leeontech.files.wordpress.com/2008/07/red.jpg?w=300" medium="image" />

		<media:content url="http://leeontech.files.wordpress.com/2008/07/flat.jpg?w=300" medium="image" />
	</item>
		<item>
		<title>VerticalAlignment of header in DataGrid</title>
		<link>http://leeontech.wordpress.com/2008/07/17/verticalalignment-of-header-in-datagrid/</link>
		<comments>http://leeontech.wordpress.com/2008/07/17/verticalalignment-of-header-in-datagrid/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 12:48:46 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<category><![CDATA[DataGridColumnHeader]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=108</guid>
		<description><![CDATA[If we want to align the content of the header vertically(Bottom) in datagrid, found that we need to change the style. I thought there would be an easier way, but could not find one.

 
xmlns:my1=&#8221;clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data&#8221;
Here is the style, changes made to the default style in Bold
&#60;Style TargetType=&#8221;my1:DataGridColumnHeader&#8221;&#62;
&#60;Setter Property=&#8221;SeparatorBrush&#8221;&#62;
    &#60;Setter.Value&#62;
        &#60;SolidColorBrush Color=&#8221;#FFA4A4A4&#8243; /&#62;
    &#60;/Setter.Value&#62;
&#60;/Setter&#62;
&#60;Setter Property=&#8221;SeparatorVisibility&#8221;
        Value=&#8221;Visible&#8221; /&#62;
&#60;Setter Property=&#8221;Template&#8221;&#62;
    [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/07/17/verticalalignment-of-header-in-datagrid/feed/</wfw:commentRss>
	
		<media:content url="http://leeontech.files.wordpress.com/2008/07/verticalalignedheader.jpg?w=300" medium="image" />
	</item>
		<item>
		<title>Customizing ListBoxItem template in ListBox</title>
		<link>http://leeontech.wordpress.com/2008/07/15/customizing-itemcontainerstyle-in-listbox/</link>
		<comments>http://leeontech.wordpress.com/2008/07/15/customizing-itemcontainerstyle-in-listbox/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 13:23:21 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<category><![CDATA[Itemcontainerstyle]]></category>

		<category><![CDATA[ListBox]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=103</guid>
		<description><![CDATA[ItemContainerStyle is the style that is applied to the dataitems.  In the figure below we see the default style that comes with the listbox on the left and style that is customized on the right.
 
Here are the steps
1. Get the default style for the ListBoxItem from generic.xaml using reflector or from the sdk
2. Remove all [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/07/15/customizing-itemcontainerstyle-in-listbox/feed/</wfw:commentRss>
	
		<media:content url="http://leeontech.files.wordpress.com/2008/07/itemcontainerstyle.jpg" medium="image" />
	</item>
		<item>
		<title>Communication between UserControls</title>
		<link>http://leeontech.wordpress.com/2008/07/10/communication-usercontrols/</link>
		<comments>http://leeontech.wordpress.com/2008/07/10/communication-usercontrols/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 13:15:26 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=102</guid>
		<description><![CDATA[There  are different ways to communicate between usercontrols. Here is a sample of that using events. Basically an event is raised when something happens in one Usercontrol an event is raised and Page which  contains the UserControl subscribes to the event and passes the relevant details it to a different UserControl
you can download the sample here
 [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/07/10/communication-usercontrols/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ItemsPanelTemplate Differences in SL and WPF</title>
		<link>http://leeontech.wordpress.com/2008/06/30/itemspaneltemplate-differences-in-sl-and-wpf/</link>
		<comments>http://leeontech.wordpress.com/2008/06/30/itemspaneltemplate-differences-in-sl-and-wpf/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 16:32:04 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=100</guid>
		<description><![CDATA[I was changing the ItemsPanelTemplate of Listbox and set the Position of Elements generated using TranslateTransform
WPF app works fine, while the Silverlight app crashes. As far as I can tell the code is same
Here is the XAML
&#60;UserControl x:Class=&#8221;t14.Page&#8221;
    xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8220;
    xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8220;
    Width=&#8221;400&#8243; Height=&#8221;300&#8243;&#62;
    &#60;UserControl.Resources&#62;
        &#60;DataTemplate x:Key=&#8221;dt&#8221;&#62;
            &#60;TextBlock Text=&#8221;{Binding Name}&#8221;&#62;
                &#60;TextBlock.RenderTransform&#62;
                    &#60;TranslateTransform X=&#8221;{Binding Position.X}&#8221;
                                        Y=&#8221;{Binding Position.Y}&#8221; /&#62;
                [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/06/30/itemspaneltemplate-differences-in-sl-and-wpf/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Customizing TabItem Style(no coding)</title>
		<link>http://leeontech.wordpress.com/2008/06/18/customizing-tabitem-style/</link>
		<comments>http://leeontech.wordpress.com/2008/06/18/customizing-tabitem-style/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 20:42:00 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<category><![CDATA[TabItem Style]]></category>

		<category><![CDATA[VSM]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=96</guid>
		<description><![CDATA[Wanted to take a shot at customizing the appearance of TabItem in TabControl.
TabControl itself has few issues, we dont want to go there and will foucs on styling TabItem
I have included the style I picked up from generic.xaml in the source
The Template (removed resources, VSM related stuff) looks like this
&#60;Grid x:Name=&#8221;Root&#8221;&#62;                  
          &#60;Border x:Name=&#8221;TabBorder&#8221;
                  BorderBrush=&#8221;Black&#8221;
                  BorderThickness=&#8221;1&#8243;
                  [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/06/18/customizing-tabitem-style/feed/</wfw:commentRss>
	
		<media:content url="http://leeontech.files.wordpress.com/2008/06/tabitemstyle.jpg?w=273" medium="image" />
	</item>
		<item>
		<title>Drag &#38; Drop DataGridRows</title>
		<link>http://leeontech.wordpress.com/2008/06/13/drag-drop-datagridrows/</link>
		<comments>http://leeontech.wordpress.com/2008/06/13/drag-drop-datagridrows/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 15:48:00 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=94</guid>
		<description><![CDATA[Here is the sample code for drag &#38; drop of the DataGridRows I did couple of months back updated to work in beta 2
We dont get mouse events so we have to use another canvas or something which will sit on top of the datagrid at the same location as the datagird, we set the [...]]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/06/13/drag-drop-datagridrows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Animating ListBoxItems using VSM</title>
		<link>http://leeontech.wordpress.com/2008/06/11/animating-listboxitems-using-vsm/</link>
		<comments>http://leeontech.wordpress.com/2008/06/11/animating-listboxitems-using-vsm/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 19:19:39 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=93</guid>
		<description><![CDATA[This is a modification of original Animating ListBoxItems app/article Ivan Dragoev posted here to use VisualStateManager.
you can download the source here
       ]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/06/11/animating-listboxitems-using-vsm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ComboBox code updated to Beta2</title>
		<link>http://leeontech.wordpress.com/2008/06/11/combobox-code-updated-to-beta2/</link>
		<comments>http://leeontech.wordpress.com/2008/06/11/combobox-code-updated-to-beta2/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 08:22:02 +0000</pubDate>
		<dc:creator>lee</dc:creator>
		
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://leeontech.wordpress.com/?p=91</guid>
		<description><![CDATA[Here is the source for combobox which works in Beta2. looks like there is bug in ContentPresenter .
 Jeff&#8217;s workaround seemed to have worked
Here is the source
       ]]></description>
		<wfw:commentRss>http://leeontech.wordpress.com/2008/06/11/combobox-code-updated-to-beta2/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>