7
Vote

Metro Theme: Resources missing

description

Hey!

Just a small issue in the metro theme: Some Resources can't be found, e.g.
Resource not found; ResourceKey='AvalonDock_ThemeMetro_BaseColor33'
See MVVM Demo App.

Thanks, micro

comments

MichaelTR wrote Jun 14, 2013 at 3:47 PM

Not so small as you might think...

I get many of them and my application is really slowed down now since I upgraded from commit 96782 to 102188.

I'm using Aero.
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='TargetType=Xceed.Wpf.AvalonDock.Themes.AeroColors ID=BaseColor12'; ResourceKey.HashCode='-416740761'; ResourceKey.Type='System.Windows.ComponentResourceKey'

pat_rizio wrote Jun 17, 2013 at 8:33 AM

In VS2010 Theme a lot of missing resources also:
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor2'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor4'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor4'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor2'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor4'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor4'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor33'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='AvalonDock_ThemeVS2010_BaseColor33'
I created my own theme for AvalonDock version 2.0.1771 and I used it with no problem.

If I used it on new AvalonDock 2.0.2000 a lot of resources are missing then I got a lot of unstyled and white components on UI, application is slower then before.

I hope Xceed fix this problem as soon as possible.

bdeem wrote Aug 8, 2013 at 7:16 PM

To fix, create a new entry in your MergedDictionaries. Be sure to modify the theme name as needed.
<Application x:Class="Application"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:MyApplicationNamespace">

  <Application.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/Xceed.Wpf.AvalonDock.Themes.VS2010;component/Theme.xaml"/>
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Application.Resources>
</Application>

pat_rizio wrote Sep 3, 2013 at 8:10 AM

Thank you very much.
It works like a charm.

This issue could be labeled as solved.