Loading different icon packs at runtime without restarting UI?
Posted: 15 Jul 2026, 10:26
Hi everyone,
I'm building a UI where users can switch between multiple icon packs (default, outlined, and high-contrast) from the settings menu while the application is already running.
My current approach is to keep each icon pack in a separate ResourceDictionary with identical resource keys, then replace the merged dictionary at runtime. The icons update in some views, but a few controls continue showing the old resources until the view is recreated.
Is there a recommended way in NoesisGUI to swap an entire icon set during runtime so that all existing controls refresh automatically? Would using DynamicResource everywhere be the correct solution, or is there a better pattern for large icon libraries?
I'd appreciate any examples or best practices from projects that support runtime theme or icon switching.
I'm building a UI where users can switch between multiple icon packs (default, outlined, and high-contrast) from the settings menu while the application is already running.
My current approach is to keep each icon pack in a separate ResourceDictionary with identical resource keys, then replace the merged dictionary at runtime. The icons update in some views, but a few controls continue showing the old resources until the view is recreated.
Is there a recommended way in NoesisGUI to swap an entire icon set during runtime so that all existing controls refresh automatically? Would using DynamicResource everywhere be the correct solution, or is there a better pattern for large icon libraries?
I'd appreciate any examples or best practices from projects that support runtime theme or icon switching.