public void Stop()
{
if( WordPredictorService.Status.IsStartingOrStarted )
{
WordPredictorService.Service.Words.CollectionChanged -= OnWordPredictedCollectionChanged;
WordPredictorService.ServiceStatusChanged -= OnWordPredictorServiceStatusChanged;
}
if( Context != null )
{
Feature.PredictionContextFactory.RemovePredictionZone( Context.Keyboards[Feature.AutonomousKeyboardPredictionFactory.PredictionKeyboardAndZoneName] );
Context.CurrentKeyboardChanged -= OnCurrentKeyboardChanged;
}
if( PredictionKeyboard != null )
{
PredictionKeyboard.IsActive = false;
PredictionKeyboard.Destroy();
PredictionKeyboard = null;
}
}