I am working on a word (2010) addin project. In the ribbon, I have a settings button.
If I click on the settings button, it should open a wpf window (which will have the settings related UI).
How do I open a wpf window from word using C#?
var window = new System.Windows.Window();
window.Content = new System.Windows.Controls.Button { Content = "Click me!" };
window.Show();
You need to reference the following assemblies: