void OnFeaturePropertyChanged( object sender, PropertyChangedEventArgs e )
{
Debug.Assert( Dispatcher.CurrentDispatcher == NoFocusManager.Default.ExternalDispatcher, "This method should only be called by the ExternalThread." );
if( e.PropertyName == "WordPredictionMaxSuggestedWords" )
{
object newValue = Config.User["WordPredictionMaxSuggestedWords"];
if( newValue != null )
{
int newIntValue = (int)newValue;
if( newIntValue == Feature.MaxSuggestedWords )
return; //We don't remove and recreate the zone if the new value equals the previous one
}
//Feature.PredictionContextFactory.RemovePredictionZone( Context.CurrentKeyboard );
//Feature.PredictionContextFactory.CreatePredictionZone( Context.CurrentKeyboard, Feature.MaxSuggestedWords );
EnsurePredictionKeyboard();
}
}