Click or drag to resize
ComboBoxValueBinderTModel, TValue Class
A binder between a combo box and a list of values, where the type of the value is also the type that we want to copy to and from the model.
Inheritance Hierarchy
SystemObject
  VirtualRadar.WinForms.PortableBindingControlBinder
    VirtualRadar.WinForms.PortableBindingValueBinderTModel, ComboBox, TValue
      VirtualRadar.WinForms.PortableBindingValueFromListBinderTModel, ComboBox, TValue, TValue
        VirtualRadar.WinForms.PortableBindingComboBoxBinderTModel, TValue, TValue
          VirtualRadar.WinForms.PortableBindingComboBoxValueBinderTModel, TValue
            VirtualRadar.WinForms.PortableBindingComboBoxEnumBinderTModel, TValue

Namespace: VirtualRadar.WinForms.PortableBinding
Assembly: VirtualRadar.WinForms (in VirtualRadar.WinForms.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ComboBoxValueBinder<TModel, TValue> : ComboBoxBinder<TModel, TValue, TValue>
where TModel : class, INotifyPropertyChanged

Type Parameters

TModel
TValue

The ComboBoxValueBinderTModel, TValue 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 propertyGetListItemDescription
Gets or sets a method that returns a list item's description. Cannot be set after initialisation.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
Public propertyGetListItemValue
Gets or sets a method that returns the list item's value. Cannot be set after initialisation.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
Public propertyInitialised
Gets a value indicating that the object has been initialised.
(Inherited from ControlBinder.)
Protected propertyItemDescriptions
The list of descriptions that we're going to use for the list.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
Public propertyList
Gets the list.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
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 propertySortList
Gets or sets a value indicating that the list should be sorted.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
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.)
Protected methodCopyListToControl
Copies the list to the control.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
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)
See base docs.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
Protected methodDoCopyControlToModel
See base docs.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
Protected methodDoCopyListToControl
See base docs.
(Inherited from ComboBoxBinderTModel, TListModel, TValue.)
Protected methodDoCopyModelToControl
See base docs.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
Protected methodDoGetSelectedListValue
See base docs.
(Inherited from ComboBoxBinderTModel, TListModel, TValue.)
Protected methodDoHookControl
Performs the actual work of hooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoHookControlPropertyChanged
See base docs.
(Inherited from ComboBoxBinderTModel, TListModel, TValue.)
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 ValueFromListBinderTModel, TControl, TValue, TListModel.)
Protected methodDoSetSelectedListValue
See base docs.
(Inherited from ComboBoxBinderTModel, TListModel, TValue.)
Protected methodDoUnhookControl
Performs the actual work of unhooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoUnhookControlPropertyChanged
See base docs.
(Inherited from ComboBoxBinderTModel, TListModel, TValue.)
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.)
Protected methodGetSelectedListValue
Gets the value for the selected item from the list.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
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.)
Protected methodSetSelectedListValue
Sets the value for the selected item in the list.
(Inherited from ValueFromListBinderTModel, TControl, TValue, TListModel.)
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