Microsoft Silverlight will reach end of support after October 2021. Learn more.
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.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Interface ICustomTypeProvider
public interface ICustomTypeProvider
The ICustomTypeProvider type exposes the following members.
|GetCustomType||Returns a Type object that represents the run-time structure of the implementing type.|
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.
Supported in: 5
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.