Therefore, when the values associated with keys are replaced, the changes are applied to the VisualElement objects. This occurs because the DynamicResource markup extension maintains a link to dictionary keys. This is achieved by adding an instance of the selected theme to the MergedDictionaries property of the app-level ResourceDictionary.Īny VisualElement objects that set properties with the DynamicResource markup extension will then apply the new theme values. This is achieved by clearing the MergedDictionaries property of the app-level ResourceDictionary.
0 Comments
Leave a Reply. |