Silverlight MergedDictionaries and subclassing of Application
Posted
by mikeymo
on Stack Overflow
See other posts from Stack Overflow
or by mikeymo
Published on 2010-04-06T15:52:12Z
Indexed on
2010/04/08
11:53 UTC
Read the original article
Hit count: 309
Silverlight
We have subclassed the Silverlight Application class to add some additional functionality and then use this in multiple projects. The problem is that the Resources defined in App.xaml do not seem to get loaded. Has anyone else seen this and/or have some insight? Here are the contents of App.xaml (note: the application starts and runs fine but then chokes when it looks for a Resource)
<myNS:ApplicationBase
xmlns:myNS="clr-namespace:Corp.XYZ.Infrastructure.Silverlight.Core;assembly=Corp.XYZ.Infrastructure.Silverlight.Core"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Corp.XYZ.BMW.App"
>
<myNS:ApplicationBase.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/AlternateControlStyles/StandardExpander.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</myNS:ApplicationBase.Resources>
© Stack Overflow or respective owner