Documente Academic
Documente Profesional
Documente Cultură
Label
<StackLayout Margin="20,35,20,20">
<Label Text="Welcome to Xamarin.Forms!"
HorizontalOptions="Center" />
</StackLayout>
Button
<StackLayout Margin="20,35,20,20">
<Button Text="Click me" />
</StackLayout>
Entry
<StackLayout Margin="20,35,20,20">
<Entry Placeholder="Enter text" />
</StackLayout>
Image
<StackLayout Margin="20,35,20,20">
<Image
Source="http://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Papio_anubis_%28Serengeti
%2C_2009%29.jpg/200px-Papio_anubis_%28Serengeti%2C_2009%29.jpg"
Aspect="Fill"
HeightRequest="{OnPlatform iOS=300, Android=250}"
WidthRequest="{OnPlatform iOS=300, Android=250}"
HorizontalOptions="Center" />
</StackLayout>
https://docs.microsoft.com/en-us/xamarin/get-started/tutorials/image/images/vs/android-resource.png
<Image Source="XamarinLogo"
WidthRequest="{OnPlatform iOS=300, Android=250}"
HorizontalOptions="Center" />
Grid
<Grid Margin="20,35,20,20">
<Label Text="The Grid has its Margin property set, to control the rendering
position of the Grid." />
</Grid>
<Grid Margin="20,35,20,20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.5*" />
<ColumnDefinition Width="0.5*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<Label Text="Column 0, Row 0" />
<Label Grid.Column="1"
Text="Column 1, Row 0" />
<Label Grid.Row="1"
Text="Column 0, Row 1" />
<Label Grid.Column="1"
Grid.Row="1"
Text="Column 1, Row 1" />
</Grid>