none
Resource Dictionary breaks Design-Time window RRS feed

  • Question

  • I have a WPF control that is hostd in an Element Host within an Actions Pane in Excel 2013. If I view the control in the designer it works fine. However when I add

        <UserControl.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </UserControl.Resources>
    

    to the WPF user control and re-open the Actions Pane in the designer, I get the following error

    'Could not load file or assembly 'MahApps.Metro, Culture=neutral' or one of its dependencies. The system cannot find the file specified.

    If I build and run the solution it runs just fine. How do I get rid of this error?

    Wednesday, September 11, 2013 10:31 PM