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.
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()
Properties
EqualityContract
Property Value
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
A new ContextRedirect that performs the requested redirect, or null if the arguments would cause no redirection to occur.