public void Start()
{
Debug.Assert( Dispatcher.CurrentDispatcher == NoFocusManager.Default.ExternalDispatcher, "This method should only be called by the ExternalThread." );
if( Context != null )
{
//Feature.PredictionContextFactory.CreatePredictionZone( Context.CurrentKeyboard, Feature.MaxSuggestedWords );
EnsurePredictionKeyboard();
Context.CurrentKeyboardChanged += OnCurrentKeyboardChanged;
}
if( WordPredictorService != null )
{
WordPredictorService.ServiceStatusChanged += OnWordPredictorServiceStatusChanged;
WordPredictorService.Service.Words.CollectionChanged += OnWordPredictedCollectionChanged;
}
if( Feature != null )
{
Feature.PropertyChanged += OnFeaturePropertyChanged;
}
}