Hi,
I've pasted a sample app below but I essentially have a set of Entries within a ListView, using a class inherited from ViewCell. The error I'm getting is when tapping the Entry.
Expected behaviour: Entry comes into focus and keyboard appears
Actual Behaviour: Entry flashes, cursor appears briefly and then disappears again. No keyboard activity.
public class App
{
public static Page GetMainPage()
{
return new NavigationPage(new TestPage());
}
}
public class TestPage : ContentPage { public TestPage() { var holder = new StackLayout { Orientation = StackOrientation.Vertical, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.Center, Padding = new Thickness(10, 0, 10, 20), }; var listview = new ListView { RowHeight = 150, VerticalOptions = LayoutOptions.Center, ItemsSource = new List<string>{"",""}, ItemTemplate = new DataTemplate(typeof(TestFieldCell)), }; holder.Children.Add(listview); this.Content = holder; } } public class TestFieldCell:ViewCell { protected override void OnBindingContextChanged() { base.OnBindingContextChanged(); View = new Entry(); } }
This example app will work fine in forms version 1.2.3.6257, but fails in 1.3.1.6296. Is there something that I'm missing or is this a bug?
Thanks in advance,
Paul.
I afraid I haven't. I've raised a bug for it(), but in the meantime i've had to rollback Xamarin.Forms.
Paul.
Answers
I'm having the same issue. Did you solve your problem?
I afraid I haven't. I've raised a bug for it(), but in the meantime i've had to rollback Xamarin.Forms.
Paul.
Similar problem here. Could not solve it. In my case it does not show anything when trying to tap into the Entry. It looks like it is disabled.
Even the workarounds suggested in the guides () and setting WindowSoftInputMode = SoftInput.AdjustPan to the MainActivitiy (like suggested in the knowledge base) did not work.
On iOS this works as expected. Our customer wants this to be solved. And I hope I do not have to rollback Xamarin.Forms...
Having a similar issue with Entry(s) in a ListView. Any updates on a fix or workaround?
It has been fixed. Update to 1.3.5 it will work.
not at all. I've reopened a bug with viewcell / grid / entry
Hmmmm... I dunno, double checked, definitely working for me. entry/viewcell/listview.
My issue has gone away with 1.3.5 ...