Click or drag to resize
LabelStringBinderTModel Class
Binds a label to a string property.
Inheritance Hierarchy
SystemObject
  VirtualRadar.WinForms.PortableBindingControlBinder
    VirtualRadar.WinForms.PortableBindingValueBinderTModel, Label, String
      VirtualRadar.WinForms.PortableBindingLabelStringBinderTModel

Namespace: VirtualRadar.WinForms.PortableBinding
Assembly: VirtualRadar.WinForms (in VirtualRadar.WinForms.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class LabelStringBinder<TModel> : ValueBinder<TModel, Label, string>
where TModel : class, INotifyPropertyChanged

Type Parameters

TModel

The LabelStringBinderTModel type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyControl
Gets the control.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public propertyControlObject
Gets the control that has been bound to the model.
(Inherited from ControlBinder.)
Public propertyControlValue
Gets the control's value.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public propertyControlValueObject
See base docs.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public propertyInitialised
Gets a value indicating that the object has been initialised.
(Inherited from ControlBinder.)
Public propertyModel
Gets the model.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public propertyModelObject
Gets the model that has been bound to the control.
(Inherited from ControlBinder.)
Public propertyModelPropertyName
Gets or sets the name of the model's property to bind to. Only required if the ctor getModelValue parameter does more than just return a property. Cannot be set once the binder has been initialised.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public propertyModelValue
Gets the model's value.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public propertyModelValueObject
See base docs.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public propertyUpdateMode
Gets or sets an indication of when values are copied from the control to the model. Cannot be modified once the binder has been initialised.
(Inherited from ControlBinder.)
Top
Methods
  NameDescription
Protected methodChangeModelObject
Changes the model object.
(Inherited from ControlBinder.)
Public methodCopyControlToModel
Refreshes the model's content with the content of the control.
(Inherited from ControlBinder.)
Public methodCopyModelToControl
Refreshes the control's content with the content of the model.
(Inherited from ControlBinder.)
Public methodDispose
See interface docs.
(Inherited from ControlBinder.)
Protected methodDispose(Boolean)
Finalises or disposes of the object.
(Inherited from ControlBinder.)
Protected methodDoCopyControlToModel
Does the actual work of copying the value from the control to the model.
(Inherited from ControlBinder.)
Protected methodDoCopyModelToControl
Does the actual work of copying the value from the model to the control.
(Inherited from ControlBinder.)
Protected methodDoHookControl
Performs the actual work of hooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoHookControlPropertyChanged
See base docs.
(Overrides ControlBinderDoHookControlPropertyChanged(EventHandler).)
Protected methodDoHookModel
See base docs.
(Inherited from ValueBinderTModel, TControl, TValue.)
Protected methodDoInitialiseControl
Does the work of initialising the control. By default this just calls CopyModelToControl.
(Inherited from ControlBinder.)
Protected methodDoInitialising
See base docs.
(Inherited from ValueBinderTModel, TControl, TValue.)
Protected methodDoUnhookControl
Performs the actual work of unhooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoUnhookControlPropertyChanged
See base docs.
(Overrides ControlBinderDoUnhookControlPropertyChanged(EventHandler).)
Protected methodDoUnhookModel
See base docs.
(Inherited from ValueBinderTModel, TControl, TValue.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Finalises the object.
(Inherited from ControlBinder.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHookControl
Hooks the events on the control.
(Inherited from ControlBinder.)
Protected methodHookModel
Hooks the events on the model.
(Inherited from ControlBinder.)
Public methodInitialise
Initialises the binder. Must be called before the binder will start working.
(Inherited from ControlBinder.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnhookControl
Unhooks the events on the control.
(Inherited from ControlBinder.)
Protected methodUnhookModel
Unhooks the events on the model.
(Inherited from ControlBinder.)
Top
Fields
See Also