Skip to content

Commit 894cd9f

Browse files
authored
Merge pull request #123 from w-ahmad/ScrollIntoView
Exposed ScrollRowIntoView and ScrollCellIntoView
2 parents f224f06 + 493c7ed commit 894cd9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/TableView.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,8 @@ private void OnCellSelectionChanged()
11141114
/// <summary>
11151115
/// Scrolls the specified cell slot into view.
11161116
/// </summary>
1117-
internal async Task<TableViewCell> ScrollCellIntoView(TableViewCellSlot slot)
1117+
/// <param name="slot">The cell slot to scroll into view.</param>
1118+
public async Task<TableViewCell> ScrollCellIntoView(TableViewCellSlot slot)
11181119
{
11191120
if (_scrollViewer is null || !slot.IsValid(this)) return default!;
11201121

@@ -1175,7 +1176,8 @@ void ViewChanged(object? _, ScrollViewerViewChangedEventArgs e)
11751176
/// <summary>
11761177
/// Scrolls the specified row into view.
11771178
/// </summary>
1178-
private async Task<TableViewRow?> ScrollRowIntoView(int index)
1179+
/// <param name="index">The index of the row to scroll into view.</param>
1180+
public async Task<TableViewRow?> ScrollRowIntoView(int index)
11791181
{
11801182
if (_scrollViewer is null) return default!;
11811183

0 commit comments

Comments
 (0)