Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

XAML Label within GRID

$
0
0

I have the following simple XAML Page so that I can test the settings of Label component.
It seems that there is a bug in the Label LineBreakMode property.

            <?xml version="1.0" encoding="UTF-8"?>
            <ContentPage Title="Test" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="test.MyPage">
                <ContentPage.Content>
                    <ScrollView>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Text="Earth and the rest of the upcoming world is rising into stars and galaxies and event beyond that in the universe of milky way" LineBreakMode="WordWrap" XAlign="Start" HorizontalOptions="Start" Grid.Row="0" Grid.Column="0" />
                            <Label Text="Hello World" XAlign="End" YAlign="Center" HorizontalOptions="End" Grid.Row="0" Grid.Column="1" />
                        </Grid>
                    </ScrollView>
                </ContentPage.Content>
            </ContentPage>

and in the attached file you can see the result. Putting more words in the Label Text property will extend the word wrap by one line but still missing the last line.


XAML forms version = 1.2.2.6243
=== Xamarin Studio ===

Version 5.2.1 (build 1)
Installation UUID: 9a0efefd-2945-4582-86b3-df7f752613e1
Runtime:
Mono 3.6.0 ((no/f540f8a)
GTK+ 2.24.23 (Raleigh theme)

Package version: 306000039

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Mac ===

Version:

=== Xamarin.Android ===

Version: 4.14.0 (Business Edition)
Android SDK: /android-sdk
Supported Android versions:
1.6 (API level 4)
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.0.3 (API level 15)
4.2 (API level 17)
4.3 (API level 18)
4.4 (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

=== Xamarin.iOS ===

Version: 7.2.6.28 (Business Edition)
Hash: 606f31a
Branch:
Build date: 2014-08-01 15:27:48-0400

=== Build Information ===

Release ID: 502010001
Git revision: d06832ce9807d6be24aca225457e8b37c7669f6f
Build date: 2014-08-07 12:10:47-04
Xamarin addins: 1de032531be4cecf2f39dbee3b87aac78204058c

=== Operating System ===

Mac OS X 10.10.0
Darwin MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0
Tue Jul 29 16:22:25 PDT 2014
root:xnu-2782.1.62~4/RELEASE_X86_64 x86_64


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>