wpf - Modern UI - How to make a link load its content in "_top"? -


i have moderntab control, i'm dynamically adding link:

installationtab.links.add(new link { displayname = "review configuration", source = new uri("/views/installationprogress.xaml", urikind.relative) }); 

i'd installationprogress.xaml load in top frame instead of current content frame.

how can this?

enter image description here

i answered own question, in case else finds here:

this 1 example of "hijacking" click on moderntab. here, can force content load in top frame, example:

handle selectedsourcechanged event of moderntab:

mymoderntab.selectedsourcechanged += mymoderntab_selectedsourcechanged;

void mymoderntab_selectedsourcechanged(object sender, sourceeventargs e) {     if (e.source.originalstring.endswith("foo.xaml"))     {         var url = "/pages/foo.xaml";         var bb = new bbcodeblock();         bb.linknavigator.navigate(new uri(url, urikind.relative), this, navigationhelper.frametop);     } } 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -