Class AutoNavigationPageAttribute
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Navigation.dll
Tunes how the Nalu navigation source generator registers a Page class
(the generated AddPages()).
[AttributeUsage(AttributeTargets.Class)]
public sealed class AutoNavigationPageAttribute : Attribute
- Inheritance
-
AutoNavigationPageAttribute
- Inherited Members
Properties
Enabled
Whether the automatic registration is enabled for this page. Defaults to true.
When false the page is skipped by the generated AddPages(): it is not registered
as a navigation target nor added to the service collection. Use it for pages that are
never navigated to through Nalu navigation (e.g. hand-managed dialogs). A page excluded
here can still be registered manually via
AddPage<TPage>() and friends.
public bool Enabled { get; set; }