|
<?xml version="1.0" encoding="utf-8" ?> |
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
|
x:Class="App1.LoginPage"> |
|
<ContentPage.Content> |
|
<StackLayout Orientation="Vertical" Spacing="8"> |
|
<ContentView Padding="16, 16, 16, 16" BackgroundColor="Gray"> |
|
<Label BackgroundColor="Aqua" |
|
Text="Very long text in single line to be truncated at tail. Adding extra text to make sure it gets truncated." |
|
LineBreakMode="TailTruncation" /> |
|
</ContentView> |
|
<ContentView Padding="16, 16, 16, 16" BackgroundColor="Gray"> |
|
<RelativeLayout BackgroundColor="Navy"> |
|
<Label BackgroundColor="Blue" |
|
RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=0}" |
|
Text="Very long text in single line to be truncated at tail. Adding extra text to make sure it gets truncated." |
|
LineBreakMode="TailTruncation" /> |
|
<Label BackgroundColor="Fuchsia" |
|
RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=0}" |
|
RelativeLayout.YConstraint="{ConstraintExpression Type=Constant, Constant=40}" |
|
Text="Very long text in single line to be truncated at tail. Adding extra text to make sure it gets truncated." |
|
LineBreakMode="TailTruncation" /> |
|
<Label BackgroundColor="Fuchsia" |
|
RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=10}" |
|
RelativeLayout.YConstraint="{ConstraintExpression Type=Constant, Constant=80}" |
|
Text="Very long text in single line to be truncated at tail. Adding extra text to make sure it gets truncated." |
|
LineBreakMode="TailTruncation" /> |
|
</RelativeLayout> |
|
</ContentView> |
|
<ContentView Padding="16, 16, 16, 16" BackgroundColor="Gray" IsClippedToBounds="True"> |
|
<RelativeLayout BackgroundColor="Navy" IsClippedToBounds="True"> |
|
<Label BackgroundColor="Blue" |
|
RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=0}" |
|
Text="Very long text in single line to be truncated at tail. Adding extra text to make sure it gets truncated." |
|
LineBreakMode="TailTruncation" /> |
|
<Label BackgroundColor="Fuchsia" |
|
RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=0}" |
|
RelativeLayout.YConstraint="{ConstraintExpression Type=Constant, Constant=40}" |
|
Text="Very long text in single line to be truncated at tail. Adding extra text to make sure it gets truncated." |
|
LineBreakMode="TailTruncation" /> |
|
<Label BackgroundColor="Fuchsia" |
|
RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=10}" |
|
RelativeLayout.YConstraint="{ConstraintExpression Type=Constant, Constant=80}" |
|
Text="Very long text in single line to be truncated at tail. Adding extra text to make sure it gets truncated." |
|
LineBreakMode="TailTruncation" /> |
|
</RelativeLayout> |
|
</ContentView> |
|
</StackLayout> |
|
</ContentPage.Content> |
|
</ContentPage> |
This comment has been minimized.
iOS Screenshot
