Search code examples
wpfmvvmcross

mvvmcross WPF How to add resource dictionary


I'm having issues using mvvmcross by adding resource dictionary, see image. I'm having the following error: An Error occured while finding the resource dioctionary.

Error image link


Solution

  • MSDN: Referenced Assembly Resource File The pack URI for a resource file that is compiled into a referenced assembly uses the following authority and path:

    Authority: application:///.

    Path: The name of a resource file that is compiled into a referenced assembly.

    Try this

    <ResourceDictionary Source="pack://application:,,,/LeagueOfAccount.Core;component/Themes/LolLoginTextBox.xaml"/>
    

    see more Pack URIs