зеркало из https://github.com/DeGsoft/maui-linux.git
26 строки
736 B
C#
26 строки
736 B
C#
using Xamarin.Forms.CustomAttributes;
|
|
using Xamarin.Forms.Internals;
|
|
using Xamarin.Forms.PlatformConfiguration;
|
|
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
|
|
|
|
namespace Xamarin.Forms.Controls.Issues
|
|
{
|
|
[Preserve(AllMembers = true)]
|
|
[Issue(IssueTracker.Github, 6132, "[Bug] [Forms 4.0] [Android] WebView.EnableZoomControls platform-specific doesn't work ", PlatformAffected.Android)]
|
|
public class Issue6132 : TestContentPage
|
|
{
|
|
protected override void Init()
|
|
{
|
|
Title = "WebView Zoom Controls";
|
|
WebView webView = new WebView
|
|
{
|
|
Source = "https://www.xamarin.com"
|
|
};
|
|
|
|
webView.On<Android>().EnableZoomControls(true);
|
|
webView.On<Android>().DisplayZoomControls(true);
|
|
|
|
Content = webView;
|
|
}
|
|
}
|
|
} |