Created
July 14, 2019 09:44
-
-
Save tugcearar/d85f6fc1d555f2dfcd361e265a60211b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="XamarinFormsCommandDemo.MainPage" | |
xmlns:vm="clr-namespace:XamarinFormsCommandDemo"> | |
<ContentPage.BindingContext> | |
<vm:MainViewModel/> | |
</ContentPage.BindingContext> | |
<StackLayout VerticalOptions="Center" HorizontalOptions="CenterAndExpand"> | |
<Entry Text="{Binding Number}"/> | |
<Button Text="Calculate" Command="{Binding CalculateCommand}"/> | |
<Label Text="{Binding Result}" FontSize="Large"/> | |
</StackLayout> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment