summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2291.cs
blob: d1b22b891b5f7fbf8bf8f7c33a09deaacb688947 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;

namespace Xamarin.Forms.Controls.TestCasesPages
{
	[Preserve (AllMembers=true)]
	[Issue (IssueTracker.Github, 2291, "DatePicker.IsVisible = false issue", PlatformAffected.WinPhone)]
	public class Issue2291 : ContentPage
	{
		public Issue2291 ()
		{
			var btnTest = new Button {
				Text = "Fundo"
			};

			var dtPicker = new DatePicker {
				IsVisible = false
			};

			Content = new StackLayout {
				Children = {
					btnTest,
					dtPicker
				}
			};

			btnTest.Clicked += (s, e) => { 
				dtPicker.Focus (); 
			};
		}
	}
}