Show / Hide Table of Contents

Class BindingValueProvider

Provides binding to connect to the properties of a target object.

Inheritance
System.Object
BindingValueProvider
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

BindingValueProvider()

Initializes a new instance of the BindingValueProvider class..

Declaration
public BindingValueProvider()
View Source

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 Source

PropertyPath

Gets or sets the property path.

Declaration
public string PropertyPath { get; set; }
Property Value
Type Description
System.String

Methods

View Source

GetValue(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 item.

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.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX