Unanswered Location of ResourceDictionaries

  • Wednesday, November 14, 2012 7:44 PM
     
     
    Is there a way to set ResourceDictionaries to write to a sub-folder instead of the main trunk of a project?

All Replies

  • Thursday, November 15, 2012 9:10 PM
     
      Has Code

    Personally, I throw all my resource dictionaries in one place. Then map them via an app.xaml in each project using ResourceDictionary.MergedDictionaries which will often require a source string like / similar to.

    <Application.Resources>

    <ResourceDictionary>            

    <ResourceDictionary.MergedDictionaries>               

    <ResourceDictionary Source="/Your.Project.Name;component/Resources/Styles/YourStyles.xaml" />            

    </ResourceDictionary.MergedDictionaries>        

    </ResourceDictionary>

    </Application.Resources>






    Please mark answers as helpful when used, and answered when completed.