<?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>Silverlight Tip of the Day #72 - How to call Page.xaml.cs from App.xaml.cs</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx</link><description>Your App class (App.xaml + App.xaml.cs) is primarily used for global events and declarations such as styles. The primary events this class handles by default include: Application_Startup() - called when the applications starts. Application_Exit() - called</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>re: Silverlight Tip of the Day #72 - How to call Page.xaml.cs from App.xaml.cs</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#172379</link><pubDate>Tue, 10 Feb 2009 17:18:27 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:172379</guid><dc:creator>mike.snow</dc:creator><description>&lt;p&gt;jackbond- Ah, good idea! Thanks for sharing it.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=172379" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #72 - How to call Page.xaml.cs from App.xaml.cs</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#172183</link><pubDate>Tue, 10 Feb 2009 10:02:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:172183</guid><dc:creator>jackbond</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I use a slightly more flexible approach; on my pages that need to be notified when the application is exiting, I have them implement the IApplicationExit interface. This way, in multiple page apps you don't need to figure out what type to cast to.&lt;/p&gt;
&lt;p&gt;public interface IApplicationExit&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; void ExitApplication();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;private void Application_Exit(object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; IApplicationExit ie = RootVisual as IApplicationExit;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; if(ie != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ie.ExitApplication();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=172183" width="1" height="1"&gt;</description></item><item><title>jin_u as blog  &amp;raquo; Blog Archive   &amp;raquo; ??????????????? ??? ??????</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#160820</link><pubDate>Thu, 15 Jan 2009 01:58:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:160820</guid><dc:creator>jin_u as blog  » Blog Archive   » ??????????????? ??? ??????</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;jin_u as blog &amp;nbsp;&amp;amp;raquo; Blog Archive &amp;nbsp; &amp;amp;raquo; ??????????????? ??? ??????&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=160820" width="1" height="1"&gt;</description></item><item><title>Silverlight Tips of the Day – Week 10</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#158076</link><pubDate>Thu, 08 Jan 2009 23:37:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:158076</guid><dc:creator>Visual Web Developer Team Blog</dc:creator><description>&lt;p&gt;This link provides a complete Tips of the Day Summary Outline - &lt;a rel="nofollow" target="_new" href="http://silverlight.net/blogs/msnow/archive/2009/01/02/silverlight-tips-of-the-day-summary-outline.aspx"&gt;silverlight.net/.../silverlight-tips-of-the-day-summary-outline.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=158076" width="1" height="1"&gt;</description></item><item><title>presentão de Ano Novo: dúzias de dicas e tutoriais de Silverlight ;)</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#155356</link><pubDate>Sat, 03 Jan 2009 11:25:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:155356</guid><dc:creator>o UAU nosso de cada dia</dc:creator><description>&lt;p&gt;essa lista eu copiei desse blog b&amp;#225;rbaro (acompanhe por RSS voc&amp;#234; tamb&amp;#233;m): uma lista de dicas super &amp;#250;teis&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=155356" width="1" height="1"&gt;</description></item><item><title>Silverlight Tips of the Day - Summary Outline</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#155097</link><pubDate>Fri, 02 Jan 2009 22:56:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:155097</guid><dc:creator>Silverlight Tips of the Day - Blog by Mike Snow</dc:creator><description>&lt;p&gt;The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=155097" width="1" height="1"&gt;</description></item><item><title>cs | HP.com HP United States</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#138821</link><pubDate>Fri, 28 Nov 2008 03:50:35 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:138821</guid><dc:creator>cs | HP.com HP United States</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;cs | HP.com HP United States&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=138821" width="1" height="1"&gt;</description></item><item><title>Silverlight Cream for November 27, 2008 -- #439</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#138687</link><pubDate>Thu, 27 Nov 2008 19:33:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:138687</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;Happy Thanksgiving everyone! In this issue: Martin Mihaylov, Tim Heuer, Katrien De Graeve, Expression&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=138687" width="1" height="1"&gt;</description></item><item><title>Dew Drop - November 26, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#137946</link><pubDate>Wed, 26 Nov 2008 16:25:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:137946</guid><dc:creator>Dew Drop - November 26, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Dew Drop - November 26, 2008 | Alvin Ashcraft's Morning Dew&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=137946" width="1" height="1"&gt;</description></item><item><title>2008 November 26 - Links for today &amp;laquo; My (almost) Daily Links</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#137687</link><pubDate>Wed, 26 Nov 2008 09:03:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:137687</guid><dc:creator>2008 November 26 - Links for today « My (almost) Daily Links</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;2008 November 26 - Links for today &amp;amp;laquo; My (almost) Daily Links&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=137687" width="1" height="1"&gt;</description></item><item><title>Tip of the Day - Pages, Threading und Monitoring at Programming with Silverlight, WPF &amp;amp; .NET</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#137657</link><pubDate>Wed, 26 Nov 2008 08:33:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:137657</guid><dc:creator>Tip of the Day - Pages, Threading und Monitoring at Programming with Silverlight, WPF &amp; .NET</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Tip of the Day - Pages, Threading und Monitoring at Programming with Silverlight, WPF &amp;amp;amp; .NET&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=137657" width="1" height="1"&gt;</description></item><item><title>Tip of the Day - Pages, Threading und Monitoring at Programming with Silverlight, WPF &amp;amp; .NET</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#137658</link><pubDate>Wed, 26 Nov 2008 08:33:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:137658</guid><dc:creator>Tip of the Day - Pages, Threading und Monitoring at Programming with Silverlight, WPF &amp; .NET</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Tip of the Day - Pages, Threading und Monitoring at Programming with Silverlight, WPF &amp;amp;amp; .NET&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=137658" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #72 - How to call Page.xaml.cs from App.xaml.cs</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#137410</link><pubDate>Tue, 25 Nov 2008 22:13:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:137410</guid><dc:creator>mike.snow</dc:creator><description>&lt;p&gt;Ah good point. I had looked for this.Exit not finding the event like you get for loading this.Loaded. I'll add a tip on it.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=137410" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #72 - How to call Page.xaml.cs from App.xaml.cs</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#137403</link><pubDate>Tue, 25 Nov 2008 21:57:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:137403</guid><dc:creator>chrisaswain</dc:creator><description>&lt;p&gt;Another option is to subscribe to the App.Current.Exit event from within your page or control. &amp;nbsp;&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=137403" width="1" height="1"&gt;</description></item><item><title>Silverlight Tip of the Day #72 - How to call Page.xaml.cs from App.xaml.cs</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/11/25/silverlight-tip-of-the-day-72-how-to-call-page-xaml-cs-from-app-xaml-cs.aspx#137352</link><pubDate>Tue, 25 Nov 2008 20:22:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:137352</guid><dc:creator>Microsoft Weblogs</dc:creator><description>&lt;p&gt;Your App class (App.xaml + App.xaml.cs) is primarily used for global events and declarations such as&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=137352" width="1" height="1"&gt;</description></item></channel></rss>