xamarin/Xamarin.Forms

UWP BoxView doesn't respect WidthRequest

Aperta

#6038 aperta il 29 apr 2019

 (6 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/5 :clock5:help wantedinactivep/UWPs/unverifiedt/bug :bug:up-for-grabs

Metriche repository

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

Descrizione

Description

BoxView doesn't respect WidthRequest on UWP.

Steps to Reproduce

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:XFBoxViewUWP"
             x:Class="XFBoxViewUWP.MainPage">

    <StackLayout>
        <!-- Place new controls here -->
        <BoxView Color="Green" WidthRequest="400" HeightRequest="400" CornerRadius="200"/>
    </StackLayout>

</ContentPage>
  1. Run

Expected Behavior

A circle should appear.

Actual Behavior

image

Basic Information

  • Version with issue: 3.2, 3.4, 3.6
  • Last known good version: Idk
  • IDE: Visual Studio 2019
  • Platform Target Frameworks:
    • UWP: 17134 (From default blank template)
  • Nuget Packages: Default Blank Template
  • Affected Devices: Windows devices

Guida contributor