Created
January 20, 2020 14:11
-
-
Save 0x414c49/15ca9500308cca513e3ecf8d1efda19c to your computer and use it in GitHub Desktop.
Mobile Bindings Razor
This file contains 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
<StackLayout Orientation="StackOrientation.Horizontal" | |
HorizontalOptions="LayoutOptions.Center"> | |
<Button Text="Increment" OnClick="@IncrementCount" /> | |
<Label Text="@("The button was clicked " + count + " times")" | |
FontAttributes="FontAttributes.Bold" | |
VerticalTextAlignment="TextAlignment.Center" /> | |
</StackLayout> | |
@code | |
{ | |
int count; | |
void IncrementCount() | |
{ | |
count++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment