Reputation: 269
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
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
Here is running GIF.
Upvotes: 1