You actually need to write the Uri like this:
Assembly.LoadFrom(@"C:\temp\test.dll");
ResourceDictionary rd = new ResourceDictionary();
rd.Source = new Uri(@"pack://application:,,,/test;component/myresource.xaml");
More Related Contents:
- Interaction Triggers in Style in ResourceDictionary WPF
- Dynamically loading resource dictionary files to a wpf application gives an error
- How do I bind a WPF DataGrid to a variable number of columns?
- Setting Canvas properties in an ItemsControl DataTemplate
- Loading XAML at runtime?
- Find a WPF element inside DataTemplate in the code-behind
- Datagrid binding in WPF
- Can bindings create memory leaks in WPF?
- What’s the best way to pass event to ViewModel?
- Can I specify a generic type in XAML (pre .NET 4 Framework)?
- How to set a binding in Code?
- Convert WPF (XAML) Control to XPS Document
- How to format TimeSpan in XAML
- How to implement a navigation button in shared application resources?
- WPF TextBlock memory leak when using Font
- WPF ListView: Attaching a double-click (on an item) event
- How to get a Uri of the image stored in the resources
- The name “XYZ” does not exist in the namespace “clr-namespace:ABC”
- WPF Combobox: Different template in textbox and drop-downlist
- Really simple WPF form data validation – how to?
- WPF Filter a ListBox
- Loading XAML XML through runtime?
- Stop WPF animation, storyboard begin in xaml but stopping it in codebehind?
- Having HierarchicalDataTemplates in a TreeView
- Could not load file or assembly ‘System.Windows.Interactivity’ [duplicate]
- Using a XAML file as a vector Image Source
- WPF C# InputBox
- Binding Commands to Events?
- How do you pass parameters from xaml?
- Sort a wpf datagrid programmatically