|
|
|
@ -156,6 +156,7 @@ namespace ICSharpCode.ILSpy.TextView
@@ -156,6 +156,7 @@ namespace ICSharpCode.ILSpy.TextView
|
|
|
|
|
.RegisterCommands(Application.Current.MainWindow.CommandBindings); |
|
|
|
|
|
|
|
|
|
ShowLineMargin(); |
|
|
|
|
SetHighlightCurrentLine(); |
|
|
|
|
|
|
|
|
|
// add marker service & margin
|
|
|
|
|
textEditor.TextArea.TextView.BackgroundRenderers.Add(textMarkerService); |
|
|
|
@ -180,10 +181,14 @@ namespace ICSharpCode.ILSpy.TextView
@@ -180,10 +181,14 @@ namespace ICSharpCode.ILSpy.TextView
|
|
|
|
|
|
|
|
|
|
void CurrentDisplaySettings_PropertyChanged(object sender, PropertyChangedEventArgs e) |
|
|
|
|
{ |
|
|
|
|
if (e.PropertyName == "ShowLineNumbers") |
|
|
|
|
if (e.PropertyName == nameof(DisplaySettings.ShowLineNumbers)) |
|
|
|
|
{ |
|
|
|
|
ShowLineMargin(); |
|
|
|
|
} |
|
|
|
|
else if (e.PropertyName == nameof(DisplaySettings.HighlightCurrentLine)) |
|
|
|
|
{ |
|
|
|
|
SetHighlightCurrentLine(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ShowLineMargin() |
|
|
|
@ -197,6 +202,11 @@ namespace ICSharpCode.ILSpy.TextView
@@ -197,6 +202,11 @@ namespace ICSharpCode.ILSpy.TextView
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SetHighlightCurrentLine() |
|
|
|
|
{ |
|
|
|
|
textEditor.Options.HighlightCurrentLine = DisplaySettingsPanel.CurrentDisplaySettings.HighlightCurrentLine; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Tooltip support
|
|
|
|
|