tags:

views:

66

answers:

0

I am working on a project, in which I am changing themes, by doing this there are some warnings being issued, and I am wondering how to prevent them from beeing issued, or reaching the debug output.

`System.Windows.ResourceDictionary Warning: 9 : Resource not found`;

It happens when I do

Application.Current.Resources.MergedDictionaries.Clear();    
Application.Current.Resources.MergedDictionaries.Add(theme.ResourceDictionary);

I perfectly understand why there is a warning, I would just like to stop it being outputted (while debugging)