
I am building an Office Addin using WPF for my usercontrols. I interact with user via CustomTaskPane so I have to use a Forms.Usercontrol with a FormsIntegration.ElementHost which hosts the WPF
My problem: CurrentTheme changes are not reflected on my UI.. and I've been trying and typing and cursing a lot over the past days.
When I ran the same control directly in a WPF Window everything works as expected... which is when I realized that apparently the ElementHost is interfering somehow. I can partly solve it using an eventhandler for CurrentTheme which uses SetTheme on individual controls, but that's error prone and cumbersome.
Anyone know how to solve this the correct way?
Regards,
Jurgen
Example code can be supplied in a simplified VB.project