Unable to apply application level style to SfListView

Hi.

Apologies if this has already been posted. I had a look but I couldn't see anything.

I've stumbled across a strange issue with the latest SfListView control (v15.4.0.20) in an app I am currently working on. The issue is that if you define an application level style in a ResourceDictionary and try to apply that style to an SfListView, the Style property of the SfListView does not appear to be set.

Please see the linked image for a high level overview of the issue.

Example image

I have attached a simple sample project which replicates the problem. I have deleted the obj & bin files in all directories to get the file size down. You should just need to rebuild it. The details of this project are:

Xamarin Forms targeting iOS and Android - Code sharing strategy is a .NET standard library
Xamarin.Forms v2.5.0.122203
Syncfusion.Xamarin.SfListView v15.4.0.20 (can also be replicated with
v15.4.0.17, v15.3.0.33 and v15.3.0.29. I've not tried an earlier version)
NETStandard.Library v2.0.1

Attachment: SyncfusionListviewSample_7699815c.7z

3 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team January 17, 2018 05:12 PM UTC

Hi Russell, 
 
Currently, SfListView does not provide support for setting Styles for its properties. We have already considered this as feature request and added it to our feature request list. The reported feature is a tentative feature and it will be available in any of our upcoming releases. We will let you know once the feature has been implemented.  
 
Regards, 
G.Muthu kumaran. 



RG Russell Garrett January 22, 2018 03:19 PM UTC

Hi.

Thanks for the reply, I look forward to seeing the feature implemented in an upcoming update.

In the meantime, could I suggest that the API documentation is updated to reflect this please? The API reference suggests that the "Style" property is inherited from
Xamarin.Forms.VisualElement and that we should be able to apply a Style to it. I have been able to Style the BusyIndicator without an issue.

Thanks.
Russell


MK Muthu Kumaran Gnanavinayagam Syncfusion Team January 23, 2018 11:12 AM UTC

Hi Russell, 

Currently, In SfListView you cannot apply Styles to certain specific properties such as BackgroundColor, SelectionBackgroundColor, Margin, ItemSpacing since we have define the default value for those properties during the initialization of SfListView in our side. So, as we have mentioned in our earlier update, we will consider this as feature request and the date for the implementation is tentative and it will be available in any of our upcoming releases. We will let you know once it has been implemented. 

Regards, 
G.Muthu kumaran.  


Loader.
Up arrow icon