xamarin/Xamarin.Forms

[Bug] OnPlatform doesnt work with Comma separated values

Offen

#6.048 geöffnet am 30.04.2019

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.926 Forks)batch import
a/Xaml </>e/1 :clock1:hacktoberfest 🍻help wantedt/bug :bug:up-for-grabs

Repository-Metriken

Stars
 (5.644 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

if i want to define padding or margin with multiple values onplatform like below. it doesnt work. I guess that comma is confused with comma between platform definitions.

Padding="{OnPlatform iOS=0,30,0,0, Default=0}"

Steps to Reproduce

  1. define padding on anything like Padding="{OnPlatform iOS=0,30,0,0, Default=0}"

Expected Behavior

it recognises padding or margin

Actual Behavior

no error but not working at all.

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE: vs 2019
  • Platform Target Frameworks:
    • iOS: 12.2
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

xamarin forms:3.6

Contributor Guide