Skip to content

Commit a3cdbb5

Browse files
committed
tweak: scroll to top when switching pages
1 parent db8028f commit a3cdbb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Forms/MessageListWPF.xaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public void DisplayMessages(List<DMessage> messages, int startIdx, int endIdx)
3030
{
3131
Messages.Add(messages[i]);
3232
}
33+
34+
mainList.ScrollIntoView(messages[startIdx]);
3335
}
3436
}
3537
}

0 commit comments

Comments
 (0)