blob: 273cfa7f41b2d99aca53b7922e90694cc08881cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 39987, "Bug 39987 - MapView not working correctly on iOS 9.3")]
public class Bugzilla39987 : TestTabbedPage // or TestMasterDetailPage, etc ...
{
protected override void Init()
{
Children.Add(new CustomMapPage(new CustomMapView(), "Teste 1"));
Children.Add(new CustomMapPage(new CustomMapView(), "Teste 2"));
Children.Add(new CustomMapPage(new CustomMapView(), "Teste 3"));
}
}
public class CustomMapView : View
{
public CustomMapView()
{
}
}
public class CustomMapPage : ContentPage
{
private CustomMapView _customMapView;
public CustomMapPage(CustomMapView customMapView, string title)
{
Title = title;
_customMapView = customMapView;
_customMapView.HorizontalOptions = LayoutOptions.FillAndExpand;
_customMapView.VerticalOptions = LayoutOptions.FillAndExpand;
Content = _customMapView;
}
}
}
|