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