Professional Documents
Culture Documents
Tutorial Introducion A Xamari Primera Parte PDF
Tutorial Introducion A Xamari Primera Parte PDF
MAINPAGE.XAML
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XamlSamples.MainPage">
<StackLayout>
<!--Place new controls here-->
<Label Text="Welcome to Xamarin Forms"
VerticalOptions="CenterAndExpand"
HorizontalOptions="Center"/>
</StackLayout>
</ContentPage>
MAINPAGE.XAML.CS
namespace XamlSamples
{
}
}
}
HELLOXAMLPAGE.XAML
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XamlSamples.HelloXamlPage"
Title="Hello XAML Page">
<ContentPage.Content>
<Label Text="Hello, XAML!"
VerticalOptions="Center"
HorizontalOptions="Center"
Rotation="-15"
IsVisible="true"
FontSize="Large"
FontAttributes="Bold"
TextColor="Blue"/>
</ContentPage.Content>
</ContentPage>
APP.XAML.CS
namespace XamlSamples
{
public partial class App : Application
{
public App()
{
InitializeComponent();
namespace XamlSamples
{
Content = button;
}
}
}
XAMLPLUSCODEPAGE.XAML
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XamlSamples.XamlPlusCodePage"
Title="XAML + Code Page">
<StackLayout>
<Slider VerticalOptions="CenterAndExpand"
ValueChanged="OnSliderValueChanged"/>
<Label x:Name="valueLabel"
Text="A Simple Label"
Font="Large"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand"/>
</StackLayout>
</ContentPage>
APP.XAML.CS
{
public partial class App : Application
{
public App()
{
InitializeComponent();