Expression > 论坛主页 > Expression Blend + SketchFlow > External Resource Dictionaries
提出问题提出问题
 

已答复External Resource Dictionaries

  • 2009年6月30日 12:42David Rupp 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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

答案

全部回复