[UWP Bug] sfListView group header size bug

Hi there everyone, 

Thanks for the great library for Xamarin Forms.
I noticed a little UI bug in UWP on sfListView control. After launching the app on Windows, the groups header size will render over the normal size but if you change the window size it will be fixed automatically. 

Screenshot 2022-01-18 211654.jpg

I attached the sample app to show the issue.



Attachment: SyncGaugeTest_bb78ff6a.rar

3 Replies 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team January 19, 2022 11:18 AM UTC

Hi Ali, 
 
The reported scenario occurs when setting the ItemSize in the SizeChanged event. Hence, we suggest you can overcome the reported scenario by setting the ItemSize as mentioned below, 
 
public partial class MainPage : ContentPage 
{ 
    public MainPage() 
    { 
        InitializeComponent(); 
        var lst = new List<TestModel>() 
        { 
             
        }; 
        listView.ItemsSource = lst; 
        if (Device.RuntimePlatform == Device.UWP) 
        { 
            listView.SizeChanged += (a, b) => DeviceDisplay_MainDisplayInfoChanged(null, new DisplayInfoChangedEventArgs(DeviceDisplay.MainDisplayInfo)); 
            listView.ItemSize = 100; 
        } 
    } 
 
    private void DeviceDisplay_MainDisplayInfoChanged(object p, DisplayInfoChangedEventArgs e) 
    { 
        if (Device.Idiom.HasFlag(TargetIdiom.Desktop)) 
        { 
            if (listView.Width < 0) return; 
            layout.SpanCount = (int)(listView.Width / e.DisplayInfo.Density / 100); 
            return; 
        } 
    } 
} 
 
Please let us know if you need further assistance. 
 
Lakshmi Natarajan 
 


Marked as answer

AN Ali Nsh replied to Lakshmi Natarajan January 20, 2022 07:57 AM UTC

Thanks, Setting the Item size on XAML or on the page Constructor solved the problem. 👍



LN Lakshmi Natarajan Syncfusion Team January 20, 2022 09:27 AM UTC

Hi Ali, 
 
We are glad that the reported scenario has been resolved at your side. Please let us know if you require any further assistance on this. We will be happy to assist you. 
 
Lakshmi Natarajan 
 


Loader.
Up arrow icon