xamarin/Xamarin.Forms

Previewer does not work with d:BindableLayout.ItemsSource

Ouverte

#6 027 ouverte le 27 avr. 2019

 (2 commentaires) (1 réaction) (0 personne assignée)C# (1 926 forks)batch import
e/4 :clock4:forms-previewer-sdkhelp wantedinactivet/bug :bug:up-for-grabs

Métriques du dépôt

Stars
 (5 644 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Description

I'm trying to add a Design-time ItemsSource to my StackLayout which has a BindableLayout, similar to what is possible using a ListView.ItemsSource described here.

Steps to Reproduce

  1. Use this project on essentials branch
  2. Add this to the StackLayout for "Hot Places"
<d:BindableLayout.ItemsSource>
    <x:Array Type="{x:Type models:Destination}">
        <models:Destination
            Title="Ulun Danu Beratan Temple"
            ImageUrl="bali.jpg"
            Rating="4.4"
            Votes="3829" />
        <models:Destination
            Title="Isola d'Elba"
            ImageUrl="elba.jpg"
            Rating="4.9"
            Votes="9783" />
    </x:Array>
</d:BindableLayout.ItemsSource>

Expected Behavior

The Previewer should show a list of Destinations

Actual Behavior

Nothing happens

Basic Information

  • Version with issue: Forms 3.6.0.293080
  • IDE: Visual Studio for Mac 2019 (8.0.3 Build 14) and Visual Studio 2019 (Windows)
  • Platform Target Frameworks:
    • iOS: 12.1
    • Android: 8.1
  • Android Support Library Version: 28.0.0.1
  • Affected Devices: iOS and Android Previwer

Screenshots

image

Reproduction Link

https://github.com/akamud/KickassUI.Traveler on essentials branch

VS bug #857451

Guide contributeur