Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created March 25, 2020 16:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Char0394/6751e12d69df3c7ea1c282efc244c8d4 to your computer and use it in GitHub Desktop.
Save Char0394/6751e12d69df3c7ea1c282efc244c8d4 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PermissionsUISample.Views.PermissionUngrantedPage"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true"
Title="Permission">
<ContentPage.Content>
<StackLayout Spacing="30"
Padding="30">
<Image Source="ic_camerafullsize"
VerticalOptions="CenterAndExpand"
HeightRequest="200"
HorizontalOptions="FillAndExpand"/>
<Label Text="Your camera permission is disabled :( "
FontAttributes="Bold"
TextColor="#3C2820"
FontSize="Large"
HorizontalTextAlignment="Center"/>
<Label Text="This app needs access to your cam, which is required for Augmented reality."
TextColor="#3C2820"
FontSize="Large"
HorizontalTextAlignment="Center"/>
<Button Text="Go to settings"
Margin="10,0"
VerticalOptions="EndAndExpand"
Command="{Binding GoSettingsCommand}"
CornerRadius="20"
FontSize="20"
TextColor="White"
BackgroundColor="#EE7E4C" />
<Label Text="Use the app without the camera"
TextColor="#EE7E4C"
FontSize="Medium"
HorizontalTextAlignment="Center"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment