zawhtut
zawhtut

Reputation: 269

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";
}

Upvotes: 0

Views: 895

Answers (1)

Leon Lu
Leon Lu

Reputation: 9234

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

enter image description here

Here is running GIF.

enter image description here

Upvotes: 1

Related Questions