[UWP] fix ListView renderer (#5144)
authorPavel Yakovlev <v-payako@microsoft.com>
Wed, 1 May 2019 15:03:30 +0000 (18:03 +0300)
committerE.Z. Hart <hartez@users.noreply.github.com>
Wed, 1 May 2019 15:03:30 +0000 (09:03 -0600)
Xamarin.Forms.Core/PlatformConfiguration/WindowsSpecific/ListView.cs
Xamarin.Forms.Platform.UAP/ListViewRenderer.cs

index d7ad203..372cc3f 100644 (file)
@@ -9,7 +9,7 @@ namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
                #region SelectionMode
 
                public static readonly BindableProperty SelectionModeProperty =
-                       BindableProperty.CreateAttached("SelectionMode", typeof(ListViewSelectionMode),
+                       BindableProperty.CreateAttached("WindowsSelectionMode", typeof(ListViewSelectionMode),
                                typeof(ListView), ListViewSelectionMode.Accessible);
 
                public static ListViewSelectionMode GetSelectionMode(BindableObject element)
index 0387d47..bb5534d 100644 (file)
@@ -231,7 +231,7 @@ namespace Xamarin.Forms.Platform.UWP
                        {
                                ClearSizeEstimate();
                        }
-                       else if (e.PropertyName == Specifics.SelectionModeProperty.PropertyName)
+                       else if (e.PropertyName == ListView.SelectionModeProperty.PropertyName)
                        {
                                UpdateSelectionMode();
                        }