blob: ab95f98ff0ba09d2c964852674f3c8591eee33f5 (
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
|
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 52266, "[WinRT/UWP] Picker.Focus() does not open the dropdown", PlatformAffected.WinRT)]
public class Bugzilla52266 : TestContentPage
{
protected override void Init()
{
var picker = new Picker
{
ItemsSource = new string[] { "A", "B", "C" }
};
Content = new StackLayout
{
Children =
{
picker,
new Button
{
Text = "Click to focus the picker",
Command = new Command(() =>
{
picker.Focus();
})
}
}
};
}
}
}
|