Scroll Commands not firing
Opened this issue · 0 comments
Platform (please complete the following information):
- OS: [Both]
- Device: [iPhone 15 Pro/Android Simulator (Pixel 4a API 33)]
- Sdk version: [iOS 17/Android SDK 33]
- .NET MAUI: [8.0.10]
Describe the bug
The ScrollingDown, ScrollingUp Commands do not fire in my Vertical sharpnado CollectionView.
To Reproduce
Steps to reproduce the behavior:
XAML:
`In my Sharpnado CollectionView I have the following:
<sho:CollectionView x:Name="FeedCollectionView" CurrentIndex="0" Margin="0,30" ItemSpacing="8" ItemTemplate="{StaticResource FeedDataTemplateSelector}" ScrollingDownCommand="{Binding ScrollUpCommand}" ScrollingUpCommand="{Binding ScrollDownCommand}" CollectionLayout="Vertical"> </sho:CollectionView>
VM:
public ICommand ScrollUpCommand { get; } public ICommand ScrollDownCommand { get; } public VM(){ ScrollUpCommand = new Command(ScrollHappening); ScrollDownCommand = new Command(ScrollHappening); } private void ScrollHappening(object obj) { Debug.WriteLine("Scroll happening"); }
The Debug lines do not get written.