Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created November 24, 2018 22:49
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 juucustodio/c1ebe50e84f2faad13efd2998dcca110 to your computer and use it in GitHub Desktop.
Save juucustodio/c1ebe50e84f2faad13efd2998dcca110 to your computer and use it in GitHub Desktop.
Example of how to use MessagingCenter in Xamarin.Forms applications. - https://julianocustodio.com/messagingcenter
<?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="DemoMessagingCenter.AddPage">
<ContentPage.Content>
<StackLayout Margin="10">
<Entry Placeholder="Item" x:Name="EntryItem"/>
<Button Clicked="Button_Clicked"
Text="Add"
BackgroundColor="#2196F3"
TextColor="White"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment