Closed grizoood closed 2 months ago
You can. But as you might be aware WPF runtime is very sensitive on the assembly hosting model when it comes to loading the resource dictionaries. Thus Source="/Assets/ResourceDictionary.xaml"
needs to be a fully qualified resource uri, which includes the assembly name (I think).
it is a little black magic... The URI can be:
You will need to play around that URI
I allow myself to reopen because my msi still does not open, I see the first interface with the progressbar but I never see the home page.
When I delete the dictionary it works, it shows me the welcome page.
Yes, the second method works:
<wixsharp:WpfDialog.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!--<ResourceDictionary Source="/Assets/ResourceDictionary.xaml" />-->
<ResourceDictionary Source="pack://application:,,,/WixSharpSetupWPFUI;component/Assets/ResourceDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</wixsharp:WpfDialog.Resources>
Great. Thank you for sharing. You've done it very quickly. Sometimes it can take much longer to find the right syntax...
Can we use a Resource Dictionary for styles, datatemplates, etc.?
I try style RoundButton but the msi not show, not start :