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.
I have created a TreeView control which nests Grids and StackLayouts many levels deep to create tree nodes. It works very well on Android and UWP, but when the nodes reach about 3-4 levels deep, performance drops off very quickly on UWP. Performance is fine on Android. On UWP, when the page is loading, the window goes white for a few seconds, and then eventually the tree view is displayed. The TreeView then works correctly, but if you resize the window, the app chugs again.
I've debugged my own code and I can't see that it is doing anything wrong. I've put break points in my methods, and they are not getting hit while the screen is going white, or resizing is occurring. I wanted to debug the XF core library myself, but couldn't figure out how to. Please see this thread https://forums.xamarin.com/discussion/106569/debugging-xamarin-forms/p1?new=1.
To repro the problem:
1) Check out this repo https://github.com/MelbourneDeveloper/Adapt.Presentation.git
2) Run the sample on UWP
3) Go to the TreeView tab. Notice that the TreeViews work correctly and performance is fine.
4) Run the sample on Android
5) Go to the TreeView tab. Notice that the TreeViews work correctly and performance is fine.
6) Open the file TreeViewPage.xaml.cs
7) Uncomment out the lines that say "Uncomment for UWP performance bug"
8) Run the sample on Android
9) Go to the TreeView tab. Notice that the TreeViews work correctly and performance is fine.
10) Run the sample on UWP
11) Go to the TreeView tab. Notice that the screen locks up for a few seconds
12) Notice that you can use the TreeViews normally
13) Try resizing the Window. Notice that the screen chugs
Try running against 2.4/2.5 to see if it resolves the draw issue, since everything still appears to be running against 2.3.4. There were fixes that in this instance also appear to make a difference when updating.
PS: We are about to make this repo private. We are waiting on you to have a look at this bug before we make it private. Can you please let us know as soon as you have the code so that we can make this repo private?
Confirmed. Upgrading to 188.8.131.52863 has fixed the issue.