firstfloorsoftware / mui

Modern UI for WPF
Microsoft Public License
2.6k stars 754 forks source link

how to use mui by vsto in ms office addin? #14

Open FredAss opened 9 years ago

FredAss commented 9 years ago

Hi,

i tried to use the mui in an office addin and vsto. As I know are the restrictions from vsto that I can't use wpf windows directly. The only way to use wpf is to use a wpf control in a wpf host element on a winforms window. I tried to use the modernWindow or a wpf window in the host element and it is not working. I am now at the point that I have no idea what is to change to use mui as a wpf control ?!

Have anyone another experience to solve this scenario?

Thanks for advice! Freddy

sebgur commented 9 years ago

Hi,

I am launching WPF components from Excel, but could you explain more what you mean by "directly"? I've never tried with ModernUI but it was my goal to do so at some point, and I didn't expect particular problems since I can already do it with WPF.

FredAss commented 9 years ago

Hi,

as "directly" I mean, that I can start an MUI app or window in the same way as from an winforms app. Now I can handle hosted WPF controls but I have no idea what I can do to use mui.

MasterLamp commented 8 years ago

I'm try the some. I just can't get the VS to resolve the StaticResources. Style="{StaticResource ContentRoot}"> => "The resource "xxx" could not be resolved. Did anyone succeed integrating MUI in a VSTO?