source.View.LineBreakCharCount = source.LineBreakCharCount;\r
if (e.Property.Equals(UpdateAreaProperty))\r
source.Render.UpdateArea = D2DRenderBase.ToColor4(source.UpdateArea);\r
+ if (e.Property.Equals(LineNumberProperty))\r
+ source.Render.LineNumber = D2DRenderBase.ToColor4(source.LineNumber);\r
if (e.Property.Equals(FlowDirectionProperty))\r
{\r
source.Render.RightToLeft = source.FlowDirection == Windows.UI.Xaml.FlowDirection.RightToLeft;\r
DependencyProperty.Register("OverwriteCaret", typeof(Windows.UI.Color), typeof(FooTextBox), new PropertyMetadata(Colors.Black, OnPropertyChanged));\r
\r
/// <summary>\r
+ /// 行番号の色を表す\r
+ /// </summary>\r
+ public Windows.UI.Color LineNumber\r
+ {\r
+ get { return (Windows.UI.Color)GetValue(LineNumberProperty); }\r
+ set { SetValue(LineNumberProperty, value); }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Using a DependencyProperty as the backing store for LineNumber. This enables animation, styling, binding, etc...\r
+ /// </summary>\r
+ public static readonly DependencyProperty LineNumberProperty =\r
+ DependencyProperty.Register("LineNumber", typeof(Windows.UI.Color), typeof(FooTextBox), new PropertyMetadata(Colors.DimGray,OnPropertyChanged));\r
+\r
+ /// <summary>\r
/// 余白を表す\r
/// </summary>\r
public new Thickness Padding\r