<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: FullScreenBehavior makes full-screen apps in WPF easy</title>
	<atom:link href="http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/</link>
	<description>I should be sleeping.</description>
	<lastBuildDate>Sun, 04 Dec 2011 05:16:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Resolution for full screen WPF application</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-10676</link>
		<dc:creator>Resolution for full screen WPF application</dc:creator>
		<pubDate>Mon, 07 Nov 2011 06:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-10676</guid>
		<description>&lt;p&gt;[...] the guide here, I have created a full-screen WPF application. But I met a problem: the various size &amp; [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] the guide here, I have created a full-screen WPF application. But I met a problem: the various size &amp; [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Resolution for full screen WPF application &#124; trouble86.com</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-10673</link>
		<dc:creator>Resolution for full screen WPF application &#124; trouble86.com</dc:creator>
		<pubDate>Mon, 07 Nov 2011 04:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-10673</guid>
		<description>&lt;p&gt;[...] the guide here, I have created a full-screen WPF application. But I met a problem: the various size [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] the guide here, I have created a full-screen WPF application. But I met a problem: the various size [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Grigory</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-9387</link>
		<dc:creator>Grigory</dc:creator>
		<pubDate>Fri, 05 Aug 2011 12:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-9387</guid>
		<description>&lt;p&gt;Unfortunately does not work with RibbonWindow that is derived from window. (Part of Microsoft Ribbon for WPF)
http://stackoverflow.com/questions/6956036/wpf-fullscreen-in-ribbonwindow&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Unfortunately does not work with RibbonWindow that is derived from window. (Part of Microsoft Ribbon for WPF)
<a href="http://stackoverflow.com/questions/6956036/wpf-fullscreen-in-ribbonwindow" rel="nofollow">http://stackoverflow.com/questions/6956036/wpf-fullscreen-in-ribbonwindow</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Edwards</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-3448</link>
		<dc:creator>Richard Edwards</dc:creator>
		<pubDate>Mon, 22 Nov 2010 21:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-3448</guid>
		<description>&lt;p&gt;Hi Josh,&lt;/p&gt;

&lt;p&gt;I&#039;m having some trouble compiling this in VS2010 with the BlendSLSDK_en.msi installed to get the Interactivity dll. I&#039;m getting the following error:&lt;/p&gt;

&lt;p&gt;Error   1   Unknown build error, &#039;Cannot resolve dependency to assembly &#039;System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e&#039; because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.&#039;    FullScreenDemo&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Josh,</p>

<p>I&#8217;m having some trouble compiling this in VS2010 with the BlendSLSDK_en.msi installed to get the Interactivity dll. I&#8217;m getting the following error:</p>

<p>Error   1   Unknown build error, &#8216;Cannot resolve dependency to assembly &#8216;System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e&#8217; because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.&#8217;    FullScreenDemo</p>]]></content:encoded>
	</item>
	<item>
		<title>By: longsam</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-2901</link>
		<dc:creator>longsam</dc:creator>
		<pubDate>Fri, 15 Oct 2010 18:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-2901</guid>
		<description>&lt;p&gt;Very interesting, thanks man!&lt;/p&gt;

&lt;p&gt;I would like more interactivity on full-screen mode such as:
  (1) key toggle between than only press ESC backing to normal state.
  (2) when i restore the window to normal mode, it should keep pre-state before it is made full-screen.&lt;/p&gt;

&lt;p&gt;So, i added your code.&lt;/p&gt;

&lt;p&gt;(1) Support to toggle modes
- creates a new attached property that names FullScreenKey, Key type, its default value is F11 (like common WebBrowers)
- in Window_KeyDown method involves the keyDown event, add a if statement&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;     private void Window_KeyDown(object sender, KeyEventArgs e)
    {
        var fullKey = GetFullScreenKey(AssociatedObject);
        var isFullScreen = GetIsFullScreen(AssociatedObject);

        if (e.Key == fullKey &amp;&amp; e.Handled == false)
        {
            SetIsFullScreen(AssociatedObject, !isFullScreen);
        }

        else if (e.Key == Key.Escape &amp;&amp; e.Handled == false)
        {

            if (RestoreOnEscape)
            {

                SetIsFullScreen(AssociatedObject, false);

            }   // if

        }   // if
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;(2) Keep pre-state of the window
- In OnIsFullScreenChanged handler method, changes little
...
            if (newValue)
                {
                    // stores its pre-fullscreen state
                    window.Tag = window.WindowState;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;                window.WindowStyle = WindowStyle.None;
                window.Topmost = true;
                window.WindowState = WindowState.Maximized;

            }   // if
            else
            {
                window.Topmost = false;
                window.WindowStyle = WindowStyle.SingleBorderWindow;

                // set back to pre-state
                //window.WindowState = WindowState.Normal;
                window.WindowState = (WindowState)window.Tag;
            }   // else
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;....&lt;/p&gt;

&lt;p&gt;quite great, happy coding!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very interesting, thanks man!</p>

<p>I would like more interactivity on full-screen mode such as:
  (1) key toggle between than only press ESC backing to normal state.
  (2) when i restore the window to normal mode, it should keep pre-state before it is made full-screen.</p>

<p>So, i added your code.</p>

<p>(1) Support to toggle modes
- creates a new attached property that names FullScreenKey, Key type, its default value is F11 (like common WebBrowers)
- in Window_KeyDown method involves the keyDown event, add a if statement</p>

<pre><code>     private void Window_KeyDown(object sender, KeyEventArgs e)
    {
        var fullKey = GetFullScreenKey(AssociatedObject);
        var isFullScreen = GetIsFullScreen(AssociatedObject);

        if (e.Key == fullKey &amp;amp;&amp;amp; e.Handled == false)
        {
            SetIsFullScreen(AssociatedObject, !isFullScreen);
        }

        else if (e.Key == Key.Escape &amp;amp;&amp;amp; e.Handled == false)
        {

            if (RestoreOnEscape)
            {

                SetIsFullScreen(AssociatedObject, false);

            }   // if

        }   // if
    }
</code></pre>

<p>(2) Keep pre-state of the window
- In OnIsFullScreenChanged handler method, changes little
&#8230;
            if (newValue)
                {
                    // stores its pre-fullscreen state
                    window.Tag = window.WindowState;</p>

<pre><code>                window.WindowStyle = WindowStyle.None;
                window.Topmost = true;
                window.WindowState = WindowState.Maximized;

            }   // if
            else
            {
                window.Topmost = false;
                window.WindowStyle = WindowStyle.SingleBorderWindow;

                // set back to pre-state
                //window.WindowState = WindowState.Normal;
                window.WindowState = (WindowState)window.Tag;
            }   // else
</code></pre>

<p>&#8230;.</p>

<p>quite great, happy coding!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jmix90</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-2758</link>
		<dc:creator>Jmix90</dc:creator>
		<pubDate>Thu, 23 Sep 2010 10:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-2758</guid>
		<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Nice behavior and tip !&lt;/p&gt;

&lt;p&gt;As I am pointing out in my blog&#039;s post (http://blog.lexique-du-net.com/index.php?post/2010/09/23/Quick-tip-%3A-My-WPF-Fullscreen-window-still-display-a-border-on-right-and-bottom-side...-how-to-remove-it) without putting the ResizeMode to NoResize, some borders may still be visible ...&lt;/p&gt;

&lt;p&gt;Have a nice day :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello,</p>

<p>Nice behavior and tip !</p>

<p>As I am pointing out in my blog&#8217;s post (<a href="http://blog.lexique-du-net.com/index.php?post/2010/09/23/Quick-tip-%3A-My-WPF-Fullscreen-window-still-display-a-border-on-right-and-bottom-side...-how-to-remove-it" rel="nofollow">http://blog.lexique-du-net.com/index.php?post/2010/09/23/Quick-tip-%3A-My-WPF-Fullscreen-window-still-display-a-border-on-right-and-bottom-side&#8230;-how-to-remove-it</a>) without putting the ResizeMode to NoResize, some borders may still be visible &#8230;</p>

<p>Have a nice day :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Yet another blog about : WPF, Surface, Win 7, NUI....</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-2757</link>
		<dc:creator>Yet another blog about : WPF, Surface, Win 7, NUI....</dc:creator>
		<pubDate>Thu, 23 Sep 2010 10:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-2757</guid>
		<description>&lt;p&gt;&lt;strong&gt;Quick tip : My WPF Fullscreen window still display a border on right and bottom side... how to remove it...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Creating a fullscreen window in WPF is quite simple, you just have to set WindowState to Maximized and WindowStyle to None. But in my current project I was facing a little drawback : a border was still visible on the bottom and on the right side of my...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><strong>Quick tip : My WPF Fullscreen window still display a border on right and bottom side&#8230; how to remove it&#8230;</strong></p>

<p>Creating a fullscreen window in WPF is quite simple, you just have to set WindowState to Maximized and WindowStyle to None. But in my current project I was facing a little drawback : a border was still visible on the bottom and on the right side of my&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: kris</title>
		<link>http://josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-wpf/comment-page-1/#comment-2038</link>
		<dc:creator>kris</dc:creator>
		<pubDate>Mon, 12 Jul 2010 10:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.josheinstein.com/blog/index.php/2010/02/fullscreenbehavior-makes-full-screen-apps-in-wpf-easy/#comment-2038</guid>
		<description>&lt;p&gt;cool, thanks! works like a charm.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>cool, thanks! works like a charm.</p>]]></content:encoded>
	</item>
</channel>
</rss>

