Forum Xamarin.Forms

Is this a bug Bug? Add Entry And ListView to StackLayout will input then press return will die.

DanZhuDanZhu CNMember ✭✭
public class EditCurrentAreaView : ContentPage
{

    Entry currentAreaName = new Entry() { TextColor = Color.Black };

    public EditCurrentAreaView(String currentPath)
    {
        var layout = new StackLayout { Orientation = StackOrientation.Vertical, Spacing = 0, BackgroundColor = Color.White };

        layout.Children.Add(currentAreaName);

        var listView = new ListView()
        {
            ItemsSource = new List<String>() { "Hello", "world" }
        };
        layout.Children.Add(listView);
        Content = layout;
    }
}

//=======================
is this a bug or I used Entry in the wrong way?

Sign In or Register to comment.