Edit

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.

CanConvertTo(ITypeDescriptorContext, Type)

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

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Attempts to convert the specified object to a ModifierKeys, using the specified context.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Attempts to convert a ModifierKeys to the specified type, using the specified context.

IsDefinedModifierKeys(ModifierKeys)

Determines whether the specified value is a valid ModifierKeys value.

Applies to