From be2a6936447cb28d72e3f89215689249fbe3f163 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Mon, 18 Mar 2024 20:01:42 -0700 Subject: [PATCH] Update TextEditor.cs --- src/AvaloniaEdit/TextEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AvaloniaEdit/TextEditor.cs b/src/AvaloniaEdit/TextEditor.cs index 1f7bba8e..5d12a549 100644 --- a/src/AvaloniaEdit/TextEditor.cs +++ b/src/AvaloniaEdit/TextEditor.cs @@ -540,7 +540,7 @@ private static void OnShowLineNumbersChanged(AvaloniaPropertyChangedEventArgs e) var line = (Line)DottedLineMargin.Create(); leftMargins.Insert(0, lineNumbers); leftMargins.Insert(1, line); - var lineNumbersForeground = new Binding("LineNumbersForeground") { Source = editor }; + var lineNumbersForeground = editor.GetBindingObservable(LineNumbersForegroundProperty); line.Bind(Shape.StrokeProperty, lineNumbersForeground); lineNumbers.Bind(ForegroundProperty, lineNumbersForeground); }