Skip to content

In this test project I'm unsuccessfully trying to access resources from a separate assembly.

Notifications You must be signed in to change notification settings

SetTrend/Wpf-ResourceTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF External Assembly Resource Lookup Test Project

In this project I'm trying to access resouces from a separate Assembly.

The current version fails to do so.

The following line in MainWindow.xaml isn't working, no background color is being displayed:

<StackPanel Grid.Row="0" Background="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type res:DummyForSharingResources}, ResourceId=TestBg}}"></StackPanel>

I published this repository seeking for help.


What I did so far

  • "Themes/generic.xaml" file created in supplemental assembly (StylesAndResources), filled with resources.
  • ThemeInfoAttribute updated in application assembly to reference ResourceDictionaryLocation.ExternalAssembly.
  • Dummy class created in StylesAndResources in order to be able to have a ComponentResourceKey be generated.

What am I doing wrong?

About

In this test project I'm unsuccessfully trying to access resources from a separate assembly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages