This project is read-only.
Probably, the application resources are defined like this:

<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="MyApp">			 
    <Application.Resources>
        <ResourceDictionary Source="/CWP.Shared;component/themes/generic.xaml" />
    </Application.Resources>
</Application>

However, Silverlight does not allow to add resources to a ResourceDictionary where the source is set. To be able to use default styles, use this code:

<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="MyApp">			 
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/MyApp.Shared;component/themes/generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Last edited Aug 20, 2011 at 1:18 PM by GeertvanHorrik, version 1

Comments

No comments yet.