Try explicitly loading the PresentationFramework.Luna.dll assembly via Assembly.Load before instantiating the wpf object
From: cnaSent: 10/10/2012 18:13To: fsh...@googlegroups.comSubject: [fsharpx] Using themes with FSharpxI have a simple FSharpx WPF application. I am trying to use the standard RoyalTheme.
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/PresentationFramework.Luna;component/themes/Luna.normalcolor.xaml" />
</ResourceDictionary.MergedDictionaries>
When I hit F5, I get the following error message:
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '12' and line position '37'.
I have been able to get this to work in C#, but I am not sure what I am doing wrong over here.
Any help is much appreciated. Regards
Chris