<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.silverlight.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>Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx</link><description>Virtually all measurements (width, height, etc.) are measured in Pixels in Silverlight… except when they're not.&amp;#160;&amp;#160; Pixels When you are creating a shape or setting a margin, or filing in the width or height of a control the implicit unit is pixel</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Sizing in Silverlight &amp;laquo;  Alan&amp;#039;s Topics</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#251555</link><pubDate>Thu, 16 Jul 2009 20:20:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:251555</guid><dc:creator>Sizing in Silverlight «  Alan's Topics</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Sizing in Silverlight &amp;amp;laquo; &amp;nbsp;Alan&amp;amp;#039;s Topics&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=251555" width="1" height="1"&gt;</description></item><item><title>Silverlight Cream for October 22, 2008 -- #404</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#116279</link><pubDate>Thu, 23 Oct 2008 19:30:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:116279</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;In this issue: Tim Heuer, Jeff Prosise, Jeff Weber, and Jesse Liberty. From SilverlightCream.com : Silverlight&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=116279" width="1" height="1"&gt;</description></item><item><title>Silverlight news for October 23, 2008</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#116025</link><pubDate>Thu, 23 Oct 2008 13:07:56 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:116025</guid><dc:creator>Silverlight news for October 23, 2008</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Silverlight news for October 23, 2008&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=116025" width="1" height="1"&gt;</description></item><item><title>re: Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#115598</link><pubDate>Wed, 22 Oct 2008 23:43:06 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:115598</guid><dc:creator>JFalcon</dc:creator><description>&lt;p&gt;Now here's an interesting question. &amp;nbsp;I know that programmatically, you can represent the &amp;quot;Auto&amp;quot; value for a Width or Height by making it equal to Double.NaN.&lt;/p&gt;
&lt;p&gt;However, what if you wanted to to represent &amp;quot;.25*&amp;quot; and &amp;quot;.75*&amp;quot;? &amp;nbsp;I couldn't quite tell from the Silverlight documentation, but I'm assuming that to do this, you would have to use a double value for the Width or Height property using a number that is less than 1.0. &amp;nbsp;(i.e. Width = 0.25.)&lt;/p&gt;
&lt;p&gt;Is this a correct assumption?&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=115598" width="1" height="1"&gt;</description></item><item><title>Dew Drop - October 22, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#115320</link><pubDate>Wed, 22 Oct 2008 15:26:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:115320</guid><dc:creator>Dew Drop - October 22, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Dew Drop - October 22, 2008 | Alvin Ashcraft's Morning Dew&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=115320" width="1" height="1"&gt;</description></item><item><title>Silverlight中的大小控制-像素和比例缩放</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#115266</link><pubDate>Wed, 22 Oct 2008 14:24:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:115266</guid><dc:creator>allahfan</dc:creator><description>&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=115266" width="1" height="1"&gt;</description></item><item><title>re: Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#115068</link><pubDate>Wed, 22 Oct 2008 09:46:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:115068</guid><dc:creator>Qbus</dc:creator><description>&lt;p&gt;Ok thanks.&lt;/p&gt;
&lt;p&gt;But what about my &amp;quot;NaN&amp;quot; problem? I don't have the code here right now, but I just got the thought that this maybe is where I should use the &amp;quot;actualHeight&amp;quot; and &amp;quot;ActualWidth&amp;quot; properties?&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=115068" width="1" height="1"&gt;</description></item><item><title>re: Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#115029</link><pubDate>Wed, 22 Oct 2008 08:20:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:115029</guid><dc:creator>haagel</dc:creator><description>&lt;p&gt;Qbus: The numbers don't matter, it's the ratio between the numbers that matter. Thus you can write:&lt;/p&gt;
&lt;p&gt;0.25* &amp;amp; 0.75*&lt;/p&gt;
&lt;p&gt;25* &amp;amp; 75*&lt;/p&gt;
&lt;p&gt;100* &amp;amp; 300*&lt;/p&gt;
&lt;p&gt;231* &amp;amp; 693*&lt;/p&gt;
&lt;p&gt;It doesn't matter. The ratio is 1:3 i all cases, which means that the second row will be three times higher than the first line in all cases.&lt;/p&gt;
&lt;p&gt;That said, my first two examples are a lot easier to read...&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=115029" width="1" height="1"&gt;</description></item><item><title>2008 October 22 - Links for today &amp;laquo; My (almost) Daily Links</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#115012</link><pubDate>Wed, 22 Oct 2008 07:51:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:115012</guid><dc:creator>2008 October 22 - Links for today « My (almost) Daily Links</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;2008 October 22 - Links for today &amp;amp;laquo; My (almost) Daily Links&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=115012" width="1" height="1"&gt;</description></item><item><title>re: Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#114969</link><pubDate>Wed, 22 Oct 2008 07:04:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:114969</guid><dc:creator>Qbus</dc:creator><description>&lt;p&gt;Hmm, wouldn't the 100* and 300* give something funny? I understand 0.25*, which I read as that this will take up 25% of the width/height. But 300*? This will take up ALOT of space or is it just me?&lt;/p&gt;
&lt;p&gt;Another thing about sizing. I have created a game where I have a &amp;quot;GameSurface&amp;quot;, which is a Canvas. I have that set to a fixed size (800x600). I use this size in the game to spawn some bubbles inside the screen, so I use GameSurface.Width and GameSurface.Height to make sure my bubbles only spawn inside the actual game area. For fun, I would like the GameSurface to autoscale, so it were dependent on the size of the browser of fullscreen or something like that. So I tried out setting the width and height to &amp;quot;Auto&amp;quot; (can't remember if I tried out the &amp;quot;*&amp;quot; thing). But this gave me problems, and when I wanted to spawn a bubbles it crashed as my width and height were &amp;quot;NaN&amp;quot;, so it didn't have a value to use. &lt;/p&gt;
&lt;p&gt;Is this the same problem with the &amp;quot;0.25*&amp;quot; way of doing it?&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=114969" width="1" height="1"&gt;</description></item><item><title>re: Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#114864</link><pubDate>Wed, 22 Oct 2008 04:16:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:114864</guid><dc:creator>mehroz</dc:creator><description>&lt;p&gt;Pop Quiz: Obviously the third one is odd since the heights are constant and the row heights don't adjust when the browser window is resized. The first two are identical since 0.25/0.75 is same as 100/300.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=114864" width="1" height="1"&gt;</description></item><item><title>re: Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#114776</link><pubDate>Wed, 22 Oct 2008 01:41:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:114776</guid><dc:creator>Joe1972</dc:creator><description>&lt;p&gt;I thought Silverlight was like WPF, and the units are logical pixels and not physical pixels. &amp;nbsp;i.e. it's only 1 pixel on a 96dpi screen.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=114776" width="1" height="1"&gt;</description></item><item><title>re: Sizing in Silverlight – Pixels and Stars</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/10/21/sizing-in-silverlight-pixels-and-stars.aspx#114728</link><pubDate>Tue, 21 Oct 2008 23:27:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:114728</guid><dc:creator>yaip</dc:creator><description>&lt;p&gt;100* &amp;lt;&amp;gt; 100&lt;/p&gt;
&lt;p&gt;300* &amp;lt;&amp;gt; 300&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=114728" width="1" height="1"&gt;</description></item></channel></rss>