Skip to content

Class ContextRedirect

Definition

Namespace: StardewUI.Framework.Dom
Assembly: StardewUI.dll

Describes how to redirect the target context of any IAttribute whose ValueType is one of the IsContextBinding(AttributeValueType) matching types.

public record ContextRedirect : 
    IEquatable<StardewUI.Framework.Dom.ContextRedirect>

Inheritance
Object ⇦ ContextRedirect

Implements
IEquatable<ContextRedirect>

Members

Constructors

Name Description
ContextRedirect()

Properties

Name Description
EqualityContract

Methods

Name Description
FromParts(UInt32, ReadOnlySpan<Char>) Creates an optional ContextRedirect using the constituent parts parsed from a grammar element such as an Attribute.

Details

Constructors

ContextRedirect()

protected ContextRedirect();

Properties

EqualityContract

protected System.Type EqualityContract { get; }
Property Value

Type


Methods

FromParts(uint, ReadOnlySpan<Char>)

Creates an optional ContextRedirect using the constituent parts parsed from a grammar element such as an Attribute.

public static StardewUI.Framework.Dom.ContextRedirect FromParts(uint parentDepth, ReadOnlySpan<System.Char> parentType);
Parameters

parentDepth   UInt32
Number of parents to traverse.

parentType   ReadOnlySpan<Char>
The Name of the target ancestor's Type.

Returns

ContextRedirect

A new ContextRedirect that performs the requested redirect, or null if the arguments would cause no redirection to occur.