void Recognizer_View_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == "Renderer") { var renderer = TargetView.GetRenderer(); if (renderer != null && !_isInitialized) { Initialize(); } else if (renderer == null && _isInitialized) { UnInitialize(); } } }