dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.23k stars 1.76k forks source link

[Enhancement] Hot Reload: make StylesSheet hot reload friendly #621

Open etvorun opened 3 years ago

etvorun commented 3 years ago

Consider following XAML

<ResourceDictionary>
    <StyleSheet>...</StyleSheet>
    <Color x:Key='C1'>Red</Color>
    <StyleSheet>...</StyleSheet>
<ResourceDictionary>

StyleSheet entries are not hot reload friendly because of the way ResourceDictionary processes StyleSheets. First, it uses non-public ResourceDictionaly.StyleSheets property to store style sheets. Second, there is no API to remove style sheets. Even if ResourceDictionary.StyleSheets property becomes. Because RD needs to fire ValuesChanged event when entries re modified.

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.