New to Telerik UI for WinFormsStart a free 30-day trial

Defines a base abstract class that describes a condition which checks when to apply a style rule. SimpleCondition evaluates when a property of an Element equals a certain value. RoutedEventCondition evaluates if a routed event is currently tunneling/bubbling through an Element. ComplexCondition evaluates two conditions related with a binary operator.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public abstract class Condition

Inheritance: objectCondition

Derived Classes: ComplexConditionSimpleCondition

Constructors

C#
protected Condition()

Properties

Retrieves a list of the affected events of the current condition.

C#
public List<RaisedRoutedEvent> AffectedEvents { get; }

Retrieves a list of the affected properties of the current condition.

C#
public List<RadProperty> AffectedProperties { get; }

Methods

Retrieves a value indicating whether to apply a style rule.

C#
public abstract bool Evaluate(RadObject target)
Parameters:targetRadObjectReturns:

bool

C#
protected virtual void FillAffectedEvents(List<RaisedRoutedEvent> inList)
Parameters:inListList<RaisedRoutedEvent>
C#
protected virtual void FillAffectedProperties(List<RadProperty> inList)
Parameters:inListList<RadProperty>