User Profile & Activity

Randine Perry Member
Posted: September 20, 2012 6:27 AM

Thanks for the sample Navigation project, I looked throught the project and included the necessary NavigationServiceProvider classes etc into my project, I am using UXCallOut StylishLabel_MouseLeftButtonDown event to execute

NavigationServiceProvider.Navigate(new Uri("/Views/Page.xaml", UriKind.Relative));


but nothing happens, the code execute, but placing a breakpoint and stepping through the code reveals the below errors.

Detail error on the following .

public static void Navigate(Uri uri)
{


NavigationCommands.Navigate.Execute(uri, (UIElement)ISFocusManager.GetFocusedElement());

}


+ AbsolutePath 'uri.AbsolutePath' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}

+ AbsoluteUri 'uri.AbsoluteUri' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}
+ DnsSafeHost 'uri.DnsSafeHost' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}
+ Fragment 'uri.Fragment' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}
+ Host 'uri.Host' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}
IsAbsoluteUri false bool
+ IsUnc 'uri.IsUnc' threw an exception of type 'System.InvalidOperationException' bool {System.InvalidOperationException}
+ LocalPath 'uri.LocalPath' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}
OriginalString "/EcoRating" string
+ Port 'uri.Port' threw an exception of type 'System.InvalidOperationException' int {System.InvalidOperationException}
+ Query 'uri.Query' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}
+ Scheme 'uri.Scheme' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}
UserEscaped false bool
+ UserInfo 'uri.UserInfo' threw an exception of type 'System.InvalidOperationException' string {System.InvalidOperationException}


The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


Invalid at the top level of the document. Error processing resource 'file:///C:/Users/Randine/AppData/Local/Temp/VSD1.tmp.X...

/Views/Page.xaml


Help..


Posted: September 17, 2012 5:10 AM
Hello much appreciated for your comment abot using commands, but in this instant I am not building any index of of any kind, I am using this because I like the UXCallOut which is really cool.


Still having some errors as I mentioned I am a beginner at this, I get the below error on the code I am using.


this.NavigationService.Navigate((new Uri("/SilverLightDatabaseExample;Views/Menu.xaml", UriKind.Relative)));


The error:Object reference not set to an instance of an object.

NullReferenceException was unhandled by user code.



Please clarify?


All times are GMT -5. The time now is 2:49 AM.
Previous Next