Table of Contents

Class IsEqualToVisibilityCondition<TType, TProperties>

Namespace
Kentico.Xperience.Admin.Base.Forms
Assembly
Kentico.Xperience.Admin.Base.dll

The base class for a visibility condition which evaluates a value of a different property.

public class IsEqualToVisibilityCondition<TType, TProperties> : VisibilityConditionWithDependency<TProperties>, IVisibilityCondition where TType : struct, IComparable<TType> where TProperties : ComparisonConditionProperties<TType>, new()

Type Parameters

TType
TProperties

Type of visibility condition properties.

Inheritance
object
VisibilityCondition<TProperties>
IsEqualToVisibilityCondition<TType, TProperties>
Implements
Inherited Members
Extension Methods

Remarks

The provided properties type must derive from VisibilityConditionWithDependencyProperties.

Methods

Evaluate(IFormFieldValueProvider)

Evaluates the visibility condition and returns the result.

public override bool Evaluate(IFormFieldValueProvider formFieldValueProvider)

Parameters

formFieldValueProvider IFormFieldValueProvider

Provider of values of other form fields for contextual evaluation. Only fields logically preceding the current field are available.

Returns

bool

Returns true is the visibility condition is met (i.e. the associated component is to be displayed), otherwise returns false.