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
Properties
Disabled
The parent is preventing user interaction.
public bool Disabled { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Expanded
The parent is expanded.
public bool Expanded { get; init; }
Property Value
MenuId
The unique identifier for this context.
public string MenuId { get; }
Property Value
Methods
Deconstruct(out bool, out bool)
public void Deconstruct(out bool Disabled, out bool Expanded)
Parameters
Equals(NavigationContext?)
public virtual bool Equals(NavigationContext? other)
Parameters
other
NavigationContext
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(NavigationContext?, NavigationContext?)
public static bool operator ==(NavigationContext? left, NavigationContext? right)
Parameters
left
NavigationContextright
NavigationContext
Returns
operator !=(NavigationContext?, NavigationContext?)
public static bool operator !=(NavigationContext? left, NavigationContext? right)
Parameters
left
NavigationContextright
NavigationContext