Export (0) Print
Expand All

ICustomTypeProvider Interface

Defines a method that returns a custom Type object used by the data binding system to determine the run-time structure of the implementing type.

Namespace:  System.Reflection
Assembly:  System.Windows (in System.Windows.dll)

public interface ICustomTypeProvider

The ICustomTypeProvider type exposes the following members.

  NameDescription
Public methodGetCustomTypeReturns a Type object that represents the run-time structure of the implementing type.
Top

Implement this interface when you want to bind to objects with dynamically generated properties. This is useful to avoid errors that occur when attempting to bind to property names that cannot be resolved until run time. It is also useful when you use controls (such as DataGrid with AutoGenerateColumns set to true) that automatically generate user-interface elements based on the structure of bound objects. For example, you can use this interface to generate bindable objects from XML data with a schema that is known only at run time.

For more information, see Additional ICustomTypeProvider Resources.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft