Browse Source

Privacy policy page implemented

master
Kaustav Chaudhuri 1 year ago
parent
commit
4eb122a48c
2 changed files with 38 additions and 0 deletions
  1. +22
    -0
      GMCabsDriverAssistantSolution/Views/PrivacyPolicyDialogPage.xaml
  2. +16
    -0
      GMCabsDriverAssistantSolution/Views/PrivacyPolicyDialogPage.xaml.cs

+ 22
- 0
GMCabsDriverAssistantSolution/Views/PrivacyPolicyDialogPage.xaml View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="GMCabsDriverAssistantSolution.Views.PrivacyPolicyDialogPage"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
Size="300,300"
Color="Transparent">
<Frame BackgroundColor="White" CornerRadius="10">
<StackLayout Orientation="Vertical">
<StackLayout VerticalOptions="EndAndExpand">
<Label Text="X" FontSize="20" HorizontalOptions="EndAndExpand">
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="lblClose_Tapped" />
</Label.GestureRecognizers>
</Label>
</StackLayout>
<StackLayout VerticalOptions="CenterAndExpand">
<WebView x:Name="privacyPolicyView" WidthRequest="1000" HeightRequest="1000" />
</StackLayout>
</StackLayout>
</Frame>
</toolkit:Popup>

+ 16
- 0
GMCabsDriverAssistantSolution/Views/PrivacyPolicyDialogPage.xaml.cs View File

@ -0,0 +1,16 @@
using CommunityToolkit.Maui.Views;
namespace GMCabsDriverAssistantSolution.Views;
public partial class PrivacyPolicyDialogPage : Popup
{
public PrivacyPolicyDialogPage()
{
InitializeComponent();
}
private void lblClose_Tapped(object sender, EventArgs e)
{
//Dismiss(null);
Close();
}
}

Loading…
Cancel
Save