90 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);
416
readonly Lazy<PlatformConfigurationRegistry<
NavigationPage
>> _platformConfigurationRegistry;
419
public new IPlatformElementConfiguration<T,
NavigationPage
> On<T>() where T : IConfigPlatform
513
if (newValue is Page newPage && ((
NavigationPage
)bindable).HasAppeared)
722
public MauiNavigationImpl(
NavigationPage
owner)
728
NavigationPage
Owner { get; }
878
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))
87
_currentNavigationPage = _currentPage.FindParentOfType<
NavigationPage
>();
89
foreach (
var
navPage in _navigationPagesStack)
106
var
parentNavigationPage = _currentNavigationPage.FindParentOfType<
NavigationPage
>();
112
parentNavigationPage = parentNavigationPage.FindParentOfType<
NavigationPage
>();
118
foreach (
var
navPage in _navigationPagesStack)
143
return
NavigationPage
.GetHasBackButton(_currentPage) && GetBackButtonVisibleCalculated(false).Value;
157
foreach (
var
navPage in _navigationPagesStack)
194
if (_currentPage.IsSet(
NavigationPage
.HasBackButtonProperty))
218
void ApplyChanges(
NavigationPage
navigationPage)
234
IsVisible =
NavigationPage
.GetHasNavigationBar(currentPage) && _hasAppeared;
244
BackButtonTitle =
NavigationPage
.GetBackButtonTitle(previousPage);
248
TitleIcon =
NavigationPage
.GetTitleIconImageSource(currentPage);
280
Color GetIconColor() => (_currentPage != null) ?
NavigationPage
.GetIconColor(_currentPage) : null;
306
return
NavigationPage
.GetTitleView(target);
321
foreach (
var
navPage in _navigationPagesStack)
Page\Page.cs (1)
21
/// <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)
60
if (Navigation.ModalStack[Navigation.ModalStack.Count - 1] is
NavigationPage
np)
560
NavigationPage
activeModalNavigationPage = null;
563
if (Navigation.ModalStack[i] is
NavigationPage
np)
577
if (modalPage is
NavigationPage
np)