简体   繁体   中英

Xamarin Hot Reload doesn't make design changes to live data

When I make a change, such as a text color to XAML, in this case a label, during Hot Reload/Debug, the label's text is disappeared. (Or) It doesn't reassign the label.

It seems Hot Reload doesn't make changes to the design of data assigned at runtime or compiled time.

Is there anyway to fix it? or Does Xamarin Hot Reload has a missing feature?

<Label x:Name="label1" HorizontalOptions="Center" 
VerticalOptions="CenterAndExpand" TextColor="Blue"/>
public MainPage()
{
     InitializeComponent();
     label1.Text = "Label 1";
}

Please update for VS version to 16.7 or later, I test it in the 16.6.0 it not work, but it could be work in the VS version to 16.7. or later

And set reload option like following screenshot

在此处输入图像描述

Here is running GIF.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM