How catch "Resource not found" warnings in WPF / Visual studio

Posted by Sdry on Stack Overflow See other posts from Stack Overflow or by Sdry
Published on 2010-05-06T11:16:20Z Indexed on 2010/05/26 9:51 UTC
Read the original article Hit count: 322

Filed under:
|
|

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)

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf