OSDN Git Service

いくつかのプロパティが反映されないバグを修正した
authorkonekoneko <test2214@hotmail.co.jp>
Thu, 21 Jul 2016 15:08:19 +0000 (00:08 +0900)
committerkonekoneko <test2214@hotmail.co.jp>
Thu, 21 Jul 2016 15:08:19 +0000 (00:08 +0900)
Metro/FooEditEngine/FooTextBox.cs
Metro/Test/MainPage.xaml.cs

index a207dfa..b598311 100644 (file)
@@ -1181,7 +1181,7 @@ namespace FooEditEngine.Metro
         /// TextAntialiasModeの依存プロパティを表す
         /// </summary>
         public static readonly DependencyProperty TextAntialiasModeProperty =
-            DependencyProperty.Register("TextAntialiasMode", typeof(TextAntialiasMode), typeof(FooTextBox), new PropertyMetadata(TextAntialiasMode.Default));
+            DependencyProperty.Register("TextAntialiasMode", typeof(TextAntialiasMode), typeof(FooTextBox), new PropertyMetadata(TextAntialiasMode.Default, OnPropertyChanged));
 
         /// <summary>
         /// シンタックスハイライターを表す
@@ -1196,7 +1196,7 @@ namespace FooEditEngine.Metro
         /// Hilighterの依存プロパティを表す
         /// </summary>
         public static readonly DependencyProperty HilighterProperty =
-            DependencyProperty.Register("Hilighter", typeof(IHilighter), typeof(FooTextBox), new PropertyMetadata(null));
+            DependencyProperty.Register("Hilighter", typeof(IHilighter), typeof(FooTextBox), new PropertyMetadata(null, OnPropertyChanged));
 
         /// <summary>
         /// フォールティングを作成するインターフェイスを表す
@@ -1211,7 +1211,7 @@ namespace FooEditEngine.Metro
         /// FoldingStrategyの依存プロパティ
         /// </summary>
         public static readonly DependencyProperty FoldingStrategyProperty =
-            DependencyProperty.Register("FoldingStrategy", typeof(IFoldingStrategy), typeof(FooTextBox), new PropertyMetadata(null));
+            DependencyProperty.Register("FoldingStrategy", typeof(IFoldingStrategy), typeof(FooTextBox), new PropertyMetadata(null,OnPropertyChanged));
 
         /// <summary>
         /// マーカーパターンセットを表す
@@ -1296,7 +1296,7 @@ namespace FooEditEngine.Metro
         /// SelectedTextの依存プロパティを表す
         /// </summary>
         public static readonly DependencyProperty SelectedTextProperty =
-            DependencyProperty.Register("SelectedText", typeof(string), typeof(FooTextBox), new PropertyMetadata(null));
+            DependencyProperty.Register("SelectedText", typeof(string), typeof(FooTextBox), new PropertyMetadata(null, OnPropertyChanged));
 
         /// <summary>
         /// インデントの方法を表す
@@ -1330,7 +1330,7 @@ namespace FooEditEngine.Metro
         /// Selectionの依存プロパティを表す
         /// </summary>
         public static readonly DependencyProperty SelectionProperty =
-            DependencyProperty.Register("Selection", typeof(TextRange), typeof(FooTextBox), new PropertyMetadata(0));
+            DependencyProperty.Register("Selection", typeof(TextRange), typeof(FooTextBox), new PropertyMetadata(0, OnPropertyChanged));
 
         /// <summary>
         /// 拡大率を表す
@@ -1582,7 +1582,7 @@ namespace FooEditEngine.Metro
         /// UpdateAreaの依存プロパティを表す
         /// </summary>
         public static readonly DependencyProperty UpdateAreaProperty =
-            DependencyProperty.Register("UpdateArea", typeof(Windows.UI.Color), typeof(FooTextBox), new PropertyMetadata(Colors.MediumSeaGreen));
+            DependencyProperty.Register("UpdateArea", typeof(Windows.UI.Color), typeof(FooTextBox), new PropertyMetadata(Colors.MediumSeaGreen, OnPropertyChanged));
 
         /// <summary>
         /// ラインマーカーの色を表す
index c7aeb2f..3a1f40e 100644 (file)
@@ -83,11 +83,13 @@ namespace Test
             this.fooTextBox.DrawRuler = setting.ShowRuler;
             if (setting.HilightXML)
             {
+                System.Diagnostics.Debug.WriteLine("hilight enable");
                 this.fooTextBox.Hilighter = new XmlHilighter();
                 this.fooTextBox.LayoutLineCollection.HilightAll();
             }
             else
             {
+                System.Diagnostics.Debug.WriteLine("hilight disable");
                 this.fooTextBox.Hilighter = null;
                 this.fooTextBox.LayoutLineCollection.ClearHilight();
             }