CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.87k stars 1.37k forks source link

[Feature Request] MasterDetailsView - scrollchanged or scrollviewchanged event #1215

Closed pixelvalley-hub closed 7 years ago

pixelvalley-hub commented 7 years ago

I would like to detect, if the list reached the bottom and need a ViewChanged event from the scrollviewer in the masterlist. Currently there is no scroll event in the list. Is there any workaround to detect the scroll event?

skendrot commented 7 years ago

The best way is to get the ScrollViewer from the view:

var scoller = masterDetails.FindVisualAscendant<ScrollViewer>();

This is the same approach you would take if just using a ListView

nmetulev commented 7 years ago

Agree, this is the recommended way.