question

OmerFarukORUC-5467 avatar image
1 Vote"
OmerFarukORUC-5467 asked ChazAshley-0081 answered

XAML Designer not showing up for Android.

When I go to edit a xaml file in a xamarin.forms project I can only see the xaml and not a split screen with both the xaml and the UI preview. This problem is present in Visual Studio 2019 Version 16.10.3. I have made sure the XAML designer is enabled in options and restarted the solution multiple times and it has not been fixed.


Xaml Designer Settings
112120-picture1.png


Hot Reload Settings
112099-picture2-hotreload.png


dotnet-xamarin
picture1.png (182.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLu-MSFT avatar image
1 Vote"
LeonLu-MSFT answered LeonLu-MSFT commented

Hello,​

Welcome to our Microsoft Q&A platform!



The XAML Previewer has been deprecated in Visual Studio 2019 version 16.8 and Visual Studio for Mac version 8.8, and replaced by the XAML Hot Reload feature in Visual Studio 2019 version 16.9 and Visual Studio for Mac version 8.9. Learn more about XAML Hot Reload in the documentation.

XAML Previewer is removed in 16.9, You can use hot reload to replace it, please see this document:https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/xaml-previewer/?pivots=windows



Best Regards,

Leon Lu



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm trying both. Negative.

112523-picture3.png


0 Votes 0 ·
picture3.png (264.8 KiB)

If you use XAML Hot Reload, when you debug your applciation, you can change the xaml code at the runtime, after that click the Ctrl+s, Your view will be changed at the runtime without stop the debug.

0 Votes 0 ·
ChazAshley-0081 avatar image
1 Vote"
ChazAshley-0081 answered

This is funny,

How do you layout your controls/component with Hot Reload? The toolbox is empty.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.