KeyEventHandler KeyEventHandler KeyEventHandler KeyEventHandler Delegate

Definition

Represents the method that handles the KeyUp and KeyDown  events.

public : delegate void KeyEventHandler(Platform::Object sender, KeyRoutedEventArgs e)
struct KeyEventHandler : winrt::Windows::Foundation::IUnknown
{
   KeyEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> KeyEventHandler(L lambda);
   template <typename F> KeyEventHandler(F* function);
   template <typename O, typename M> KeyEventHandler(O* object, M method);
   void operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::Input::KeyRoutedEventArgs const& e) const;
};
public delegate void KeyEventHandler(Object sender, KeyRoutedEventArgs e)
Public Delegate Sub KeyEventHandler(sender As Object, e As KeyRoutedEventArgs)

Parameters

sender
Object Object

The object where the event handler is attached.

Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)