124 references to NavigationPage
Microsoft.Maui.Controls (90)
Menu\MenuItemTracker.cs (1)
170 if (propertyChangedEventArgs.PropertyName == NavigationPage.CurrentPageProperty.PropertyName ||
NavigationPage\NavigationPage.cs (16)
15 public partial class NavigationPage : Page, IPageContainer<Page>, IBarElement, IElementConfiguration<NavigationPage>, IStackNavigationView, IToolbarElement 25 public static readonly BindableProperty HasBackButtonProperty = BindableProperty.CreateAttached("HasBackButton", typeof(bool), typeof(NavigationPage), true); 37 public static readonly BindableProperty TitleIconImageSourceProperty = BindableProperty.CreateAttached("TitleIconImageSource", typeof(ImageSource), typeof(NavigationPage), default(ImageSource)); 40 public static readonly BindableProperty IconColorProperty = BindableProperty.CreateAttached("IconColor", typeof(Color), typeof(NavigationPage), null); 43 public static readonly BindableProperty TitleViewProperty = BindableProperty.CreateAttached("TitleView", typeof(View), typeof(NavigationPage), null, 46 static readonly BindablePropertyKey CurrentPagePropertyKey = BindableProperty.CreateReadOnly(nameof(CurrentPage), typeof(Page), typeof(NavigationPage), null, propertyChanged: OnCurrentPageChanged); 51 static readonly BindablePropertyKey RootPagePropertyKey = BindableProperty.CreateReadOnly(nameof(RootPage), typeof(Page), typeof(NavigationPage), null); 79 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<NavigationPage>>(() => new PlatformConfigurationRegistry<NavigationPage>(this)); 241 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning(e, null); 419 readonly Lazy<PlatformConfigurationRegistry<NavigationPage>> _platformConfigurationRegistry; 422 public new IPlatformElementConfiguration<T, NavigationPage> On<T>() where T : IConfigPlatform 516 if (newValue is Page newPage && ((NavigationPage)bindable).HasAppeared) 725 public MauiNavigationImpl(NavigationPage owner) 731 NavigationPage Owner { get; } 881 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning("RemovePage called for CurrentPage object. This can result in undesired behavior, consider calling PopAsync instead.");
NavigationPage\NavigationPage.Legacy.cs (3)
241 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning("RemovePage called for CurrentPage object. This can result in undesired behavior, consider calling PopAsync instead."); 260 public NavigationImpl(NavigationPage owner) 266 NavigationPage Owner { get; }
NavigationPage\NavigationPageToolbar.cs (29)
11 NavigationPage _currentNavigationPage; 22 List<NavigationPage> _navigationPagesStack = new List<NavigationPage>(); 23 internal NavigationPage CurrentNavigationPage => _currentNavigationPage; 46 if (e.IsOneOf(NavigationPage.HasNavigationBarProperty, 47 NavigationPage.HasBackButtonProperty, 48 NavigationPage.TitleIconImageSourceProperty, 49 NavigationPage.TitleViewProperty, 50 NavigationPage.IconColorProperty) || 53 NavigationPage.BarBackgroundColorProperty, 54 NavigationPage.BarBackgroundProperty, 55 NavigationPage.BarTextColorProperty) || 62 else if (_currentPage != sender && sender == _currentNavigationPage && e.Is(NavigationPage.CurrentPageProperty)) 75 _currentNavigationPage = _currentPage.FindParentOfType<NavigationPage>(); 77 foreach (var navPage in _navigationPagesStack) 94 var parentNavigationPage = _currentNavigationPage.FindParentOfType<NavigationPage>(); 100 parentNavigationPage = parentNavigationPage.FindParentOfType<NavigationPage>(); 106 foreach (var navPage in _navigationPagesStack) 131 return NavigationPage.GetHasBackButton(_currentPage) && GetBackButtonVisibleCalculated(false).Value; 145 foreach (var navPage in _navigationPagesStack) 182 if (_currentPage.IsSet(NavigationPage.HasBackButtonProperty)) 206 void ApplyChanges(NavigationPage navigationPage) 222 IsVisible = NavigationPage.GetHasNavigationBar(currentPage) && _hasAppeared; 232 BackButtonTitle = NavigationPage.GetBackButtonTitle(previousPage); 236 TitleIcon = NavigationPage.GetTitleIconImageSource(currentPage); 268 Color GetIconColor() => (_currentPage != null) ? NavigationPage.GetIconColor(_currentPage) : null; 294 return NavigationPage.GetTitleView(target); 309 foreach (var navPage in _navigationPagesStack)
Page\Page.cs (1)
20 /// <remarks><see cref = "Page" /> is primarily a base class for more useful derived types. Objects that are derived from the <see cref="Page"/> class are most prominently used as the top level UI element in .NET MAUI applications. In addition to their role as the main pages of applications, <see cref="Page"/> objects and their descendants can be used with navigation classes, such as <see cref="NavigationPage"/> or <see cref="FlyoutPage"/>, among others, to provide rich user experiences that conform to the expected behaviors on each platform.
PlatformConfiguration\AndroidSpecific\AppCompat\NavigationPage.cs (4)
4 using FormsElement = Maui.Controls.NavigationPage; 25 public static int GetBarHeight(this IPlatformElementConfiguration<Android, FormsElement> config) 31 public static IPlatformElementConfiguration<Android, FormsElement> SetBarHeight(this IPlatformElementConfiguration<Android, FormsElement> config, int value)
PlatformConfiguration\GTKSpecific\NavigationPage.cs (4)
4 using FormsElement = Maui.Controls.NavigationPage; 28 this IPlatformElementConfiguration<GTK, FormsElement> config) 34 public static IPlatformElementConfiguration<GTK, FormsElement> SetBackButtonIcon( 35 this IPlatformElementConfiguration<GTK, FormsElement> config, string value)
PlatformConfiguration\iOSSpecific\NavigationPage.cs (17)
5 using FormsElement = Maui.Controls.NavigationPage; 29 public static bool IsNavigationBarTranslucent(this IPlatformElementConfiguration<iOS, FormsElement> config) 35 public static IPlatformElementConfiguration<iOS, FormsElement> SetIsNavigationBarTranslucent(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) 42 public static IPlatformElementConfiguration<iOS, FormsElement> EnableTranslucentNavigationBar(this IPlatformElementConfiguration<iOS, FormsElement> config) 49 public static IPlatformElementConfiguration<iOS, FormsElement> DisableTranslucentNavigationBar(this IPlatformElementConfiguration<iOS, FormsElement> config) 76 public static StatusBarTextColorMode GetStatusBarTextColorMode(this IPlatformElementConfiguration<iOS, FormsElement> config) 82 public static IPlatformElementConfiguration<iOS, FormsElement> SetStatusBarTextColorMode(this IPlatformElementConfiguration<iOS, FormsElement> config, StatusBarTextColorMode value) 106 public static IPlatformElementConfiguration<iOS, FormsElement> SetPrefersLargeTitles(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) 113 public static bool PrefersLargeTitles(this IPlatformElementConfiguration<iOS, FormsElement> config) 136 public static IPlatformElementConfiguration<iOS, FormsElement> SetHideNavigationBarSeparator(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) 143 public static bool HideNavigationBarSeparator(this IPlatformElementConfiguration<iOS, FormsElement> config)
PlatformConfiguration\macOSSpecific\NavigationPage.cs (5)
4 using FormsElement = Maui.Controls.NavigationPage; 28 public static NavigationTransitionStyle GetNavigationTransitionPushStyle(this IPlatformElementConfiguration<macOS, FormsElement> config) 48 public static NavigationTransitionStyle GetNavigationTransitionPopStyle(this IPlatformElementConfiguration<macOS, FormsElement> config) 62 public static IPlatformElementConfiguration<macOS, FormsElement> SetNavigationTransitionStyle(this IPlatformElementConfiguration<macOS, FormsElement> config, NavigationTransitionStyle pushStyle, NavigationTransitionStyle popStyle)
PlatformConfiguration\TizenSpecific\NavigationPage.cs (5)
4 using FormsElement = Maui.Controls.NavigationPage; 12 = BindableProperty.CreateAttached("HasBreadCrumbsBar", typeof(bool), typeof(FormsElement), false); 27 public static bool HasBreadCrumbsBar(this IPlatformElementConfiguration<Tizen, FormsElement> config) 33 public static IPlatformElementConfiguration<Tizen, FormsElement> SetHasBreadCrumbsBar(this IPlatformElementConfiguration<Tizen, FormsElement> config, bool value)
Shell\ShellContent.cs (1)
104 if (result is NavigationPage)
Shell\ShellSection.cs (4)
58 if (Navigation.ModalStack[Navigation.ModalStack.Count - 1] is NavigationPage np) 547 NavigationPage activeModalNavigationPage = null; 550 if (Navigation.ModalStack[i] is NavigationPage np) 564 if (modalPage is NavigationPage np)
Microsoft.Maui.Controls.Compatibility (34)
iOS\Renderers\ListViewRenderer.cs (2)
272 var parentNav = e.NewElement.FindParentOfType<NavigationPage>();
iOS\Renderers\NavigationRenderer.cs (29)
58 NavigationPage NavPage => Element as NavigationPage; 185 _hasNavigationBar = NavigationPage.GetHasNavigationBar(Current); 224 var navPage = NavPage; 284 var navPage = NavPage; 358 System.Diagnostics.Trace.WriteLine($"Pushing a {nameof(FlyoutPage)} onto a {nameof(NavigationPage)} is not a supported UI pattern on iOS. " + 451 if (e.PropertyName == NavigationPage.BarBackgroundColorProperty.PropertyName || 452 e.PropertyName == NavigationPage.BarBackgroundProperty.PropertyName) 456 else if (e.PropertyName == NavigationPage.BarTextColorProperty.PropertyName 466 else if (e.PropertyName == NavigationPage.CurrentPageProperty.PropertyName) 483 else if (e.PropertyName == NavigationPage.BackButtonTitleProperty.PropertyName) 498 if (_hasNavigationBar != NavigationPage.GetHasNavigationBar(newCurrentPage)) 756 var iconColor = Current != null ? NavigationPage.GetIconColor(Current) : null; 1160 if (e.PropertyName == NavigationPage.HasNavigationBarProperty.PropertyName) 1164 else if (e.PropertyName == NavigationPage.HasBackButtonProperty.PropertyName) 1170 else if (e.PropertyName == NavigationPage.TitleIconImageSourceProperty.PropertyName || 1171 e.PropertyName == NavigationPage.TitleViewProperty.PropertyName) 1173 else if (e.PropertyName == NavigationPage.IconColorProperty.PropertyName) 1255 if (firstPage != pageBeingRemoved && currentChild != firstPage && NavigationPage.GetHasBackButton(currentChild)) 1265 public bool NeedsTitleViewContainer(Page page) => NavigationPage.GetTitleIconImageSource(page) != null || NavigationPage.GetTitleView(page) != null; 1267 internal void UpdateBackButtonTitle(Page page) => UpdateBackButtonTitle(page.Title, NavigationPage.GetBackButtonTitle(page)); 1286 ImageSource titleIcon = NavigationPage.GetTitleIconImageSource(page); 1287 View titleView = NavigationPage.GetTitleView(page); 1290 string backButtonText = NavigationPage.GetBackButtonTitle(page); 1291 bool isBackButtonTextSet = page.IsSet(NavigationPage.BackButtonTitleProperty); 1369 if (Child == null || NavigationItem.HidesBackButton == !NavigationPage.GetHasBackButton(Child)) 1372 NavigationItem.HidesBackButton = !NavigationPage.GetHasBackButton(Child); 1389 var hasNavBar = NavigationPage.GetHasNavigationBar(current);
iOS\Renderers\PhoneFlyoutPageRenderer.cs (1)
398 if (!(FlyoutPage?.Detail is NavigationPage))
iOS\Renderers\RefreshViewRenderer.cs (2)
67 var parentNav = e.NewElement.FindParentOfType<NavigationPage>();