xamarin/Xamarin.Forms

ListView with RowHeight Set does not show newly added items if initially was empty

オープン

#6,911 opened on 2019/07/18

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/listviewe/4 :clock4:help wantedp/Androidt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

When using a ListView whose ItemSource was set to an Empty ObservableCollection AND ListView.RowHeight has been set, if items are added later, the listview does not update showing newly added item

Steps to Reproduce

  1. Open the attacched Project, Run this
  2. When the app is started, click the button above.
  3. No items appears below
  4. Now, change the device orientation, causing a refresh of the layout
  5. You see the added item

Expected Behavior

Items added should show, even if collection was initially empty.

Actual Behavior

They are not show

Basic Information

  • Version with issue: Xamarin 4.x (see project)
  • Last known good version: - do not know
  • IDE: Visual Studio 2017
  • Platform Target Frameworks:
    • iOS: Not tested
    • Android: 8.1
  • Android Support Library Version: v28.0.0.1
  • Nuget Packages: see project
  • Affected Devices: -

Screenshots

x4.zip

Reproduction Link

コントリビューターガイド