void OnPushRequested(object sender, NavigationRequestedEventArgs e)
		{
			e.Task = PushPageAsync(e.Page, e.Animated);
		}
Exemple #2
0
 void OnInsertPageBeforeRequested(object sender, NavigationRequestedEventArgs e)
 {
     InsertPageBefore(e.Page, e.BeforePage);
 }
		void OnInsertPageBeforeRequested(object sender, NavigationRequestedEventArgs e)
		{
			InsertPageBefore(e.Page, e.BeforePage);
		}
 void OnPushRequested(object sender, NavigationRequestedEventArgs e)
 {
     SetPage(e.Page, e.Animated, false);
 }
Exemple #5
0
 void OnRemovedPageRequested(object sender, NavigationRequestedEventArgs e)
 {
     RemovePage(e.Page);
 }
 void OnRemovedPageRequested(object sender, NavigationRequestedEventArgs e)
 {
     RemovePage(e.Page, true);
     Platform.NativeToolbarTracker.UpdateToolBar();
 }
        void OnPopRequested(object sender, NavigationRequestedEventArgs e)
        {
            var newCurrent = Element.Peek(1);

            SetPage(newCurrent, e.Animated, true);
        }
 protected override void OnPopToRootRequested(object sender, NavigationRequestedEventArgs e)
 {
     base.OnPopToRootRequested(sender, e);
     System.Diagnostics.Debug.WriteLine($"NavPageOverrideRenderer - OnPopToRootRequested");
 }
 // This is where you would draw the new contents.
 private void OnPushRequested(object sender, NavigationRequestedEventArgs e)
 {
     e.Realize = true;
 }
Exemple #10
0
 void OnNavigationRequested(object?sender, NavigationRequestedEventArgs e)
 {
     SyncNavigationStack(e.Animated);
 }
 void OnPopToRootRequested(object sender, NavigationRequestedEventArgs nre)
 {
     _navigationStack.PopToRoot();
     nre.Task = Task.FromResult(true);
 }
Exemple #12
0
        // This is where you would draw the new contents.
        private void OnPushRequested(object sender, NavigationRequestedEventArgs e)
        {
#pragma warning disable CS0618 // Type or member is obsolete
            e.Realize = true;
#pragma warning restore CS0618 // Type or member is obsolete
        }
Exemple #13
0
        void OnPopRequested(object sender, NavigationRequestedEventArgs e)
        {
            var newCurrent = ((INavigationPageController)Element).Peek(1);

            SetPage(newCurrent, e.Animated, true);
        }
Exemple #14
0
        private async void OnRemovedPageRequested(object sender, NavigationRequestedEventArgs e)
        {
            await RemovePageAsync(e.Page, true, true);

            UpdateToolBar();
        }
Exemple #15
0
 private void OnPopRequested(object sender, NavigationRequestedEventArgs e)
 {
     e.Task = PopViewAsync(e.Page, e.Animated);
 }
Exemple #16
0
 private void OnPushedWithAnimation(object sender, NavigationRequestedEventArgs e)
 {
     e.Task = SwitchContentAsync(e.Page, e.Animated);
 }
 void OnInsertPageBeforeRequested(object sender, NavigationRequestedEventArgs e)
 {
     InsertPageBefore(e.Page, e.BeforePage);
     Platform.NativeToolbarTracker.UpdateNavigationItems(true);
 }
Exemple #18
0
        private void OnPoppedWithAnimation(object sender, NavigationRequestedEventArgs e)
        {
            var pageToShow = ((INavigationPageController)Element).Pages.Skip(1).FirstOrDefault();

            e.Task = pageToShow == null?Task.FromResult(false) : SwitchContentAsync(pageToShow, e.Animated, true);
        }
        void OnPopRequested(object sender, NavigationRequestedEventArgs e)
        {
            var newCurrent = (Page)Element.InternalChildren[Element.InternalChildren.Count - 2];

            SetPage(newCurrent, e.Animated, true);
        }
Exemple #20
0
 private void OnPoppedToRootWithAnimation(object sender, NavigationRequestedEventArgs e)
 {
     e.Task = SwitchContentAsync(e.Page, e.Animated, true, true);
 }
 void OnPopToRootRequested(object sender, NavigationRequestedEventArgs e)
 {
     SetPage(e.Page, e.Animated, true);
 }
Exemple #22
0
 private void OnRemoveRequested(NavigationRequestedEventArgs e) => throw new NotImplementedException();
Exemple #23
0
 void OnPushRequested(object sender, NavigationRequestedEventArgs e)
 {
     e.Task = PushPageAsync(e.Page, e.Animated);
 }
Exemple #24
0
 void OnPushRequested(object?sender, NavigationRequestedEventArgs e)
 {
     _controlsNavigationController?
     .OnPushRequested(e, this.MauiContext);
 }
 void OnPopToRootRequest(NavigationRequestedEventArgs request)
 {
     _viewStack.PopToRoot();
     request.Task = Task.FromResult(true);
 }
Exemple #26
0
 void OnPopRequested(object?sender, NavigationRequestedEventArgs e)
 {
     _controlsNavigationController?
     .OnPopRequestedAsync(e)
     .FireAndForget((exc) => Log.Warning(nameof(NavigationPage), $"{exc}"));
 }
Exemple #27
0
 void OnPopToRootRequested(object sender, NavigationRequestedEventArgs e)
 {
     e.Task = PopToRootAsync(e.Page, e.Animated);
 }
		void OnPopRequested(object sender, NavigationRequestedEventArgs e)
		{
			var newCurrent = (Page)Element.InternalChildren[Element.InternalChildren.Count - 2];
			SetPage(newCurrent, e.Animated, true);
		}
		void OnPopToRootRequested(object sender, NavigationRequestedEventArgs e)
		{
			e.Task = PopToRootAsync(e.Page, e.Animated);
		}
		void OnPushRequested(object sender, NavigationRequestedEventArgs e)
		{
			SetPage(e.Page, e.Animated, false);
		}
		void OnRemovedPageRequested(object sender, NavigationRequestedEventArgs e)
		{
			RemovePage(e.Page);
		}
 void _view_NavigationRequested(object sender, NavigationRequestedEventArgs args)
 {
     _model.ChangeFile(args.Direction);
 }