Xamarin : Label Formatting
<?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.NewPage"
Title="Label Formatting">
<StackLayout Orientation="Vertical">
<Label Text="Different color"
TextColor="Red"
BackgroundColor="Yellow"></Label>
<Label Text="Font Size"
FontSize="20"></Label>
<Label Text="Margin"
Margin="20"></Label>
<Label Text="Italic"
FontAttributes="Italic"></Label>
<Label Text="Left Justified"
HorizontalTextAlignment="End"
FontSize="Large"></Label>
<Label Text="Hello, World!"
VerticalOptions="Start"
HorizontalTextAlignment="Center"
Rotation="-15"
IsVisible="true"
FontSize="Large"
FontAttributes="Bold"
TextColor="Blue" />
</StackLayout>
</ContentPage>
- Run the application
No comments:
Post a Comment