Unplanned
Last Updated: 18 Sep 2024 08:24 by ADMIN
alfonso
Created on: 12 Aug 2024 08:07
Category: CollectionView
Type: Feature Request
0
CollectionView: Provide a way to control the scrollbars' visibility
Currently there isn't a direct way to hide the scrollbars in the CollectionView.
1 comment
ADMIN
Didi
Posted on: 18 Sep 2024 08:24

Hello,

In the meantime, you can use the following workaround -  access the inner ScrollView from the CollectionView's Children collection and set the needed properties, here is an example:

 this.collectionView.Loaded += CollectionView_Loaded;

and add the event handler:

private void CollectionView_Loaded(object sender, System.EventArgs e)
{
    foreach(var child in (sender as RadCollectionView).Children)
    {
        if(child is ScrollView)
        {
            ScrollView sv = child as ScrollView;
            sv.VerticalScrollBarVisibility = Microsoft.Maui.ScrollBarVisibility.Never;
            return;
        }
    }
}

Regards,
Didi
Progress Telerik