Ask a questionAsk a question
 

AnswerExternal Resource Dictionaries

  • Tuesday, June 30, 2009 12:42 PMDavid Rupp Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hy all
    My problem is as follows:
    I built a resource dictionary with a lot of styleTemplates. This templates I compiled into a Class Library. I am used to work with Blend for its perfect support in this matter.

    What I want to to is to reference to an external dll (with all my style definitions) in the App.xaml by mergedDictionaries with the pack command. So far so good. Everything works fine, but now, when I am going to use the cool feature of blend (apply Resource) there are no styles to choose. When I look in the Resource Tab, there is my linked resource, but with doubleClick the exception "Unabel to find the specified file" occur.

    The curious thing is, when I hard code in XAML for example the Button Template={DynamicResource MyButtonTemplate} the Button appears in my defined style in the external DLL... :S

    Is blend not able to work in design time to apply resources by right Mousclick to (Edit Control Parts -> Apply Resource...) ?

    Thanks a lot for any answers...
    Greets dave

Answers

All Replies