WPF performance impact ResourceDictionary merging vs updating
问题 I have to update font size dynamically in WPF app. Performance wise which is a better approach or what are pros & cons of below 2 approaches? Merging dictionary [see API OnFontSizeChanged_MergeDictionary] Updating Resource Key [see API OnFontSizeChanged_UpdateResourceKey] I have defined all used FontSizes in GenericResourceDictionary.xaml: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System=