We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfListView item selection not possible in Release mode on UWP

Thread ID:





131201 Jun 27,2017 10:52 PM UTC Jun 29,2017 01:01 PM UTC Xamarin.Forms 4
Tags: SfListView
Asked On June 27, 2017 10:52 PM UTC

Everything works fine in Debug mode but Selection doesnt work for me using release mode in UWP. I have already code in onLaunched as below

           List<Assembly> assembliesToInclude = new List<Assembly>()
                {       typeof(Syncfusion.ListView.XForms.SfListView).GetTypeInfo().Assembly 

I have also InputTransparent="True" on datatemplate

<sfListView:SfListView x:Name="listCategories" ItemsSource="{Binding Categories}" SelectionMode="Single" SelectionGesture="Tap" SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}" ItemSpacing="3" AllowSwiping="False" SelectionBackgroundColor="Yellow" AllowGroupExpandCollapse="True" >

Dinesh Babu Yadav [Syncfusion]
Replied On June 28, 2017 11:35 AM UTC

Hi Emil, 
Thank you for using Syncfusion Products. 
When SfListView is rendered in UWP platform with release mode, the custom controls will not render when deploying the application. So, you need to render the UWP renderer project of SfListView instead of SfListView as like below code snippet to resolve the reported issue at your end. 
Code Snippet[C#]: 
List<Assembly> assembliesToInclude = new List<Assembly>(); 
//Now, add in all the assemblies your app uses  
//Also do this for all your other 3rd party libraries  
Xamarin.Forms.Forms.Init(e, assembliesToInclude); 
For more information, please refer the following KB documentation link. 
Please let us know if you require further assistance. 
Dinesh Babu Yadav 

Replied On June 28, 2017 01:05 PM UTC


Please read my message above. I have already written that I included this into assembliesToInclude  and I am doing this for sfDataGrid and other Syncfusion tools but only sfListView doesnt work. it displays fine but selection doesnt work at all.



Replied On June 28, 2017 01:09 PM UTC

opps sorry I was including only SfListView

what is the difference between assembliesToInclude.Add(typeof(SfListViewRenderer).GetTypeInfo().Assembly);  and assembliesToInclude.Add(typeof(SfListView).GetTypeInfo().Assembly); 

do we need to include both or SfListViewRenderer   is just fine?

Dinesh Babu Yadav [Syncfusion]
Replied On June 29, 2017 01:01 PM UTC

Hi Emil, 
Thanks for the update. 
The custom renderer projects such as SfListViewRenderer cannot be rendered properly in UWP platform in release mode due to Xamarin framework behavior and so the feature like selection, gesture events (tap, double tap and item holding) does not rendered in UWP platform. So, you can resolve the issue by initializing the SfListViewRenderer alone in App.xaml.cs file of UWP renderer project in sample level as we have stated in previous update. This issue has been already reported to Xamarin Team and please find the further details in the following link. 
Dinesh Babu Yadav 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon