Share via


MapCore.KeyPress Event

This documentation is no longer available on MSDN, however it is available as a CHM download.

Occurs when the user presses a key on the keyboard.

Namespace: Microsoft.Maps.MapControl.Core
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)

Usage

Syntax

'Declaration
<ScriptableMemberAttribute> _
Public Event KeyPress As EventHandler(Of MapKeyPressEventArgs)
[ScriptableMemberAttribute] 
public override event EventHandler<MapKeyPressEventArgs> KeyPress
[ScriptableMemberAttribute] 
public:
virtual event EventHandler<MapKeyPressEventArgs^>^ KeyPress {
    void add (EventHandler<MapKeyPressEventArgs^>^ value) override;
    void remove (EventHandler<MapKeyPressEventArgs^>^ value) override;
}
/** @event */
public void add_KeyPress (EventHandler<MapKeyPressEventArgs> value)

/** @event */
public void remove_KeyPress (EventHandler<MapKeyPressEventArgs> value)

Remarks

Note

This event occurs only once after the first KeyDown, even if the user holds the key down.

Platforms

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Change History

See Also

Reference

MapCore Class
MapCore Members
Microsoft.Maps.MapControl.Core Namespace