Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 34917 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
I have a listview and would like to show, when the listview has 1 item in it something in the footer.
To do this, in the class behind the xaml file, I listen for a property change on the view model.
If it is true, I have code that does something like this :
AbsoluteLayout absoluteLayout = new AbsoluteLayout();
absoluteLayout.MinimumHeightRequest = 200;
absoluteLayout.MinimumWidthRequest = 200;
absoluteLayout.BackgroundColor = Color.Pink;
var image = new Image()
Source = ResourceEx.Render("ic_arrow_topRight_[theme].png"),
Aspect = Aspect.AspectFit
AbsoluteLayout.SetLayoutBounds(image, new Rectangle(0.5, 0, 40, 40));
var label = new Label()
Text = "Tap on an item\nto get a menu",
XAlign = TextAlignment.End,
YAlign = TextAlignment.Start,
LineBreakMode = LineBreakMode.WordWrap,
FontSize = FontSizeEx.Render("Micro", typeof(Label))
AbsoluteLayout.SetLayoutBounds(label, new Rectangle(0, 0, (TabAbsoluteLayout.Width * 50) - 25, -1));
TaskListView.Footer = absoluteLayout;
the footer does not appear but I think it should
It happens in windows and iOS, works fine on Android
Created attachment 19410 [details]
This is still not working properly on Windows and iOS with Forms 2.3.4-pre1. On iOS, the footer appears but subsequent toggling will cause an NRE to be thrown. I've filed a new report for this since it is a different issue than this report: bug 51652.
On Windows, the footer will not appear the first time it is added but subsequent toggling will cause it to be visible. I've attached a repro project to demonstrate this.
### Steps to reproduce issue on Windows
1. Run the Windows 8.1 or UWP project
2. Press the "Toggle Footer" button
3. Repeat pressing the button
### Expected Results
The footer should be added after the first button press and then hidden on the second press.
### Actual Results
The footer is _not_ visible after the first button press. But it appears after the second press. Subsequent presses result in it being toggled. However if you debug which line is being called when the footer appears/disappears it's actually not doing what is expected. For example, after the second button press, the line of code executed is
> myLV.Footer = null;
but still the footer appears in the app. Pressing the button again executes
> myLV.Footer = footer;
but the footer then disappears.
### Version info
Reproduced with Forms 188.8.131.52 and Forms 2.3.4-pre1
I can't bind an Image Source in a ListView footer, take the exact same XAML put it in the StackLayout following the ListView and it works perfectly. It never even calls the bound property while in the ListView footer. Can hardwire the text in the footer for the image source and all works well.
Using 184.108.40.206, I'll update to 220.127.116.11 and see if it works.
Confirmed iOS displays the footer and can be toggled repeatedly without NRE (other bug report).
Marking this for re-test in UWP.
@Alan, your issue is not applicable to this specific report. If this is still happening for you, please open a new report and provide a project that demonstrates the behavior. I searched here and couldn't find another report that was a duplicate of your report.
Checked against 2.5 and it seems like the first click doesn't enable it as the description above mentions.