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?

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
Post a Comment