Class
PropertyBinding

Represents a dependency between two properties. Used by a RadObject to bind a RadProperty to an external one and always use its value. The binding may be also two-way, in which special case the bound property updates its source.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class PropertyBinding

Inheritance: objectPropertyBinding

Constructors

PropertyBinding(RadObject, RadProperty, RadProperty, PropertyBindingOptions)

Initializes a new instance of the RadPropertyBinding class.

Declaration

cs-api-definition
public PropertyBinding(RadObject sourceObject, RadProperty boundProperty, RadProperty sourceProperty, PropertyBindingOptions options)

Parameters

sourceObject

RadObject

boundProperty

RadProperty

sourceProperty

RadProperty

options

PropertyBindingOptions

Properties

BindingOptions

Declaration

cs-api-definition
public PropertyBindingOptions BindingOptions { get; }

Property Value

PropertyBindingOptions

BoundProperty

Declaration

cs-api-definition
public RadProperty BoundProperty { get; }

Property Value

RadProperty

IsSourceObjectAlive

Declaration

cs-api-definition
public bool IsSourceObjectAlive { get; }

Property Value

bool

SourceObject

Gets the binding source.

Declaration

cs-api-definition
public RadObject SourceObject { get; }

Property Value

RadObject

SourceProperty

Declaration

cs-api-definition
public RadProperty SourceProperty { get; }

Property Value

RadProperty

Methods

GetValue()

Declaration

cs-api-definition
public object GetValue()

Returns

object

UpdateSourceProperty(object)

Updates the binding source property.

Declaration

cs-api-definition
public void UpdateSourceProperty(object newValue)

Parameters

newValue

object