WPF BROWSER APPLICATION NAVIGATION PROBLEMI have a wpf browser applicaton <br/><br/>all is working fine but i like to change th looks a little.<br/><br/>I like to navigate from 1 page to another by clicking a button instead of a hyperlink.<br/><br/>I have tryed everything but i can't get it done.<br/><br/>is it even possible or not ?<br/><hr class="sig">More knowledge, means more problems.© 2009 Microsoft Corporation. All rights reserved.Tue, 30 Jun 2009 21:55:17 Z2f7f6e30-82f6-498e-b8e9-ec58d59baeebhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#2f7f6e30-82f6-498e-b8e9-ec58d59baeebhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#2f7f6e30-82f6-498e-b8e9-ec58d59baeeba_Nightblade_http://social.msdn.microsoft.com/Profile/en-US/?user=a_Nightblade_WPF BROWSER APPLICATION NAVIGATION PROBLEMI have a wpf browser applicaton <br/><br/>all is working fine but i like to change th looks a little.<br/><br/>I like to navigate from 1 page to another by clicking a button instead of a hyperlink.<br/><br/>I have tryed everything but i can't get it done.<br/><br/>is it even possible or not ?<br/><hr class="sig">More knowledge, means more problems.Tue, 30 Jun 2009 01:01:26 Z2009-06-30T01:01:26Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#b3ba4900-e5d2-48fb-b428-4d760524b914http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#b3ba4900-e5d2-48fb-b428-4d760524b914Mark Wilson-Thomashttp://social.msdn.microsoft.com/Profile/en-US/?user=Mark%20Wilson-ThomasWPF BROWSER APPLICATION NAVIGATION PROBLEMYou can use the NavigationService directly for navigation in XBAPs from any control. For example if you wanted to use a Button for navigation, you might wire up its button event handler like so (this snippet shows me navigating to a new Page called Page2, which is in my XBAP project).<br/><br/>The back and forward functionality in IE is still retained in these cases.<br/><br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>using</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> System.Windows.Navigation;</span></p> ....<br/><br/><span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">private</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">void</span></span><span style="font-size:x-small"> button1_Click(</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">object</span></span><span style="font-size:x-small"> sender, </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">RoutedEventArgs</span></span><span style="font-size:x-small"> e) <p>{</p> <font size=2> <p> </p> </font></span></p> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">this</span></span><span style="font-size:x-small">.ns = </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">NavigationService</span></span><span style="font-size:x-small">.GetNavigationService(</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">this</span></span><span style="font-size:x-small">);<font size=2> <p> </p> </font></span></p> <p><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Page</span></span><span style="font-size:x-small"> p = </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">new</span></span><span style="font-size:x-small"> </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Page2</span></span><span style="font-size:x-small">(); <p>ns.Navigate(p);</p> <p>}<br/><br/>Mark<br/><br/>NB: This sort of question is better posed on the WPF platform forum <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf">http://social.msdn.microsoft.com/Forums/en-US/wpf</a> - this forum is really for questions about the Visual Studio WPF and Silverlight Designers.</p> </span></p><hr class="sig">Mark Wilson-Thomas - Program Team - WPF &amp; SL Designer for Visual Studio - posts are provided 'as-is'Tue, 30 Jun 2009 02:03:34 Z2009-06-30T02:03:34Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#e27dc07e-648c-4c14-b9cd-928d3c7bff83http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#e27dc07e-648c-4c14-b9cd-928d3c7bff83Mark Wilson-Thomashttp://social.msdn.microsoft.com/Profile/en-US/?user=Mark%20Wilson-ThomasWPF BROWSER APPLICATION NAVIGATION PROBLEMYou might also find this MSDN article informative: <a href="http://msdn.microsoft.com/en-us/library/ms750478.aspx">http://msdn.microsoft.com/en-us/library/ms750478.aspx</a><hr class="sig">Mark Wilson-Thomas - Program Team - WPF &amp; SL Designer for Visual Studio - posts are provided 'as-is'Tue, 30 Jun 2009 02:05:03 Z2009-06-30T02:05:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#391e9dc5-f2b9-4984-ba99-f29e087e2590http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#391e9dc5-f2b9-4984-ba99-f29e087e2590a_Nightblade_http://social.msdn.microsoft.com/Profile/en-US/?user=a_Nightblade_WPF BROWSER APPLICATION NAVIGATION PROBLEMmark.<br/><br/><br/>Thank you for the responce it did solve my problem.<br/><br/>and the page from the library help me out a lot.<br/><br/><br/>Sorry if posted it in the wrong forum but i didn't know <br/><br/><br/><br/>I just have 1 question left.<br/><br/><br/>I see more people work in C#  then in VB<br/><br/>is VB limited with options compared to C# ?<br/><br/>or is there another reason.<hr class="sig">More knowledge, means more problems.Tue, 30 Jun 2009 11:48:29 Z2009-06-30T11:48:29Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#1d9a8046-52b7-4de2-88fb-a0b9da060d25http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2f7f6e30-82f6-498e-b8e9-ec58d59baeeb#1d9a8046-52b7-4de2-88fb-a0b9da060d25Mark Wilson-Thomashttp://social.msdn.microsoft.com/Profile/en-US/?user=Mark%20Wilson-ThomasWPF BROWSER APPLICATION NAVIGATION PROBLEMYou are most welcome, a_Nightblade_ - and my comment regarding the correct forum was simply to help with future postings not as a reprimand :-)<br/><br/>With regard to WPF and Silverlight, there is no functional limitation/advantage between the two languages (both are fully supported for building such applications). I do not have data on the percentage of users using each language.<br/><br/>The reason you see many postings in C# is simply because many Microsoft product teams use C# internally, which means that when team members respond to your postings they are likely to use the language they use. If you want to see just how much can be accomplished in VB.NET with WPF and Silverlight, I recommend taking a look at my colleague Karl Shifflett's blog: <br/><br/><a href="http://karlshifflett.wordpress.com/">http://karlshifflett.wordpress.com/</a><br/><br/>Karl's language of choice is VB.NET.<br/><br/><br/>Mark <hr class=sig> Mark Wilson-Thomas - Program Team - WPF &amp; SL Designer for Visual Studio - posts are provided 'as-is'Tue, 30 Jun 2009 21:55:17 Z2009-06-30T21:55:40Z