Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Last active November 19, 2018 22:45
Show Gist options
  • Save MartinZikmund/4113bf0bf288a039f33e961dbf2a1a51 to your computer and use it in GitHub Desktop.
Save MartinZikmund/4113bf0bf288a039f33e961dbf2a1a51 to your computer and use it in GitHub Desktop.
<?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="MyAwesomeApp.HomePage"
xmlns:viewModels="clr-namespace:MyAwesomeApp.ViewModels"
x:DataType="viewModels:HomeViewModel">
<ContentPage.BindingContext>
<viewModels:HomeViewModel />
</ContentPage.BindingContext>
<ContentPage.Content>
<StackLayout>
<Entry Text="{Binding Greeting, Mode=TwoWay}" />
<Label>
<Label.FormattedText>
<FormattedString>
<Span Text="{Binding Greeting, Mode=OneWay}" />
<Span Text=", world!" />
</FormattedString>
</Label.FormattedText>
</Label>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment