summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41778.cs
blob: 327bea073200374b46db861403299c9baef33127 (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
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;

#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif

namespace Xamarin.Forms.Controls.Issues
{
	[Preserve(AllMembers = true)]
	[Issue(IssueTracker.Bugzilla, 41778, "Slider Inside ScrollView Will Open MasterDetailPage.Master", PlatformAffected.iOS)]
	public class Bugzilla41778 : TestMasterDetailPage // or TestMasterDetailPage, etc ...
	{
		protected override void Init()
		{
			Master = new ContentPage
			{
				Title = "Menu",
				BackgroundColor = Color.Blue
			};

			Detail = new DetailPageCS();
		}
	}

	public class DetailPageCS : ContentPage
	{
		public DetailPageCS()
		{
			var scrollView = new ScrollView { Content = new Slider() };
			scrollView.On<iOS>().SetShouldDelayContentTouches(false);

			Content = scrollView;
		}
	}
}