EventSetterHandlerConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the string name of an event setter handler to a delegate representation.
public ref class EventSetterHandlerConverter sealed : System::ComponentModel::TypeConverter
public sealed class EventSetterHandlerConverter : System.ComponentModel.TypeConverter
type EventSetterHandlerConverter = class
inherit TypeConverter
Public NotInheritable Class EventSetterHandlerConverter
Inherits TypeConverter
- Inheritance
Remarks
For more information about how XAML for WPF processes event handler names, see XAML Overview (WPF).
Constructors
| Name | Description |
|---|---|
| EventSetterHandlerConverter() |
Initializes a new instance of the EventSetterHandlerConverter class. |
Methods
| Name | Description |
|---|---|
| CanConvertFrom(ITypeDescriptorContext, Type) |
Returns whether this converter can convert an object of one type to a Delegate. |
| CanConvertTo(ITypeDescriptorContext, Type) |
Returns whether this converter can convert the object to the specified type. |
| ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
Converts the specified string to a new Delegate for the event handler. |
| ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) |
Converts the specified value object to the specified type. Always throws an exception. |