<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.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>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/120375.aspx</link><pubDate>Wed, 29 Oct 2008 17:03:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:120375</guid><dc:creator>Qbus</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/120375.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=120375</wfw:commentRss><description>&lt;p&gt;Great idea, I will look into that and return here.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://silverlight.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/120272.aspx</link><pubDate>Wed, 29 Oct 2008 14:57:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:120272</guid><dc:creator>kwatts</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/120272.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=120272</wfw:commentRss><description>&lt;p&gt;Looks good, but I think that it would be nice if you hosted working versions of your project so that we can see the code in action without having to build it.&amp;nbsp; Also, it would be nice if the code was available for browsing on-line so that we don&amp;#39;t have to download it separtely.&lt;/p&gt;&lt;p&gt;-Ken &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/119607.aspx</link><pubDate>Tue, 28 Oct 2008 21:13:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119607</guid><dc:creator>Qbus</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119607.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=119607</wfw:commentRss><description>&lt;p&gt;Thanks for the replies. I have made this little sample project be the answers in this post, maybe good for others with same problems as me.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://laumania.net/post/Fullscreen-samples-for-Silverlight.aspx"&gt;http://laumania.net/post/Fullscreen-samples-for-Silverlight.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your answers.&lt;/p&gt;</description></item><item><title>Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/119528.aspx</link><pubDate>Tue, 28 Oct 2008 19:36:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119528</guid><dc:creator>kwatts</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119528.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=119528</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s an example of a Silverlight application (Digital Logic Simulator) that scales on full-screen resize:&lt;/p&gt;&lt;p&gt;&lt;a href="http://kenwatts.blogspot.com/2008/08/digital-logic-simulator-in-silverlight.html"&gt;http://kenwatts.blogspot.com/2008/08/digital-logic-simulator-in-silverlight.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I have made the source available at CodePlex, you should see a link on that page.&lt;br /&gt;&lt;br /&gt;Also, here&amp;#39;s an example of a Silverlight application that resizes in the browser as the size of the browser changes:&lt;/p&gt;&lt;p&gt;&lt;a href="http://gearworld.dyndns.org:8082/devpreview/"&gt;http://gearworld.dyndns.org:8082/devpreview/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope that this helps!&lt;/p&gt;&lt;p&gt;-Ken&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/119384.aspx</link><pubDate>Tue, 28 Oct 2008 18:05:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119384</guid><dc:creator>Cabral</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119384.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=119384</wfw:commentRss><description>&lt;p&gt;First:&lt;/p&gt;This code set your app full screen mode: &lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;Application&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Current.Host.Content.IsFullScreen = !&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Application&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Current.Host.Content.IsFullScreen;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Second:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;To set the scale of your application into full screen mode you need to&amp;nbsp;set Width and Height value&amp;nbsp;of your LayoutRoot&amp;nbsp;to&amp;nbsp;&amp;quot;Auto&amp;quot; and &lt;font size="2"&gt;HorizontalAlignment and &lt;font size="2"&gt;VerticalAlignment set value to &amp;quot;&lt;font size="2"&gt;Stretch&amp;quot; this will resize your application or you can do it by events: &lt;font size="2"&gt;Content_FullScreenChanged or Content_Resized.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;I think the application cant start with fullscreen mode this can be set by click of button or any events, but not Load event.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/119233.aspx</link><pubDate>Tue, 28 Oct 2008 14:39:35 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119233</guid><dc:creator>Qbus</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119233.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=119233</wfw:commentRss><description>&lt;p&gt;Thanks both of you, I will take a look at it and return when ever I figure it out :)&lt;/p&gt;</description></item><item><title>Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/119222.aspx</link><pubDate>Tue, 28 Oct 2008 14:22:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119222</guid><dc:creator>James_Hardaker</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119222.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=119222</wfw:commentRss><description>&lt;p&gt;get the original size of your screen.&lt;/p&gt;
&lt;p&gt;Perhaps its 800*600.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Use a scale transform on your panel.&lt;/p&gt;
&lt;p&gt;Get the fullscreen size e.g. 1680 * 1050.&lt;/p&gt;
&lt;p&gt;ScaleX = 1680 / 800&lt;/p&gt;
&lt;p&gt;ScaleY = 1050 / 600&lt;/p&gt;
&lt;p&gt;i cant rembmer where centerX and CenterY goes but Im sure you can figure it out&lt;/p&gt;</description></item><item><title>Re: Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/118643.aspx</link><pubDate>Mon, 27 Oct 2008 20:52:45 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118643</guid><dc:creator>bartczernicki</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/118643.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=118643</wfw:commentRss><description>&lt;p&gt;Check this site out its pretty cool how its laid out and its really simple.&amp;nbsp; The controls stay in the middle and if you stretch the screen it always fills it up:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://silverlightdesign.nl/"&gt;http://silverlightdesign.nl/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So how do you do that?&amp;nbsp; Well first you need to set the background of your controls that you want to take up the width to stretch.&amp;nbsp; Notice the vertical gradients stretch very nicely like that ( &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Rectangle&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; Height&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;120&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; VerticalAlignment&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Bottom&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; Stroke&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;#00000000&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; Stretch&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Fill&amp;quot;&amp;gt; )&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;Second, you want to make sure you keep the elements in the middle so that they are not fixed.&amp;nbsp; You don&amp;#39;t want your elements to left of the screen if the person adjusts the size of the window.&amp;nbsp; For example, I used a stackpanel and keep my buttons alaways in the center of the screen and on the bottom doing this ( &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;HorizontalAlignment&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Center&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; VerticalAlignment&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Bottom&amp;quot;)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;Don&amp;#39;t use fixed width stuff other than the granular/leaf level controls.&amp;nbsp; That will get you in trouble quick.&amp;nbsp; For example, you can have a dialog box with a ton of controls laid out however you want..but lay that dialog box in the center and not position it with fixed points (i.e. Canvas.Left=&amp;quot;100).&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Scale when fullscreen and browser resize</title><link>http://forums.silverlight.net/forums/thread/118607.aspx</link><pubDate>Mon, 27 Oct 2008 20:19:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118607</guid><dc:creator>Qbus</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/118607.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=118607</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I have searched alot now I think, but can&amp;#39;t seem to find any good samples in Silverlight 2.0 (final release).&lt;/p&gt;&lt;p&gt;What I am looking for is actually two things.&lt;/p&gt;&lt;p&gt;&lt;b&gt;First &lt;/b&gt;I want to see some code that will put my application into fullscreen mode (this part is easy enough) and then scale my application to look the same in fullscreen mode (this is the hard part).&lt;/p&gt;&lt;p&gt;&lt;b&gt;Secondly &lt;/b&gt;I want to see some code/samples that will make my hole application always fill the browser window 100% both in width and height.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any good links to samples here, or just plain code would be help full.&lt;/p&gt;&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;Qbus &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>