Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
795
possible bug in HyperlinkColumn links to relative silverlight navigation app pages
posted

I'm attempting to use HyperlinkColumn inside a silverlight navigation app.  SL navigation apps use named anchors for navigation between different pages in the same app like:

#/SrvTry1?AccountID=130129&OnlyActive=True

or

#/Circuits?CircuitID=24

I don't think your HyperlinkColumn class is handling this type of relative URI correctly.  I have the following setup:

When I click on the link from my DSLs page, the address in my address bar incorrectly changes from:

http://mypc/FM.Web/FMTestPage.aspx#/DSLs

to

http://mypc/FM.Web/FMTestPage.aspx#/DSLs$/Circuits?CircuitID=73

instead of:

http://mypc/FM.Web/FMTestPage.aspx#/Circuits?CircuitID=73

like it should be.

My hyperlink column is bound to a property that returns a Uri of the following type:

return new Uri(string.Format("#/Circuits?CircuitID={0}", CircuitID), UriKind.Relative);

Futher,

System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(string.Format("#/Circuits?CircuitID={0}", CircuitID), UriKind.Relative));

works as you would expect so I don't think it is a problem my code but could be wrong of course.