c# - VSTO Excel Add-In - WPF XAML Style issue -
i creating vsto office excel-add-in in popping simple wpf window. window styled mahapps library. issue no matter approach use, icons while showing fine in visual studio preview, during debug missing. icons.xaml responsible showing icons installed in resources folder, build action set page. thoughts issue?
<controls:metrowindow.resources> <resourcedictionary> <resourcedictionary.mergeddictionaries> <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/controls.xaml" /> <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/fonts.xaml" /> <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/colors.xaml" /> <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/accents/blue.xaml" /> <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/accents/baselight.xaml" /> <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/controls.animatedsinglerowtabcontrol.xaml" /> <resourcedictionary source="pack://application:,,,/exceladdin;component/resources/icons.xaml" /> </resourcedictionary.mergeddictionaries> </resourcedictionary> </controls:metrowindow.resources>
i've tried also, without success:
<resourcedictionary source="/exceladdin;component/resources/icons.xaml" /> <resourcedictionary source="pack://application:,,,/component/resources/icons.xaml" />