Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created October 30, 2019 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/04e085bf02dc2858fbc1c6e8a249828f to your computer and use it in GitHub Desktop.
Save icebeam7/04e085bf02dc2858fbc1c6e8a249828f to your computer and use it in GitHub Desktop.
AppDivisas: ConversorView.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="AppDivisas.Views.ConversorView">
<ContentPage.Content>
<Grid Margin="15">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0"
Grid.Column="0"
Margin="5"
Text="Monto en Pesos"
TextColor="Blue"
VerticalOptions="Center" />
<Entry Grid.Row="0"
Grid.Column="1"
Margin="5"
x:Name="PesosEntry"
Placeholder="0.00"
WidthRequest="100"
HorizontalOptions="Start"
Keyboard="Numeric" />
<Button Grid.Row="1"
Grid.Column="0"
Margin="5"
x:Name="ConversorButton"
Text="Convertir"
TextColor="White"
BackgroundColor="DarkGreen"
WidthRequest="150"
HorizontalOptions="Center"
CornerRadius="10"
Clicked="ConversorButton_Clicked" />
<Button Grid.Row="1"
Grid.Column="1"
Margin="5"
x:Name="LimpiarButton"
Text="Limpar"
TextColor="White"
BackgroundColor="DarkGreen"
WidthRequest="150"
HorizontalOptions="Center"
CornerRadius="10"
Clicked="LimpiarButton_Clicked" />
<Label Grid.Row="2"
Grid.Column="0"
Margin="5"
FontAttributes="Bold"
Text="Monto en Dólares"
TextColor="Blue" />
<Label Grid.Row="2"
Grid.Column="1"
Margin="5"
FontAttributes="Bold"
x:Name="DolaresLabel"
TextColor="Green" />
</Grid>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment