CSS Stylesheet doesn't automatically reload when included in App.xaml #64
Using the sample app, if we move the StyleSheet reference from the page*.xaml files into the App.xaml file, changes to the CSS do are not reloaded.
To replicate, on a Windows Android Simulator, I loaded the sample app, navigated to Thanos, then changed the .TeamLabel color and saved. Notice the color does not change.
If I hit the back button. Then tap on Thanos again, the color change is now visible.
Remove line from Pages xaml files:
<StyleSheet Source="../Assets/styles.css" />
<?xml version="1.0" encoding="utf-8"?> <Application xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Xamarin.Forms.HotReload.Sample.App"> <Application.Resources> <StyleSheet Source="Assets/styles.css" /> <ResourceDictionary> <Color x:Key="CellTitleColor">White</Color> </ResourceDictionary> </Application.Resources> </Application>
The text was updated successfully, but these errors were encountered: