xamarin/Xamarin.Forms

UWP BoxView doesn't respect WidthRequest

Open

#6,038 opened on Apr 29, 2019

 (6 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
e/5 :clock5:help wantedinactivep/UWPs/unverifiedt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide