Skip to content

Instantly share code, notes, and snippets.

@suchithm
Last active March 20, 2023 12:25
Show Gist options
  • Save suchithm/4fe82957d58105d1b3326853c8c2bee6 to your computer and use it in GitHub Desktop.
Save suchithm/4fe82957d58105d1b3326853c8c2bee6 to your computer and use it in GitHub Desktop.
CustomWebView.cs:
using System;
using Xamarin.Forms;
namespace CustomControls
{
public class CustomWebView : WebView
{
}
}
PaymentWebViewPage.xaml:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns:pages="clr-namespace:Views"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:customControls="clr-namespace:CustomControls"
x:Name="PaymentWebViewPage"
x:Class="MyPlans.PaymentWebViewPage">
<ContentPage.Content>
<customControls:CustomWebView VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
</customControls:CustomWebView>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment