Hello,
Welcome to Microsoft Newsgroup Support Service! My name is Marco Zhou. It's
my pleasure to work with you on this thread.
If I understand you correctly, you have a UserControl which resides in
"PropertyControls" subfolder under the current project, and inside this
UserControl, you need to merge a resource dictionary file which resides in
another subfolder say "Resources". If this is the case, there are two
options you could try:
First option:
If the current project is a custom control library, you could use the
following the pack URI syntax to refer to the resource dictionary file:
Assemblyname;component/Resources/ControlResourceDictionary.xaml
"Assemblyname" is the name of the assembly which is built from the current
project. For instance, if your project name is "MyCustomControlLib", then
you could name the assembly as "MyCustomControlLib", so the pack URI will
be:
MyCustomControlLib;component/Resources/ControlResourceDictionary.xaml
Second option:
If the current project is a WPF executable project, you could use the
following pack URI instead:
pack://application:,,,/Resources/ControlResourceDictionary.xaml
For more information on pack URI scheme, you could refer to the following
link:
http://msdn.microsoft.com/en-us/library/aa970069.aspx
If you continue having any further questions on this issue, free feel to
ask here, we are glad to answer them.
--------------------------------------------------
Best regards,
Macro Zhou (v-*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.