<?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>New Features in Silverlight 3</title><link>http://forums.silverlight.net/forums/51.aspx</link><description>Discussions around new functionality in Silverlight 3 such as Out of Browser support</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Intercept back and forward buttons</title><link>http://forums.silverlight.net/forums/thread/240490.aspx</link><pubDate>Wed, 01 Jul 2009 23:21:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240490</guid><dc:creator>AustinLamb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240490.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=51&amp;PostID=240490</wfw:commentRss><description>&lt;p&gt;Hi Tom,&lt;/p&gt;
&lt;p&gt;You mention you&amp;#39;re not receiving the Navigating event when the browser&amp;#39;s back/forward button has been pressed.&amp;nbsp; This event should be getting raised - can you perhaps post a repro project and details on what browser/OS you&amp;#39;re using when you don&amp;#39;t get Navigating?&lt;/p&gt;
&lt;p&gt;You won&amp;#39;t be able to completely disable the browser&amp;#39;s Back button (which is a good thing&amp;nbsp;- imagine a malicious app that prevents you from leaving the app unless you close the browser).&amp;nbsp; But you could (if you really want to) hook into the JavaScript &amp;quot;onbeforeunload&amp;quot; event and prompt the user to tell them they&amp;#39;re about to leave the app.&amp;nbsp; The browser will give them OK/Cancel buttons, and (if I&amp;#39;m remembering this correctly - I may have it backwards) OK will still leave the app, but Cancel will remain on the app.&lt;/p&gt;</description></item><item><title>Re: Re: Intercept back and forward buttons</title><link>http://forums.silverlight.net/forums/thread/240301.aspx</link><pubDate>Wed, 01 Jul 2009 15:11:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240301</guid><dc:creator>TomGiam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240301.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=51&amp;PostID=240301</wfw:commentRss><description>&lt;p&gt;Perhaps we need a feature that launches the SL application directly in OOB mode.&lt;/p&gt;
&lt;p&gt;Kind of like click once applications, but cross platform.&lt;/p&gt;
&lt;p&gt;The browser is just a means to get to a SL application.&amp;nbsp; After the SL application is launched the browser is unnecessary.&lt;/p&gt;
&lt;p&gt;SL (and RIA in general) brings a paradigm shift in which we have web launchable applications and not web pages.&amp;nbsp; Once in the application, the application contains all of the necessary navigation so the back and forward buttons are unnecessary.&lt;/p&gt;
&lt;p&gt;We should not sacrifice innovation and ease of use just to maintain the hack which is HTML based applications.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Intercept back and forward buttons</title><link>http://forums.silverlight.net/forums/thread/239379.aspx</link><pubDate>Mon, 29 Jun 2009 22:27:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239379</guid><dc:creator>figuerres</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239379.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=51&amp;PostID=239379</wfw:commentRss><description>&lt;p&gt;PLEASE LEAVE THE BROWSER ALONE!&lt;/p&gt;
&lt;p&gt;i can&amp;#39;t count how many times i have hit pages that muck with the browser back button and make it a total pain in the a$$ to try and browse back.... &lt;/p&gt;
&lt;p&gt;if the user hits the button then they get what they asked for.&amp;nbsp; and you can not always count on client side javascript working.... or working right....&lt;/p&gt;</description></item><item><title>Re: Intercept back and forward buttons</title><link>http://forums.silverlight.net/forums/thread/239248.aspx</link><pubDate>Mon, 29 Jun 2009 17:10:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239248</guid><dc:creator>TomGiam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239248.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=51&amp;PostID=239248</wfw:commentRss><description>&lt;p&gt;My first&amp;nbsp;problem is that I&amp;#39;m not getting an event when the Back or Forward button from the browser is pressed.&lt;/p&gt;
&lt;p&gt;The second problem is that I need to be able to allow/disallow a &amp;quot;Back&amp;quot; or read the history and perform a back.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure if the navigation framework allows this.&amp;nbsp; I may need some kludge or javascript or just open a new window so that there is no history.&lt;/p&gt;
&lt;p&gt;My only concern is the &amp;quot;Back&amp;quot; button. since the Forward will be disabled (nothing to go to)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Intercept back and forward buttons</title><link>http://forums.silverlight.net/forums/thread/238981.aspx</link><pubDate>Mon, 29 Jun 2009 06:47:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:238981</guid><dc:creator>dpatra</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/238981.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=51&amp;PostID=238981</wfw:commentRss><description>&lt;p&gt;Hi Tom,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I guess the following code helps you. :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="kwd"&gt;private void&lt;/span&gt; NavButton_Click(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, RoutedEventArgs e)
&lt;b id="2"&gt;2    &lt;/b&gt;        {
&lt;b id="3"&gt;3    &lt;/b&gt;            MessageBoxResult mbr;
&lt;b id="4"&gt;4    &lt;/b&gt;            mbr= MessageBox.Show(&lt;span class="st"&gt;&amp;quot;Do you want to Navigate?&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;Navigation&amp;quot;&lt;/span&gt;, MessageBoxButton.OKCancel);
&lt;b id="5"&gt;5    &lt;/b&gt;            &lt;span class="kwd"&gt;if&lt;/span&gt; (mbr==MessageBoxResult.OK)
&lt;b id="6"&gt;6    &lt;/b&gt;            {
&lt;b id="7"&gt;7    &lt;/b&gt;                Button navigationButton = sender &lt;span class="kwd"&gt;as&lt;/span&gt; Button;
&lt;b id="8"&gt;8    &lt;/b&gt;                String goToPage = navigationButton.Tag.ToString();
&lt;b id="9"&gt;9    &lt;/b&gt;                &lt;span class="kwd"&gt;this&lt;/span&gt;.Frame.Navigate(&lt;span class="kwd"&gt;new&lt;/span&gt; Uri(goToPage, UriKind.Relative));
&lt;b id="10"&gt;10   &lt;/b&gt;            }
&lt;b id="11"&gt;11   &lt;/b&gt;        }
&lt;b id="12"&gt;12   &lt;/b&gt;
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks :)&lt;/p&gt;
&lt;p&gt;Diptimaya&lt;/p&gt;</description></item><item><title>Intercept back and forward buttons</title><link>http://forums.silverlight.net/forums/thread/238866.aspx</link><pubDate>Sun, 28 Jun 2009 20:17:56 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:238866</guid><dc:creator>TomGiam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/238866.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=51&amp;PostID=238866</wfw:commentRss><description>&lt;p&gt;Is there a way to Intercept the&amp;nbsp;back and forward buttons and then prompt the user if they really want to and then perform the action?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t really use navigation in my app, this is an attempt to warn them that they are leaving my app.&lt;/p&gt;
&lt;p&gt;I created a navigation frame around my layout grid like this:&lt;/p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&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;nav&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;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Frame&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; x&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;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Name&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;frame&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; JournalOwnership&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;UsesParentJournal&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Navigating&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Frame_Navigating&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;but, I&amp;#39;m not getting the Navigating event when I click on the buttons.&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;Thanks&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;Tom&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&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>