Click here to Skip to main content
15,847,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to call customized WPF Window in VSTO ribbon?
For example, I made customized WPF window by designing the styles. And then I would like to use it in my Presentation addin. I can run the WPF window directly, but cannot call it from Ribbon.
Thanks very much!

(how to upload my project file?)

What I have tried:

namespace TC_PPT_Addin
        public partial class TC_Ribbon
                private void TC_Ribbon_Load(object sender, RibbonUIEventArgs e)


                private void btnImage_Click(object sender, RibbonControlEventArgs e)
                        TC_WPF_Window.MainWindow window = new TC_WPF_Window.MainWindow();
Updated 17-Mar-21 14:44pm

I find a way, create VSTO project >>> add WPF Usercontrol >>> change the usercontrol to whatever i want, for example, resource dictionary...
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900