Skip to content

Fallback not respected in UWP ImageSet #3163

@almedina-ms

Description

@almedina-ms

Platform

  • .NET HTML
  • .NET WPF
  • UWP
  • Android
  • iOS

Version of SDK

latest master

Issue

The .NET platform and the UWP renderer render this card in two different ways; there are two big differences:

  1. Fallback is not being respected in UWP

image

image

{
	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.0",
	"body": [
		{
			"type": "ImageSet",
			"imageSize": "auto",
			"images": [
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png",
					"size": "small"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/2.png",
					"size": "medium"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/3.png",
					"size": "large",
					"requires": 
					{
						"adaptiveCard": "1.4"
					},
					"fallback": 
					{
						"type": "TextBlock",
						"text": "Some text"
					}
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png",
					"backgroundColor": "#228B22"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/2.png",
					"size": "stretch"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/3.png",
					"style": "person"
				}
			]
		}
	]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions