
 
	Well, leaving aside the language (the problem anyway is not using one language or another, it is rather having the possibility to switch; my application provides 3 different languages; I get this exception when i use something else than english; however, I do not yet have resources for every languages, only english...is it a lead?), what could prevent a project Modules.A in my solution from accessing styles (i.e. resource dictionaries) specified in another project B?
Application.xaml, in project B (forget about Fluent here; I did use Actipro's stuff during the tests):
<Application x:Class="Application"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Application.Resources>
        
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Modules.A;component/Resources/ValidationErrorTemplateStyle.xaml" />
                <ResourceDictionary Source="pack://application:,,,/B;component/Resources/ControlStyles.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Office2010/Silver.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <SolidColorBrush x:Key="grpBoxBorderBrush" Color="#FF3E87F0"/>
            <SolidColorBrush x:Key="headerPropertiesBackgroundColor" Color="#FF01949B"/>
            <Thickness x:Key="grpBoxBorderThickness">2</Thickness>
            <SolidColorBrush x:Key="grpBoxBorderForeground" Color="Black"/>
        </ResourceDictionary>
    </Application.Resources>
</Application>
 In all of the View's code-behinds in project Modules.A, InitializeComponent (http://stackoverflow.com/questions/245825/what-does-initializecomponent-do-and-how-does-it-work-in-wpf) cannot find ValidationErrorTemplateStyle.xaml. But it can when I am NOT using Actipro's RibbonWindow. SO, if it is clearer for you now, could you please tell what is going on, or what am I doing wrong?
Thank you very much
 
		[Modified 11 years ago]