0

I have an MVVM WPF application and I have below property that loads an xaml dictionary and returns it:

   public static ResourceDictionary ResourceDict
        {
            get
            {
                if (_ResourceDict == null)
                {
                    // Load resource dictionary
                    _ResourceDict = new ResourceDictionary
                    {
                        Source = new Uri("pack://application:,,,/myApp;component/Resources/Dictionary.xaml", UriKind.RelativeOrAbsolute)
                    };

                    return (_ResourceDict);
                }
                else
                {
                    return (_ResourceDict);
                }
            }
        }

Now I need to merge another xaml dictionary (AnotherDictionary.xaml) with above one and return a single ResourceDictionary. How can I do that?

Willy
  • 9,848
  • 22
  • 141
  • 284
  • It looks like I have found the solution. I am trying it right now: https://stackoverflow.com/a/59606923/1624552 – Willy Nov 09 '22 at 15:13

0 Answers0