RE: [fsharpx] Using themes with FSharpx

10 views
Skip to first unread message

Gustavo Guerra

unread,
Oct 10, 2012, 3:21:21 PM10/10/12
to fsh...@googlegroups.com
Try explicitly loading the PresentationFramework.Luna.dll assembly via Assembly.Load before instantiating the wpf object

From: cna
Sent: 10/10/2012 18:13
To: fsh...@googlegroups.com
Subject: [fsharpx] Using themes with FSharpx

I 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

cna

unread,
Oct 10, 2012, 4:45:58 PM10/10/12
to fsh...@googlegroups.com
Gustavo, this worked. Thanks for your help.

Regards

Chris
Reply all
Reply to author
Forward
0 new messages