public override void OnNavigated(object sender, NavigationEventArgsEx e) { // Pass to base first base.OnNavigated(sender, e); // The parameter could be a list name if activated by speech if (!string.IsNullOrEmpty(e.Parameter)) { string listName = e.Parameter; // Try to find the list var list = lists.Where((l) => l.Title.Equals(listName, StringComparison.CurrentCultureIgnoreCase)).FirstOrDefault(); // If found, focus it if (list != null) { CurrentList = list; } } }
/// <summary> /// Allows inherited classes to handle when navigation has completed. /// </summary> /// <param name="sender"> /// The sender of the event (usually the frame). /// </param> /// <param name="e"> /// A <see cref="NavigationEventArgs"/> that contains the event data. /// </param> public override void OnNavigated(object sender, NavigationEventArgsEx e) { }