Table of Contents

Class NavigationContext

Namespace
MudBlazor
Assembly
MudBlazor.dll

The state of a navigation component based on the state of its parent.

public record NavigationContext : IEquatable<NavigationContext>
Inheritance
NavigationContext
Implements
Inherited Members
Extension Methods

Constructors

NavigationContext(NavigationContext)

protected NavigationContext(NavigationContext original)

Parameters

original NavigationContext

NavigationContext(bool, bool)

The state of a navigation component based on the state of its parent.

public NavigationContext(bool Disabled, bool Expanded)

Parameters

Disabled bool

The parent is preventing user interaction.

Expanded bool

The parent is expanded.

Properties

Disabled

The parent is preventing user interaction.

public bool Disabled { get; init; }

Property Value

bool

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Expanded

The parent is expanded.

public bool Expanded { get; init; }

Property Value

bool

MenuId

The unique identifier for this context.

public string MenuId { get; }

Property Value

string

Methods

Deconstruct(out bool, out bool)

public void Deconstruct(out bool Disabled, out bool Expanded)

Parameters

Disabled bool
Expanded bool

Equals(NavigationContext?)

public virtual bool Equals(NavigationContext? other)

Parameters

other NavigationContext

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(NavigationContext?, NavigationContext?)

public static bool operator ==(NavigationContext? left, NavigationContext? right)

Parameters

left NavigationContext
right NavigationContext

Returns

bool

operator !=(NavigationContext?, NavigationContext?)

public static bool operator !=(NavigationContext? left, NavigationContext? right)

Parameters

left NavigationContext
right NavigationContext

Returns

bool