private void OnNavigateTitleLink(object sender, ExecutedRoutedEventArgs e) { if (LinkNavigator == null) { return; } var titleLink = e.Parameter as TitleLink; if (titleLink?.GroupKey != null) { _menu?.SwitchToGroupByKey(titleLink.GroupKey); return; } Uri uri; string parameter; string targetName; var eParameter = (e.Parameter as Link)?.Source ?? e.Parameter; if (NavigationHelper.TryParseUriWithParameters(eParameter, out uri, out parameter, out targetName)) { LinkNavigator.Navigate(uri, e.Source as FrameworkElement, parameter); } }
private void OnNavigateTitleLink(object sender, ExecutedRoutedEventArgs e) { if (LinkNavigator == null) { return; } var titleLink = e.Parameter as TitleLink; if (titleLink?.GroupKey != null && !titleLink.GroupKey.Contains(@"/")) { _menu?.SwitchToGroupByKey(titleLink.GroupKey); return; } var eParameter = (e.Parameter as Link)?.Source ?? e.Parameter; if (NavigationHelper.TryParseUriWithParameters(eParameter, out var uri, out var parameter, out var _, out _)) { LinkNavigator.Navigate(uri, e.Source as FrameworkElement, parameter); } }