<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://windowsclient.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Nidonocu - typeof(Tea) - All Comments</title><link>http://windowsclient.net/blogs/nidonocu/default.aspx</link><description>Random discoveries as I play with WPF</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Twitter Trackbacks for                 WPF - Themes and Control Libraries - Part 2 - Nidonocu - typeof(Tea)         [windowsclient.net]        on Topsy.com</title><link>http://windowsclient.net/blogs/nidonocu/archive/2008/03/03/wpf-themes-and-control-libraries-part-2.aspx#320058</link><pubDate>Mon, 10 May 2010 11:38:18 GMT</pubDate><guid isPermaLink="false">f1c07d22-4184-4df1-9c40-8dd04b52e796:320058</guid><dc:creator>Twitter Trackbacks for                 WPF - Themes and Control Libraries - Part 2 - Nidonocu - typeof(Tea)         [windowsclient.net]        on Topsy.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Twitter Trackbacks for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WPF - Themes and Control Libraries - Part 2 - Nidonocu - typeof(Tea) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [windowsclient.net] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Topsy.com&lt;/p&gt;
&lt;img src="http://windowsclient.net/aggbug.aspx?PostID=320058" width="1" height="1"&gt;</description></item><item><title>re: SizeToContent border bug</title><link>http://windowsclient.net/blogs/nidonocu/archive/2008/03/15/sizetocontent-border-bug.aspx#110990</link><pubDate>Wed, 04 Mar 2009 15:05:40 GMT</pubDate><guid isPermaLink="false">f1c07d22-4184-4df1-9c40-8dd04b52e796:110990</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;That is exactly what I was seeing. Although on Windows 2003 (and probably XP) the problem is a lot more noticeable.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;
&lt;img src="http://windowsclient.net/aggbug.aspx?PostID=110990" width="1" height="1"&gt;</description></item><item><title>re: WPF - Themes and Control Libraries - Part 2</title><link>http://windowsclient.net/blogs/nidonocu/archive/2008/03/03/wpf-themes-and-control-libraries-part-2.aspx#25264</link><pubDate>Fri, 25 Apr 2008 23:57:59 GMT</pubDate><guid isPermaLink="false">f1c07d22-4184-4df1-9c40-8dd04b52e796:25264</guid><dc:creator>mario</dc:creator><description>&lt;p&gt;is it possible to use the theme&amp;#39;s resource dictionary to store resources ( let&amp;#39;s say a color resource which has a different value on different themes)&lt;/p&gt;
&lt;p&gt;and then reference this resource to acheive the following effect:&lt;/p&gt;
&lt;p&gt;on each theme the element will have different colors.&lt;/p&gt;
&lt;p&gt;and what does this line do:&lt;/p&gt;
&lt;p&gt;DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomButton), new FrameworkPropertyMetadata(typeof(CustomButton)));	&lt;/p&gt;
&lt;img src="http://windowsclient.net/aggbug.aspx?PostID=25264" width="1" height="1"&gt;</description></item><item><title>re: SizeToContent border bug</title><link>http://windowsclient.net/blogs/nidonocu/archive/2008/03/15/sizetocontent-border-bug.aspx#23020</link><pubDate>Tue, 15 Apr 2008 16:25:29 GMT</pubDate><guid isPermaLink="false">f1c07d22-4184-4df1-9c40-8dd04b52e796:23020</guid><dc:creator>Doug Day</dc:creator><description>&lt;p&gt;Actually, it doesn&amp;#39;t &amp;quot;Clip&amp;quot; anything. &amp;nbsp;WPF works in arbitrary units, not pixels, so when displaying your controls on-screen, it has to &amp;quot;cast-down&amp;quot; to pixels to display the object.&lt;/p&gt;
&lt;p&gt;In many cases, this can cause a shearing effect, when the object can&amp;#39;t figure out which pixel it wants to draw in. &amp;nbsp;In your case, your window border resided &amp;quot;in-between&amp;quot; pixels, and the WPF system decided to draw on BOTH pixels in order to display properly.&lt;/p&gt;
&lt;p&gt;SnapsToDevicePixels forces the render mechanisms in WPF to avoid this behavior, and to choose one-or-the-other when rendering objects. &amp;nbsp;In many cases, this can clean up the look quite a bit.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;-Doug&lt;/p&gt;&lt;img src="http://windowsclient.net/aggbug.aspx?PostID=23020" width="1" height="1"&gt;</description></item></channel></rss>
