Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created April 9, 2018 03:14
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/61a057dfa96ce72e1f0debe0f477fd55 to your computer and use it in GitHub Desktop.
Save juucustodio/61a057dfa96ce72e1f0debe0f477fd55 to your computer and use it in GitHub Desktop.
Example of how to get informations from device in Xamarin.Forms applications - http://julianocustodio.com/DeviceInfo
<?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:DemoDeviceInfo"
x:Class="DemoDeviceInfo.MainPage">
<StackLayout HorizontalOptions="Center" VerticalOptions="Center">
<Label x:Name="DeviceName" />
<Label x:Name="Id" />
<Label x:Name="Manufacturer" />
<Label x:Name="Model" />
<Label x:Name="Platform" />
<Label x:Name="Version" />
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment