xamarin/Xamarin.Forms

Previewer does not work with d:BindableLayout.ItemsSource

开放

#6,027 创建于 2019年4月27日

 (2 条评论) (1 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/4 :clock4:forms-previewer-sdkhelp wantedinactivet/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南