Class NavigationSegmentAttribute
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Navigation.dll
Defines an alternative navigation segment name (by default matches the name of the class).
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class NavigationSegmentAttribute : Attribute
- Inheritance
-
NavigationSegmentAttribute
- Inherited Members
Constructors
NavigationSegmentAttribute(string)
Defines an alternative navigation segment name (by default matches the name of the class).
public NavigationSegmentAttribute(string segmentName)
Parameters
segmentNamestringThe navigation segment name.
Properties
SegmentName
Gets the navigation segment name.
public string SegmentName { get; }
Property Value
Methods
GetSegmentName(Type)
Gets the segment name for the given type.
public static string GetSegmentName(Type type)
Parameters
typeTypeThe given type.
Returns
- string
The segment name, defaults to type name.