Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created October 8, 2018 02:42
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/00f8a5c0e25fe1d7b16a6619d8b6d1e5 to your computer and use it in GitHub Desktop.
Save juucustodio/00f8a5c0e25fe1d7b16a6619d8b6d1e5 to your computer and use it in GitHub Desktop.
Example how to implement a token generator in Xamarin.Forms Applications. - http://julianocustodio.com/token
<?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:local="clr-namespace:DemoToken"
x:Class="DemoToken.MainPage">
<StackLayout Padding="10">
<Label Text="{Binding Codigo}"
FontSize="64" TextColor="Blue"
HorizontalTextAlignment="Center"
HorizontalOptions="CenterAndExpand"/>
<Label Text="{Binding Segundos}"
FontSize="11" TextColor="Black"
HorizontalTextAlignment="Center"
HorizontalOptions="CenterAndExpand"/>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment