Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created February 23, 2018 16:28
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/40885c523e476848f784f453f0505281 to your computer and use it in GitHub Desktop.
Save juucustodio/40885c523e476848f784f453f0505281 to your computer and use it in GitHub Desktop.
Example of how to Check Internet Connection in Xamarin.Forms applications - http://julianocustodio.com/check-internet
<?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:DemoCheckInternet"
x:Class="DemoCheckInternet.MainPage">
<StackLayout VerticalOptions="Center"
HorizontalOptions="Center">
<Label x:Name="Status"
FontSize="20"/>
<Button Text="Verify" Clicked="VerifyInternet"/>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment