WPF c# window navigation -
i got 2 window , want navigate 1 when debug , shows nav null , why so? suppose null? because used same way navigate in past , work , try , doesn't work. if put nav == null , says
nav.navigate(new uri("homemenu.xaml", urikind.relativeorabsolute));
is null
here have :
navigationservice nav = navigationservice.getnavigationservice(this); if (nav != null) { nav.navigate(new uri("homemenu.xaml", urikind.relativeorabsolute)); }
is how can navigate window user control page?
getnavigationservice returns null when dependencyobject:
is navigationwindow.
is frame that:
1) hosted navigator.
2) has journalownership property set usesparentjournal.
is not part of content hosted navigator.
Comments
Post a Comment