<?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 for a geek trapped in a cool guy's body</title>
	<atom:link href="http://www.ageektrapped.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ageektrapped.com/blog</link>
	<description>Trapped online since 2004</description>
	<lastBuildDate>Wed, 11 Jan 2012 10:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on How to Save XAML as an Image by Gavin</title>
		<link>http://www.ageektrapped.com/blog/how-to-save-xaml-as-an-image/comment-page-1/#comment-817</link>
		<dc:creator>Gavin</dc:creator>
		<pubDate>Wed, 11 Jan 2012 10:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/how-to-save-xaml-as-an-image/#comment-817</guid>
		<description>Useful little tool, thanks!</description>
		<content:encoded><![CDATA[<p>Useful little tool, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unable to set TestContext property for my class (.NET Compact Framework) by Alex Mancilla</title>
		<link>http://www.ageektrapped.com/blog/unable-to-set-testcontext-property-for-my-class-net-compact-framework/comment-page-1/#comment-806</link>
		<dc:creator>Alex Mancilla</dc:creator>
		<pubDate>Mon, 28 Nov 2011 19:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/?p=230#comment-806</guid>
		<description>I&#039;m having the same issue with a VS2008 application for mobile devices, I could not find the test config file, the restart of the IDE did not work</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same issue with a VS2008 application for mobile devices, I could not find the test config file, the restart of the IDE did not work</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting properties for WiX in MSBuild by Shay</title>
		<link>http://www.ageektrapped.com/blog/setting-properties-for-wix-in-msbuild/comment-page-1/#comment-805</link>
		<dc:creator>Shay</dc:creator>
		<pubDate>Mon, 28 Nov 2011 14:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/setting-properties-for-wix-in-msbuild/#comment-805</guid>
		<description>dont forget to put 
1.0.0
before 
Debug;ProductVersion=$(Version)

like this:

1.0.0
  bin\$(Configuration)\
  obj\$(Configuration)\
  Debug;ProductVersion=$(Version)


by the way great article saved me some time figuring it out thanks!!</description>
		<content:encoded><![CDATA[<p>dont forget to put<br />
1.0.0<br />
before<br />
Debug;ProductVersion=$(Version)</p>
<p>like this:</p>
<p>1.0.0<br />
  bin\$(Configuration)\<br />
  obj\$(Configuration)\<br />
  Debug;ProductVersion=$(Version)</p>
<p>by the way great article saved me some time figuring it out thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #3: An AutoComplete TextBox in WPF, Part 4 &#8211; WPF Flourishes by Kzmp</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-803</link>
		<dc:creator>Kzmp</dc:creator>
		<pubDate>Sat, 26 Nov 2011 21:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-803</guid>
		<description>Hi,
Thanks for sharing your code.
I wanted to bring your attention to this alternative here: http://code.google.com/p/kocontrols/downloads/list</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for sharing your code.<br />
I wanted to bring your attention to this alternative here: <a href="http://code.google.com/p/kocontrols/downloads/list" rel="nofollow">http://code.google.com/p/kocontrols/downloads/list</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #1: Cue Banners in Windows Forms (EM_SETCUEBANNER, Text Prompt) by Lance Boudreaux</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-1-cue-banners-in-windows-forms-em_setcuebanner-text-prompt/comment-page-1/#comment-789</link>
		<dc:creator>Lance Boudreaux</dc:creator>
		<pubDate>Wed, 31 Aug 2011 13:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-1-cue-banners-in-windows-forms-em_setcuebanner-text-prompt/#comment-789</guid>
		<description>I was having trouble getting this working on the project I work on which has been upgraded from 2005 to 2008 to 2010.  I discovered that you must have the Common Controls dependency referenced in your app.manifest:


		
			
		
	

Thought this might be useful to someone.</description>
		<content:encoded><![CDATA[<p>I was having trouble getting this working on the project I work on which has been upgraded from 2005 to 2008 to 2010.  I discovered that you must have the Common Controls dependency referenced in your app.manifest:</p>
<p>Thought this might be useful to someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #7: Displaying Enums in WPF by Steve C</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-773</link>
		<dc:creator>Steve C</dc:creator>
		<pubDate>Thu, 07 Jul 2011 03:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-773</guid>
		<description>Linus, read AC374&#039;s note. You have to swap a bit of code to make it work.</description>
		<content:encoded><![CDATA[<p>Linus, read AC374&#8242;s note. You have to swap a bit of code to make it work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting properties for WiX in MSBuild by Mike</title>
		<link>http://www.ageektrapped.com/blog/setting-properties-for-wix-in-msbuild/comment-page-1/#comment-765</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 12 May 2011 16:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/setting-properties-for-wix-in-msbuild/#comment-765</guid>
		<description>Very nice -- saved me lots of time and potential headaches!</description>
		<content:encoded><![CDATA[<p>Very nice &#8212; saved me lots of time and potential headaches!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #1: Cue Banners in Windows Forms (EM_SETCUEBANNER, Text Prompt) by Eric Lawrence</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-1-cue-banners-in-windows-forms-em_setcuebanner-text-prompt/comment-page-1/#comment-761</link>
		<dc:creator>Eric Lawrence</dc:creator>
		<pubDate>Sat, 09 Apr 2011 04:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-1-cue-banners-in-windows-forms-em_setcuebanner-text-prompt/#comment-761</guid>
		<description>The definition of the COMBOBOXINFO structure isn&#039;t quite right and won&#039;t work on 64bit. stateButton should be defined as int (or uint) rather than IntPtr.</description>
		<content:encoded><![CDATA[<p>The definition of the COMBOBOXINFO structure isn&#8217;t quite right and won&#8217;t work on 64bit. stateButton should be defined as int (or uint) rather than IntPtr.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The WPF Application Class: Overview and Gotcha by Miral</title>
		<link>http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/comment-page-1/#comment-760</link>
		<dc:creator>Miral</dc:creator>
		<pubDate>Fri, 08 Apr 2011 00:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/#comment-760</guid>
		<description>I&#039;m pretty sure that the &quot;correct&quot; solution in this case is to set the ShutdownMode to Explicit before creating your login window, and then set it back to either OnLastWindowClose or OnMainWindowClose *after* creating (and possibly also showing) your main window.</description>
		<content:encoded><![CDATA[<p>I&#8217;m pretty sure that the &#8220;correct&#8221; solution in this case is to set the ShutdownMode to Explicit before creating your login window, and then set it back to either OnLastWindowClose or OnMainWindowClose *after* creating (and possibly also showing) your main window.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The WPF Application Class: Overview and Gotcha by jl</title>
		<link>http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/comment-page-1/#comment-759</link>
		<dc:creator>jl</dc:creator>
		<pubDate>Sat, 19 Mar 2011 02:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/#comment-759</guid>
		<description>

public class MyApp : Application
{
    protected override void OnStartup(object sender, StartUpEventArgs e)
    {
        if (firstRun)
        {
            MyConfigDialog dialog = new MyConfigDialog();
            if (!dialog.ShowDialog().Value)
            {
                this.Shutdown();
            }
        }
        MyMainWindow window = new MyMainWindow();
        //guess what? this doesn&#039;t work!
        this.MainWindow = window;
        window.Show();
    }
}
I’m seriously baffled by this. Looking around in Reflector, the code I’m looking at says it shouldn’t act like this. I also don’t touch Application.ShutdownMode (I’ve tested this with OnLastWindowClose and with OnMainWindowClose). 





I think the problem with this one has to do with the window count as well as the MainWindow property.  As you noticed with the first example posted, showing a dialog and closing it causes the app to shut down as the MainWindow property is nulled.  The same is happening here, and if you do happen to change the ShutdownMode to OnLastWindowClose, you get essentially the same behavior, because the first window (the dialog) is opened, and then the last window (the dialog) is closed (shutting down the app), before the next window is instantiated.  I haven&#039;t tested, but would be willing to bet that if you set the ShutdownMode to Explicit, you would not get this (not neccessarily recommended, just saying...)


All that said, many thanks for the post.  As a relative newbie to any programming other than VBA, this got me really digging around in WPF application lifetime management.  If you like, I can post the MSDN links where I found this info (along with many other related and quite helpful topics).

Cheers and thanks again,
j.</description>
		<content:encoded><![CDATA[<p>public class MyApp : Application<br />
{<br />
    protected override void OnStartup(object sender, StartUpEventArgs e)<br />
    {<br />
        if (firstRun)<br />
        {<br />
            MyConfigDialog dialog = new MyConfigDialog();<br />
            if (!dialog.ShowDialog().Value)<br />
            {<br />
                this.Shutdown();<br />
            }<br />
        }<br />
        MyMainWindow window = new MyMainWindow();<br />
        //guess what? this doesn&#8217;t work!<br />
        this.MainWindow = window;<br />
        window.Show();<br />
    }<br />
}<br />
I’m seriously baffled by this. Looking around in Reflector, the code I’m looking at says it shouldn’t act like this. I also don’t touch Application.ShutdownMode (I’ve tested this with OnLastWindowClose and with OnMainWindowClose). </p>
<p>I think the problem with this one has to do with the window count as well as the MainWindow property.  As you noticed with the first example posted, showing a dialog and closing it causes the app to shut down as the MainWindow property is nulled.  The same is happening here, and if you do happen to change the ShutdownMode to OnLastWindowClose, you get essentially the same behavior, because the first window (the dialog) is opened, and then the last window (the dialog) is closed (shutting down the app), before the next window is instantiated.  I haven&#8217;t tested, but would be willing to bet that if you set the ShutdownMode to Explicit, you would not get this (not neccessarily recommended, just saying&#8230;)</p>
<p>All that said, many thanks for the post.  As a relative newbie to any programming other than VBA, this got me really digging around in WPF application lifetime management.  If you like, I can post the MSDN links where I found this info (along with many other related and quite helpful topics).</p>
<p>Cheers and thanks again,<br />
j.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

