Skip to content

Instantly share code, notes, and snippets.

@TBertuzzi
Created July 28, 2021 00:41
Show Gist options
  • Save TBertuzzi/46b37bc3cf34a5a73bf964da47355c91 to your computer and use it in GitHub Desktop.
Save TBertuzzi/46b37bc3cf34a5a73bf964da47355c91 to your computer and use it in GitHub Desktop.
EventAggregator
<?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="XamarinFormsEventAggregator.SomarPage">
<ContentPage.Content>
<StackLayout>
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0">
<Label Text="EventAggregator" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
</Frame>
<Label Text="A Soma das duas telas vai ser igual?" FontSize="Title" Padding="30,10,30,10"/>
<Label Text="{Binding Texto}" FontSize="16" Padding="30,0,30,0"/>
<Button Text="Somar mais 1" Command="{Binding SomarCommand}"></Button>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment