maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Bugzilla39702.cs

28 строки
635 B
C#

using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 39702, "Cannot enter text when Entry is focus()'d from an editor completed event")]
public class Bugzilla39702 : TestContentPage // or TestMasterDetailPage, etc ...
{
protected override void Init()
{
Title = "focus test";
var editor = new Editor();
var entry = new Entry();
editor.Unfocused += (object sender, FocusEventArgs e) => entry.Focus();
Content = new StackLayout
{
Children =
{
editor,
entry
}
};
}
}
}