Bug 53911 - Label in horizontally oriented StackLayout doesn't show multi line when LineBreak is set to WordWrap (tested on UWP app)
Summary: Label in horizontally oriented StackLayout doesn't show multi line when LineB...
Status: RESOLVED DUPLICATE of bug 42559
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-24 13:54 UTC by Jean-Daniel Gasser
Modified: 2017-03-24 14:37 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
App with StackLayout's Orientation property set to Horizontal / Vertical (33.84 KB, image/png)
2017-03-24 13:54 UTC, Jean-Daniel Gasser
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 42559

Description Jean-Daniel Gasser 2017-03-24 13:54:49 UTC
Created attachment 20801 [details]
App with StackLayout's Orientation property set to Horizontal / Vertical

When put in a StackLayout with Orientation set to Horizontal, a Label control will not show multiple lines, even if the text is larger than the label and its LineBreak property is set to WordWrap.

Step to reproduce:
- Create a new Xamarin Forms App (I created mine with VS 2017)
- Code of the MainPage.xaml :
<?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:App1"
             x:Class="App1.MainPage">

  <StackLayout Orientation="Vertical" VerticalOptions="Center" Padding="5">
    <Image Source="Images/Warning.png" HorizontalOptions="Center" VerticalOptions="Center"/>
    <Label VerticalOptions="Center" HorizontalOptions="CenterAndExpand" Text="The.NET Standard Library is a formal specification of .NET APIs that are intended to be available on all .NET runtimes. The motivation behind the Standard Library is establishing greater uniformity in the.NET ecosystem. ECMA 335 continues to establish uniformity for .NET runtime behavior, but there is no similar spec for the.NET Base Class Libraries(BCL) for .NET library implementations."/>
  </StackLayout>

</ContentPage>
- Create an "Images" folder at the root of the UWP project
- Put a png file "Warning.png" in that folder
- Set UWP project as startup project 
- Start the UWP application

See the label not showing multiple lines

- Change now the orientation of the StackLayout to "Vertical" an re-run the App

See the label showing multiple lines
Comment 1 Paul DiPietro [MSFT] 2017-03-24 14:37:50 UTC

*** This bug has been marked as a duplicate of bug 42559 ***