xamarin/Xamarin.Forms

Previewer does not work with d:BindableLayout.ItemsSource

Aperta

#6027 aperta il 27 apr 2019

 (2 commenti) (1 reazione) (0 assegnatari)C# (1926 fork)batch import
e/4 :clock4:forms-previewer-sdkhelp wantedinactivet/bug :bug:up-for-grabs

Metriche repository

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

Descrizione

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

Guida contributor