xamarin/Xamarin.Forms

Xamarin.Forms ListView Issues with repro

Aperta

#3510 aperta il 8 ago 2018

 (2 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/listviewe/5 :clock5:help wantedinactivep/Androidp/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

Since using Xamarin.Forms 3.1 I have noticed a few issues with listviews: Android: 1.0 I have a bound entry in a listview which is bound to a list of objects. one of the object property's is AlowProductCodeEdit which is attached to the IsEnabled property on the entry. AlowProductCodeEdit is set to false by default. When pressing the add button it creates a new instance of the object and adds it to the list setting AlowProductCodeEdit to true but on android you can't edit the entry. IOS works fine.

2.0 Maybe linked to above but if you delete an item in the list via a bound button the next item in the list entry field changes it's text colour from lightgray to black as if the field is editable again but it is not.

IOS: 1.0 having a MenuItem in the ViewCell.ContextActions breaks the automatic scrolling when you are at the bottom of the list (it doesn't scroll to where the cursor is focused) works fine on android.

Excuse the messy project (I have ripped most of the stuff out leaving only the required stuff to replicate)

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE: Visual Studio 15.7.3
  • Platform Target Frameworks:
    • iOS: 11.4
    • Android: 8.1
  • Android Support Library Version: 27.0.2.1
  • Nuget Packages: Xamarin.Forms 3.1.0.697729
  • Affected Devices: Tested on Samsung Galaxy S9+ and IOS Sim

Reproduction Link

SalesOrders.zip

Guida contributor