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 9130 [details]
Test project demonstrating issue.
There is a report of an issue using LayoutTo to display a view in Xamarin.Forms iOS and Android (Windows Phone works fine). In the customer's app, there is a view on the page for displaying the current location (longitude and latitude). The viewmodel bound to its context refreshes its properties every few seconds and when the UI updates the new coordinates, the SideMenu disappears. The test project attached simulates the UI update with a timer, updating a label every 5 seconds (test project is a X.Forms project with Android code).
## Steps to reproduce:
1. Download the sample app
2. Run on Android device
3. Click on the header label (“Click to open the menu”)
4. Wait for timer to update label
5. Observe results
## Expected results:
A yellow ContentView slides from the right side of the page and stays visible.
## Actual results:
The ContentView disappears when the label is updated.
## Other information:
The customer has found a workaround to the problem by removing the GPSView binding before the menu slides in/ restoring the binding after the menu slides out so no UI updates happen while the menu is visible.
I have checked this issue and I am also observing the same behavior as described in bug description. To reproduce this issue I have followed the steps provided in bug description. After deploying the application, I clicked on header label, I observed that a yellow ContentView slides from the right side of the page and it disappears when the label is updated. Please refer the screencast.
Additional Information: Observing the same behavior on device and emulator.
Ide Logs: http://www.screencast.com/t/Z7HaJV6X
Application Output: https://gist.github.com/Rajneesh360Logica/6101720ce605aa7b4032
Build Output: https://gist.github.com/Rajneesh360Logica/1c6da530864e2b8615e6
Device Log: https://gist.github.com/Rajneesh360Logica/590d83177963bc3f3a9f
=== Xamarin Studio ===
Version 5.5.4 (build 15)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Mono 3.10.0 ((detached/92c4884)
GTK+ 2.24.23 (Raleigh theme)
Package version: 310000031
=== Xamarin.Android ===
Version: 188.8.131.52 (Business Edition)
Android SDK: /Users/MM/Desktop/android-sdk-macosx
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
3.2 (API level 13)
4.0 (API level 14)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
4.3 (API level 18)
4.4 (API level 19)
4.4.87 (API level 20)
5.0 (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
=== Apple Developer Tools ===
Xcode 6.1 (6604)
=== Xamarin.iOS ===
Version: 184.108.40.206 (Business Edition)
Build date: 2014-12-11 14:54:30-0500
=== Xamarin.Mac ===
Version: 220.127.116.11 (Business Edition)
=== Build Information ===
Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8
=== Operating System ===
Mac OS X 10.9.5
Darwin MacMini.local 13.4.0 Darwin Kernel Version 13.4.0
Sun Aug 17 19:50:11 PDT 2014
Edit to original post: The customer indicated that he does see the same error on Windows Phone (I am unable to test on Windows Phone).
Use the translation properties and not LayoutTo. LayoutTo should only be used inside of Layout subclasses to perform layout transitions. Translation is a post layout shift of a View, LayoutTo calls Layout itself which the parent Layout also calls to perform layouting.