ModifierKeysConverter Class

Definition

Converts a ModifierKeys object to and from other types.

public ref class ModifierKeysConverter : System::ComponentModel::TypeConverter
public class ModifierKeysConverter : System.ComponentModel.TypeConverter
type ModifierKeysConverter = class
    inherit TypeConverter
Public Class ModifierKeysConverter
Inherits TypeConverter
Inheritance
ModifierKeysConverter

Remarks

The ModifierKeysConverter converts to and from a String using the "+" character as the delimiter. For example, the string Control+ALT would be converted into a ModifierKeys object consisting of the Control and Alt keys. This behavior differs from the default XAML parser-level enumeration combine character of ",".

Constructors

Name Description
ModifierKeysConverter()

Initializes a new instance of the ModifierKeysConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether an object of the specified type can be converted to an instance of ModifierKeys, using the specified context.

CanConvertFrom(Type)

Returns whether this converter can convert an object of the given type to the type of this converter.

(Inherited from TypeConverter)
CanConvertTo(ITypeDescriptorContext, Type)

Determines whether an instance of