{
this.RemoveTextContext();
+ this.textServiceManager.InputLanguageChanged -= TextServiceManager_InputLanguageChanged;
+ this.textServiceManager = null;
+
System.Diagnostics.Debug.WriteLine("losing focus");
}
{
if(this.textEditContext != null)
{
+ this.textEditContext.NotifyFocusLeave();
this.textEditContext.CompositionStarted -= TextEditContext_CompositionStarted;
this.textEditContext.CompositionCompleted -= TextEditContext_CompositionCompleted;
this.textEditContext.LayoutRequested -= TextEditContext_LayoutRequested;
this.textEditContext.FormatUpdating -= TextEditContext_FormatUpdating;
this.textEditContext.FocusRemoved -= TextEditContext_FocusRemoved;
this.textEditContext.NotifyFocusLeaveCompleted -= TextEditContext_NotifyFocusLeaveCompleted;
- this.textEditContext.NotifyFocusLeave();
this.textEditContext = null;
}
}