Guest User

Untitled

a guest
Jan 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using DLToolkit.Forms.Controls;
  2.  
  3. namespace Mynamespace
  4. {
  5. public class CustomFlowListView : FlowListView
  6. {
  7. }
  8. }
  9.  
  10. using Listpm;
  11. using Listpm.UWP;
  12. using Xamarin.Forms;
  13. using Xamarin.Forms.Platform.UWP;
  14.  
  15. [assembly: ExportRenderer(typeof(CustomFlowListView), typeof(CustomListViewRenderer))]
  16.  
  17. namespace Listpm.UWP
  18. {
  19. class CustomListViewRenderer : ListViewRenderer
  20. {
  21. protected override void OnElementChanged(ElementChangedEventArgs<ListView> e)
  22. {
  23. base.OnElementChanged(e);
  24.  
  25. if (List != null)
  26. List.SelectionMode = Windows.UI.Xaml.Controls.ListViewSelectionMode.None;
  27. }
  28. }
  29. }
Add Comment
Please, Sign In to add comment