Table of Contents

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

BindableProperty

TypeProperty

Defines the page model type property.

public static readonly BindableProperty TypeProperty

Field Value

BindableProperty

Properties

SegmentName

Gets or sets the segment content.

public string? SegmentName { get; set; }

Property Value

string

Type

Gets or sets type to use on navigation.

[TypeConverter(typeof(TypeTypeConverter))]
public Type? Type { get; set; }

Property Value

Type

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

string

Operators

implicit operator string(NavigationSegment)

Converts a navigation segment to a string.

public static implicit operator string(NavigationSegment segment)

Parameters

segment NavigationSegment

The navigation segment.

Returns

string

implicit operator NavigationSegment(Type)

Converts a page model type to a navigation segment.

public static implicit operator NavigationSegment(Type type)

Parameters

type Type

Page mode type which implements INotifyPropertyChanged.

Returns

NavigationSegment