1

I use Modern UI framework, and I use page navigation feature

    var bs = new BBCodeBlock();
    try
    {
        bs.LinkNavigator.Navigate(new Uri("../SomePage.xaml", UriKind.Relative), this);
    }
    catch (Exception error)
    {
        ModernDialog.ShowMessage(error.Message, FirstFloor.ModernUI.Resources.NavigationFailed, MessageBoxButton.OK);
    }

I would like to pass a certain parameter, say "A" to the navigated page and receive it over there.

icebat
  • 4,696
  • 4
  • 22
  • 36

1 Answers1

1

If you use an IoC container, you can get a reference to the ViewModel for SomePage.xaml, and set the parameter there before navigating.

Mark Richman
  • 28,948
  • 25
  • 99
  • 159