private void Unsubscribe() { if (!_subscribed) { return; } #if NET View.PreviewKeyDown -= OnKeyDown; #else View.KeyDown -= OnKeyDown; #endif _subscribed = false; }