WPF Page Resource not found; error

WPF Page Resource not found; error

esatis
Advocate Advocate
970 Views
3 Replies
Message 1 of 4

WPF Page Resource not found; error

esatis
Advocate
Advocate

Hi, 

when using WPF Page inside of Revit, I get a ton of errors like these: 

 

System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='BrowserActiveTabNormalBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='BrowserUnactiveTabNormalBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='ClientAreaForegroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='BrowserActiveTabNormalBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='BrowserUnactiveTabNormalBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='ClientAreaForegroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='ClientAreaBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='CanvasActiveTabNormalBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='CanvasUnactiveTabNormalBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='ClientAreaForegroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='CanvasActiveTabNormalBackgroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='DockWindowButtonNormalForegroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='DockWindowButtonNormalForegroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='DockWindowButtonNormalForegroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='DockWindowButtonNormalForegroundBrush'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='BrowserActiveTabNormalBackgroundBrush'
E.T.C... 

 

Even if I add CustomResourceDictionary.xaml, I get the same errors.

 

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<SolidColorBrush x:Key="BrowserActiveTabNormalBackgroundBrush" Color="#FFCCCCCC"/>
	<SolidColorBrush x:Key="BrowserUnactiveTabNormalBackgroundBrush" Color="#FFE5E5E5"/>
	<SolidColorBrush x:Key="ClientAreaForegroundBrush" Color="#FF000000"/>
	<SolidColorBrush x:Key="ClientAreaBackgroundBrush" Color="#FFFFFFFF"/>
	<SolidColorBrush x:Key="CanvasActiveTabNormalBackgroundBrush" Color="#FFDDDDDD"/>
	<SolidColorBrush x:Key="CanvasUnactiveTabNormalBackgroundBrush" Color="#FFEEEEEE"/>
	<SolidColorBrush x:Key="DockWindowButtonNormalForegroundBrush" Color="#FF444444"/>
</ResourceDictionary>

 


The WPF Dockable page works as expected and all the styling is as set in my pages xaml.
What could be the cause of these errors? 

0 Likes
Accepted solutions (2)
971 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

Why do you call them errors? They are marked as warnings. You can probably simply ignore them. You say everything works as expected, and warnings can be ignored.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

nice3point
Advocate
Advocate
Accepted solution

This is normal behaviour, if in runtime you see these colors, as Jeremy said just ignore. In case of errors you will just get exceptions

0 Likes
Message 4 of 4

jw.vanasselt
Advocate
Advocate

Is there a way to disable this warnings?
I read in many different forums that this affect the debug performance