OSDN Git Service

Metro版とWinForm版においてキャレットが表示されない問題を修正した
[fooeditengine/FooEditEngine.git] / Metro / FooEditEngnine / FooTextBox.cs
index 3bd4ba6..1751287 100644 (file)
@@ -400,6 +400,16 @@ namespace FooEditEngine.Metro
         {\r
             base.OnGotFocus(e);\r
             this.textStore.SetFocus();\r
+            this.View.IsFocused = true;\r
+            this.Refresh();\r
+        }\r
+\r
+        /// <inheritdoc/>\r
+        protected override void OnLostFocus(RoutedEventArgs e)\r
+        {\r
+            base.OnLostFocus(e);\r
+            this.View.IsFocused = false;\r
+            this.Refresh();\r
         }\r
 \r
         /// <inheritdoc/>\r