public static void Navigate(Link location) { Instance.Thread.ExecuteOnMainThread(() => { Navigate(location, ((RootForm)Instance.RootForm).ActiveView); }); }
protected override void ShouldNavigate(Link link, Pane pane, Action handler) { RootForm.Invoke(new Action(() => { if (PaneManager.Instance.ShouldNavigate(link, pane, NavigationType.Forward)) { handler.Invoke(); } })); }
public static void Navigate(Link location, IMXView fromView) { if (location == null || NavigatedAddresses.Contains(location.Address)) { return; } NavigatedAddresses.Add(location.Address); Instance.Thread.QueueWorker(o => iApp.Navigate(location, fromView)); }
/// <summary> /// Cancels loading of the current layer and performs a navigation using the specified Link. /// </summary> /// <param name="link">The <see cref="Link"/> to navigate to.</param> public void CancelLoadAndNavigate(Link link) { CancelLoad = true; if (link == null || link.Address == null) { throw new ArgumentNullException("link", "Null URI supplied to CancelLoadAndNavigate."); } link.Parameters.AddRange(ActionParameters); iApp.Thread.ExecuteOnMainThread(() => { var fromView = PaneManager.Instance.FromNavContext(NavContext.OutputOnPane).CurrentView; iApp.Navigate(link, fromView); }); }
protected internal virtual void ShouldNavigate(Link link, Pane pane, Action handler) { handler.Invoke(); }