tags:

views:

587

answers:

2
A: 

Try adding the folder name to the pack path.

pack://application:,,,/OfficeStyle;component/Resources/OfficeStyleWindow.xaml

mdm20
This has no effect..
Robbert Dam
A: 

what is the build action for your OfficeStyleWindow.xaml file ? It should be Page, not EmbeddedResource

Thomas Levesque
Well, I started with "Resource", but than Reflector does not show the xaml file. It only shows when I make it EmbeddedResource. In both cases the resource file cannot be located.
Robbert Dam
Sorry, I realize I made a mistake... the build action should be Page, not Resource ; I updated my answer. You won't see the XAML file in Reflector because it will be compiled as BAML. In Reflector it will appear as a MemoryStream resource named "Resources/OfficeStyleWindow.baml", in the resource module OfficeStyle.g.resources
Thomas Levesque
Thanks, making it "page" did the job!
Robbert Dam