All day long, I'm calling
await this.NavigationService.NavigateAsync(typeof(Views.MyStankView));
And everything works great. Until I x:Bind a button click to another viewmodel that inherits from (MVVM-Light's) ViewModelBase and (Template10's) INavigable that has a method
public async Task NavigateToMyStankView(object sender, RoutedEventArgs e)
{
await this.NavigationService.NavigateAsync(typeof(Views.MyStankView));
}
The call to
await this.NavigationService.NavigateAsync(typeof(Views.MyStankView));
gets executed, but I don't GO anywhere. From within this viewmodel and it's parent, neither OnNavigatingFrom get's called. No errors, no navigation.
What gives? Why is a bound/injected viewmodel's NavigateAsync not navigating? While a "hard" viewmodel does navigate?
EDIT: Upon further inspection, this.NavigationService is null?!? Why so?