C# Class TrainTracker.DataBindingExtensions

Provides extension methods for dealing with Binding objects
Exibir arquivo Open project: vega670/TrainTracker

Public Methods

Method Description
CreateCopy ( this binding ) : Binding

Creates a new Binding object by copying all properties from another Binding object.

CreateOneWayBinding ( this bindingSource, string propertyPath ) : Binding

Creates a new Binding using bindingSource as the Binding.Source and propertyPath as the Binding.Path.

CreateOneWayBinding ( this bindingSource, string propertyPath, IValueConverter converter ) : Binding

Creates a new Binding using bindingSource as the Binding.Source, propertyPath as the Binding.Path, and converter as the Binding.Converter.

Method Details

CreateCopy() public static method

Creates a new Binding object by copying all properties from another Binding object.
public static CreateCopy ( this binding ) : Binding
binding this from which property values will be copied
return System.Windows.Data.Binding

CreateOneWayBinding() public static method

Creates a new Binding using bindingSource as the Binding.Source and propertyPath as the Binding.Path.
public static CreateOneWayBinding ( this bindingSource, string propertyPath ) : Binding
bindingSource this The object to use as the new binding's .
propertyPath string The property path to use as the new binding's .
return System.Windows.Data.Binding

CreateOneWayBinding() public static method

Creates a new Binding using bindingSource as the Binding.Source, propertyPath as the Binding.Path, and converter as the Binding.Converter.
public static CreateOneWayBinding ( this bindingSource, string propertyPath, IValueConverter converter ) : Binding
bindingSource this The object to use as the new binding's .
propertyPath string The property path to use as the new binding's .
converter IValueConverter The converter to use as the new binding's .
return System.Windows.Data.Binding