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 on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 12670 [details]
If a Cell has a ContextAction, then it also has less horizontal padding than other cells in the same ListView. The separator between the cells has also a different length (even if the custom renderer sets SeparatorInset and LayoutMargins to UIEdgeInsets.Zero).
This can easily be seen if a ListView contains cells with and without ContextAction. The attached solution does exactly that. It displays 10 cells where every other cell has a ContextAction. The sample uses a ImageCell, but the same can be seen with a ViewCell too.
I also observed that on WinPhone 8.0 SL the text of the ContextAction is in lowercase letters. It should be "Delete" but displays "delete". On Android, the text is all uppercase which could be seen as platform standard (although I never saw such a menu before), but all lowercase is definitely a bug.
Tested in Xamarin.Forms 1.3.3 and 184.108.40.20604-pre3 on iOS, Android and WinPhone 8.0 Silverlight. Did not test on WinRT as this is not included in the "Blank App (Xamarin.Forms Portable)" template.
Created attachment 12671 [details]
screenshot of the sample app demonstrating the bug
This is occurring on iOS while using 220.127.116.1104-pre3.
Should be fixed in 1.5.2-pre2
I tried with 18.104.22.16877-pre2 and 22.214.171.12413-pre4. The image and text are indeed aligned correctly. However, the separator line is not.
I tried to circumvent this with an Effect/renderer which sets the UITableViews and UITableViewCells SeparatorInset and LayoutMargins to UIEdgeInsets.Zero, but that had no effect on the separator line of the cells with ContextAction and now the image and text are also not aligned correctly anymore.
Created attachment 15033 [details]
sample project which sets SeparatorInset and LayoutMargins
I can still reproduce this issue with Forms 2.3.3 using the repro project in comment 5. As mentioned in comment 4, the ImageView alignment is fixed but the separator line on context action cells is still indented.
This seems to only affect ImageCells however as a TextCell with context actions does not experience this issue.
This is fixed on 2.3.4 stable