xamarin/Xamarin.Forms

[Bug] [UWP] Template Disappears when Command Parameter Binding Set

Aperta

#8918 aperta il 16 dic 2019

 (10 commenti) (1 reazione) (0 assegnatari)C# (1926 fork)batch import
4.4.0a/listviewe/5 :clock5:help wantedi/regressioninactivep/UWPt/bug :bug:up-for-grabs

Metriche repository

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

Descrizione

Description

I have a Listview with simple DataTemplate selector which presents one of either two templates. Once the CommandParameter Binding is defined to the current object ({Binding} or {Binding .}), the entire view for that template goes blank on UWP. Therefore, I'm not allowed to call the command with the current object. This works as expected when deploying out to iOS.

Steps to Reproduce

Sample project here https://github.com/djrpascu/XFGithub

Expected Behavior

Listview template displays contents properly and I'm able to pass the object into my command via CommandParameter.

Actual Behavior

Listview template goes blank.

Basic Information

  • Version with issue: 4.4.0.991265

  • Last known good version: N/A

  • IDE: VS Enterprise 2019 16.4.1

  • Platform Target Frameworks:

    • iOS: 13
    • Android: N/A
    • UWP: 16299
  • Android Support Library Version: N/A

  • Nuget Packages: XF 4.4.0.991265 Prims.Unity.Forms 7.2.0.1422 NETStandard.Library 2.0.3

  • Affected Devices: Windows 10 Desktop

Screenshots

Reproduction Link

https://github.com/djrpascu/XFGithub

Guida contributor