﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - Navigate to external web page error/crash MVVM</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Navigate-to-external-web-page-errorcrash-MVVM/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Navigate to external web page error/crash MVVM</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Navigate-to-external-web-page-errorcrash-MVVM/</link><pubDate>Fri, 16 Aug 2013 00:52:37 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I assume that you are using UXFrame and UXFrame.UriMapper to handle the navigation operation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;For your information, UXFrame is the core navigation component that acts as the container of navigable content and facilitates the navigation to pages. UXFrame supports navigation to pages in the local assembly or pages in external application package (.xap).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Instead of using the NavigationCommands, you can try to use Navigate method of HtmlWindow as shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://abracadabrareports.easylib.co.uk/webform1.aspx", UriKind.RelativeOrAbsolute), "_self");&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Navigate to external web page error/crash MVVM</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Navigate-to-external-web-page-errorcrash-MVVM/</link><pubDate>Thu, 15 Aug 2013 06:17:33 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;I get an error and my app crashes when I do this.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'courier new', tahoma; font-size: 9pt;"&gt;&amp;nbsp;private void ExecuteBarCodeLabels(object parameter)&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;        {
            IsBusy = true;
            SetUpBarCodeLabelsCommand.ProcessLabels(_batchId,"SLS01" ,(o, e) =&amp;gt;
                                           {
                                               if (e.Object != null &amp;amp;&amp;amp; e.Error == null)
                                               {
                                                   IsBusy = false;
 
                                                   NavigationCommands.Navigate.Execute(new Uri("http://abracadabrareports.easylib.co.uk/webform1.aspx", UriKind.Absolute),(UIElement)ISFocusManager.GetFocusedElement());
                                               }
                                               else
                                               {
                                                   IsBusy = false;
 
                                                   Utils.LogError(string.Format("{0}\n\nError found in: {1}", e.Error != null ? e.Error.Message : "Unknown Error", "SetUpBarCodeLabelsCommand:ProcessLabels"), true);
                                               }
                                           });
        }&lt;/pre&gt;
&lt;p&gt;  It creashes on&lt;/p&gt;&lt;pre&gt;NavigationCommands.Navigate.Execute(new Uri("http://abracadabrareports.easylib.co.uk/webform1.aspx", UriKind.Absolute),(UIElement)ISFocusManager.GetFocusedElement());&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am trying to run some db code (inserts) then navigate to an external (new) web page - can you please advise - thanks&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>