Bindings

Back in the PCL project, we are going to run through the concept of binding view models to views, displaying view model data, and propagating data changes through the INotifyPropertyChanged interface.

Let's begin with our MainPage.cs and complete the rest of the user interface for this page:

<?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="SpeechTalk.Pages.MainPage" BackgroundColor="White"> <ContentPage.Content> <Grid x:Name="Grid" RowSpacing="10" Padding="10, 10, 10, 10" VerticalOptions="Center"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> ...

Get Xamarin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.