Class NavigationSegment
- Namespace
 - Nalu
 
- Assembly
 - Nalu.Maui.Navigation.dll
 
Represents a segment in a navigation path.
public class NavigationSegment : BindableObject, INotifyPropertyChanged, INavigationSegment
  - Inheritance
 - 
      
      
      NavigationSegment
 
- Implements
 
- Inherited Members
 
Fields
RouteProperty
Defines the segment property.
public static readonly BindableProperty RouteProperty
  Field Value
TypeProperty
Defines the page model type property.
public static readonly BindableProperty TypeProperty
  Field Value
Properties
SegmentName
Gets or sets the segment content.
public string? SegmentName { get; set; }
  Property Value
Type
Gets or sets type to use on navigation.
[TypeConverter(typeof(TypeTypeConverter))]
public Type? Type { get; set; }
  Property Value
Methods
AssertValid()
Throws an exception if the segment is not valid.
public void AssertValid()
  ToString()
Gets the string representation of the navigation segment.
public override string ToString()
  Returns
Operators
implicit operator string(NavigationSegment)
Converts a navigation segment to a string.
public static implicit operator string(NavigationSegment segment)
  Parameters
segmentNavigationSegmentThe navigation segment.
Returns
implicit operator NavigationSegment(Type)
Converts a page model type to a navigation segment.
public static implicit operator NavigationSegment(Type type)
  Parameters
typeTypePage mode type which implements INotifyPropertyChanged.