Class BindingValueProvider
Provides binding to connect to the properties of a target object.
Inheritance
Namespace: Sartorius.SAF.Presentation
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class BindingValueProvider
Remarks
The property path follows the WPF System.Windows.Data.Binding.
When you are using the syntax for non-System.String indexer keys or interfaces, this implementation does not use the provided namespace xml-prefix, but identifies the types by their names. This means for indexers only system types like System.Int32, System.Guid etc. are supported. When defining a interface in the property path this could lead to the wrong interface to be used, when the object implements two interfaces with the same name but different namespaces.Examples
The following example shows how to create a BindingValueProvider with a property path and get the value from a indexer property using an int
Constructors
View SourceBindingValueProvider()
Initializes a new instance of the BindingValueProvider class..
Declaration
public BindingValueProvider()
BindingValueProvider(String)
Initializes a new instance of the BindingValueProvider class with the specified property path.
Declaration
public BindingValueProvider(string propertyPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyPath | The property path. |
Properties
View SourcePropertyPath
Gets or sets the property path.
Declaration
public string PropertyPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceGetValue(Object)
Gets the value of the PropertyPath for the specified item.
Declaration
public object GetValue(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item to get the value from. |
Returns
Type | Description |
---|---|
System.Object | The value of the PropertyPath for the specified |
Exceptions
Type | Condition |
---|---|
System.FormatException | The PropertyPath is not in a right format. |
System.MissingMemberException | A property or indexer defined by the PropertyPath cannot be found. |
System.NotSupportedException | The type for an indexer argument is not a system type or is not known by this implementation. |