ControlBinding Class

Creates a binding to the specified Control.

Definition

Namespace: Firefly.Box.UI
Assembly: Firefly.Box (in Firefly.Box.dll) Version: debug-master-v:33791
C#
public class ControlBinding
Inheritance
Object    ControlBinding

Remarks

When ever the specified Control's Visible property changes, the bound control Visible changes as well. If the specified Control is a ListControlBase The bound control will only be visible if the Context matches the control's SelectedIndex property

Constructors

ControlBinding(ControlBase)Initializes a new instance of the ControlBinding class.
ControlBinding(ControlBase, Int32)Initializes a new instance of the ControlBinding class.

Properties

Context The context in the Control that this ControlBinding referenced to. When set to -1, The binding is to the Control's Visible property. otherwise the binding is to the SelectedIndex property
Control The control this ControlBinding references

Methods

EqualsDetermines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as a hash function for a particular type.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also