OSDN Git Service

デバックコードを追加した project_uwp
authorkonekoneko <test2214@hotmail.co.jp>
Sun, 25 Sep 2016 08:32:16 +0000 (14:02 +0530)
committerkonekoneko <test2214@hotmail.co.jp>
Sun, 25 Sep 2016 08:32:16 +0000 (14:02 +0530)
UWP/FooEditEngine.UWP/FooTextBox.cs

index cc6aa6b..161afaf 100644 (file)
@@ -785,7 +785,9 @@ namespace FooEditEngine.UWP
                 return;
             }
 
-            if(i_startIndex != -1 && i_endIndex != -1)
+            System.Diagnostics.Debug.WriteLine("core text layoutreq range({0}-{1})",i_startIndex,i_endIndex);
+
+            if (i_startIndex != -1 && i_endIndex != -1)
             {
                 TextStoreHelper.GetStringExtent(this.Document, this.View, i_startIndex, i_endIndex, out startPos, out endPos);
 
@@ -844,6 +846,7 @@ namespace FooEditEngine.UWP
             System.Diagnostics.Debug.WriteLine("update selection start:{0} end:{1}", sel.StartCaretPosition, sel.EndCaretPosition);
             TextStoreHelper.SetSelectionIndex(this.Controller, this.View, sel.StartCaretPosition, sel.EndCaretPosition);
             args.Result = CoreTextSelectionUpdatingResult.Succeeded;
+            this.Refresh();
         }
 
         private void TextEditContext_TextUpdating(CoreTextEditContext sender, CoreTextTextUpdatingEventArgs args)