WPF Global Resources in App.xaml

Posted by Ryan on Stack Overflow See other posts from Stack Overflow or by Ryan
Published on 2010-06-18T13:47:50Z Indexed on 2010/06/18 13:53 UTC
Read the original article Hit count: 528

Filed under:
|
|

I have created a custom Treeview control and am trying to access the HierarchicalDataTemplate resource of this control from another window in the same project.

I have placed <ResourceDictionary Source="/Controls/TreeView/Themes/Generic.xaml"/> into my App.xaml file.

Everytime I run, I get an error saying that it can not find the resource key "scene" - the name of the HierarchicalDataTemplate from my custom control.

How can I access this template?

Thanks

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml