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

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:

C#
public class PropertyBinding

Inheritance: objectPropertyBinding

Constructors

Initializes a new instance of the RadPropertyBinding class.

C#
public PropertyBinding(RadObject sourceObject, RadProperty boundProperty, RadProperty sourceProperty, PropertyBindingOptions options)
Parameters:sourceObjectRadObjectboundPropertyRadPropertysourcePropertyRadPropertyoptionsPropertyBindingOptions

Properties

C#
public PropertyBindingOptions BindingOptions { get; }
C#
public RadProperty BoundProperty { get; }
C#
public bool IsSourceObjectAlive { get; }

Gets the binding source.

C#
public RadObject SourceObject { get; }
C#
public RadProperty SourceProperty { get; }

Methods

C#
public object GetValue()
Returns:

object

Updates the binding source property.

C#
public void UpdateSourceProperty(object newValue)
Parameters:newValueobject