Comment for TextBoxHelper.AutoScrollProperty

This commit is contained in:
leo 2020-07-12 22:32:42 +08:00
parent bd96a9709f
commit 1587e65479

View file

@ -11,7 +11,7 @@ namespace SourceGit.Helpers {
public static class TextBoxHelper { public static class TextBoxHelper {
/// <summary> /// <summary>
/// Auto scroll on text changed. /// Auto scroll on text changed or selection changed.
/// </summary> /// </summary>
public static readonly DependencyProperty AutoScrollProperty = DependencyProperty.RegisterAttached( public static readonly DependencyProperty AutoScrollProperty = DependencyProperty.RegisterAttached(
"AutoScroll", "AutoScroll",
@ -216,8 +216,7 @@ namespace SourceGit.Helpers {
textBox.ScrollToVerticalOffset(textBox.VerticalOffset + rect.Top); textBox.ScrollToVerticalOffset(textBox.VerticalOffset + rect.Top);
} else if (rect.Bottom >= textBox.ActualHeight) { } else if (rect.Bottom >= textBox.ActualHeight) {
textBox.ScrollToVerticalOffset(textBox.VerticalOffset + rect.Bottom); textBox.ScrollToVerticalOffset(textBox.VerticalOffset + rect.Bottom);
} }
} }
} }
} }