http://avalondock.codeplex.com/SourceControl/changeset/view/62498#1218343
<ResourceDictionary Source="/AvalonDock;component/Resources/Common.xaml"/>
There must be something I don’t understand about either the syntax of a ResourceDictionary’s Source property, or how XAML is compiled. I’d like to insert AvalonDock’s source directly into a project, but it seems like some of its XAML files reference “the AvalonDock assembly”.
How can this be?
The
Sourceproperty of theResourceDictionaryis actually aUriwhich essentially represents a path to a resource. In this case, it just says to look in theAvalonDockassembly and find theCommon.xamlfile. See Pack URIs in WPF for more info.If you want to include the AvalonDock source in your project, you should replace the
/AvalonDock;part of the URI with the one of your project (if you put the Common.xaml file in the same directory as in the AvalonDock project).