Provides a hash table / dictionary implementation that contains WPF resources(e.g. vector drawings, brushes, colors, control template, data templates etc.) used by components and other elements of a WPF application.
0
votes
1answer
19 views
Accessing a UserControl's resource from itself
Is it possible to access a defined resource in a UserControl from itself? How?
I'm trying to do this:
<UserControl xmlns="all defined namespaces here..."
Visibility="{Binding ...
0
votes
0answers
21 views
Resource Dictionary error during Silverlight app initialisation
I've got a problem with a Silverlight application. It has been working and I haven't changed the code, but I have changed a few other things such as upgrading to VS2012. I thought all was well with ...
0
votes
1answer
25 views
WPF: Make Application Resources override usercontrol library resources
I have a wpf application project, with user controls in a separate project.
I'd like to have different resource dictionaries in the different projects
When I view the user controls from the user ...
-3
votes
1answer
36 views
How to inspect and extract XAML style from WPF application?
I want to extract XAML styles from WPF application specially resource dictionary like this:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
...
1
vote
0answers
35 views
style is not applied at runtime but being applied at design time in wpf
I have a simple style in a resource dictionary which is located in a WPFResources.dll, I am accessing this style in another project, I can see that the style is being applied at design time, but when ...
0
votes
1answer
44 views
Using a style from a MergedDictionary multiple times
I have the very same question as posted a year ago here, however the supposedly correct answer does not work at all, as stated in a comment over there.
My setup is similar to the one described in the ...
1
vote
1answer
40 views
Windows Phone Application Resources
I've added resource to App.xaml like this:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
...
1
vote
0answers
53 views
ResourceDictionary and Serious Performance Issue
I have two simple ResourceDictionary in my application.
Converters.xaml
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:l="clr-namespace:MyApp" ...
0
votes
1answer
45 views
Can't properly load a ResourceDictionary at runtime
Note: I have a ResourceDictionary and WPF Window (my View) and ViewModel, all declared within a WinForms application. Therefore I have no App.xaml.
I have the following converter declared:
Public ...
1
vote
1answer
45 views
Can the WPF ResourceDictionary return a new instance for each request
We're using ResourceDictionaries to store layout information for our app. The lazy initialisation is great because we can grab the required layout for an element only when that element is created. The ...
0
votes
1answer
34 views
Define UserControl within a ResourceDictionary?
Is it possible to define a UserControl within a ResourceDictionary, and then add it to a component within the same XAML file? Something like:
<Window x:Class="WpfApplication1.MainWindow"
...
2
votes
1answer
178 views
WPF MahApps.Metro - Where to put ResourceDictionaries?
I'm using MahApps.Metro, version 0.11.0.9-ALPHA for .NET 4.5. and want to know the best way to reference their resource dictionaries.
I was told that I shouldn't reference them as merged ...
0
votes
1answer
22 views
Unable to reference BrushResource in linked ResourceProject from Style ResourceDictionary
I have a project in my application where I keep all of my Resources & reusable custom control classes (including styles, brushes, custom controls, etc.).
The App.xaml file of my Application's ...
0
votes
0answers
105 views
VS 2012 App.xaml Implicit Styling Issue
I'm designing an application in C# and XAML based on MahApps.Metro open-source toolkit while working in the Microsoft Visual Studio 2012 IDE. Everything works fine except for implicitly defined styles ...
1
vote
0answers
72 views
Shared WPF resources inside an activity designer library
I'm developing a bunch of custom activity designers, which contain custom controls, images, styles etc. The designer XAMLs are spread over several subdirectories in a library project (not a WPF ...
0
votes
1answer
45 views
Resource Dictionary unable to catalog Converters
I am trying to pull our Converters into a common location at the top of the application. When I do so I end up with the following error:
SourceDefaultValueConverter is not supported in a Windows ...
0
votes
0answers
69 views
Resource Dictionary throwing Error
I have created a resource template file which contains the below code,
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
...
3
votes
1answer
142 views
Style WPF normal Control depending on Windows Theme
I have read lots of thing about WPF Theme, Skin, Style etc... But there is still something I cannot achieve.
I have custom controls, which are styled depending on the OS theme, by having a different ...
0
votes
1answer
68 views
Merged ResourceDictionary vs App.xaml
I am reading up about the ResourceDictionary and have come to a confusing point.
It appears I can only have 1 ResourceDictionary per XAML. So, if I wanted to use more than one, I can Merge the ...
0
votes
1answer
22 views
Get the loaded instance of the code behind of ResourceDictionary
I've made a resource dictionayry for a user control and create a class that derived from ResourceDictionary that managed different eventsetters and handlers for controls contained in the resource ...
0
votes
1answer
37 views
How to expose x:key from dll to host application
I have a 'theme engine' I have created that houses resource dictionaries and a custom combobox to change the skin of an application. This is wrapped in a .dll file and the intention is to be able to ...
1
vote
3answers
166 views
Instantiate ResourceDictionary xaml from other Assembly
I have defined a Reource Dictionary in a WPF Class Library containing colors and brushes, called BrushResources.xaml.
<ResourceDictionary ...
0
votes
0answers
47 views
An issue to add Key and Value into ResourceDictionary by dynamic
var dictionary = new ResourceDictionary();
dictionary.Add("key1", "Value1");
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
...
0
votes
1answer
46 views
setting the MainWindow.Background to an external resource
I have a .dll that contains a theme 'engine'. I have all but completed this engine with a built in combobox that handles switching the themes through the .dll. In short what I'm trying to accomplish ...
0
votes
0answers
79 views
How to access the resource via key defined in generic.xaml
Current I am using Generic.xaml and defined a custom class instance in it. Like below:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
...
2
votes
1answer
127 views
How to Bind To Data within a Datatemplate of a ContentControl
I have the following simplified Example:
<Window x:Class="TemplateBinding.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
...
2
votes
1answer
175 views
How should application wide resources be organized?
Here is the scenario:
I have been using VS 2010 to write quite a large WPF project using MEF. There are multiple projects within this solution and I have one ResourceDictionary for all of my styles.
...
0
votes
1answer
125 views
WPF TabItem header skew and Images or Buttons skew
I need to skew (I am sorry if it is not exactly the right word but I am not sure in english) TabItem header. Like in this image:
Is it possible? And how can I do the same thing for buttons? And if ...
5
votes
1answer
140 views
Loading ResourceDictionary resource at runtime from assemblies with the same name
I encountered some problem when trying to load resources from two separate assemblies having the same name but located in a different folder:
C:\folder1\fcl.dll
C:\folder2\fcl.dll
A ...
0
votes
1answer
51 views
using a resource dictionary in multiple applications
Is there a way to use a resource dictionary in multiple applications? What I have is a theme generator which uses merged dictionaries etc... works GREAT! I'm looking for a way to reference this ...
0
votes
1answer
200 views
Change Resource Color from c# code in Windows 8 application
I want to change the color of a SolidColorBrush in a xaml, from c# code, while the app is running.
(This is a Pie chart from WinRT XAML Toolkit, and I want change the color of the slices.)
...
1
vote
1answer
247 views
Dynamically changing theme in wpf with nested resource dictionaries
What I want to accomplish is to allow my users to change the overall color theme of my application by selecting a master color from a list. I have got this working but there was something that I ...
0
votes
1answer
83 views
How to bind to a control element within a ResourceDictionary
I'm trying to refer to an element in my WPF Control from within a ResourceDictionary on that control. Here's an example:
<UserControl.Resources>
<ResourceDictionary>
...
0
votes
0answers
15 views
How do you factorise UserControls that only differ by a few resources' values
In legacy code I found two very similar UserControls which I want to merge into one.
They have exactly the same layout, the only differences is the value of some resource they use (mainly colors and ...
1
vote
1answer
34 views
How to update colors, in place, and save them for use next time?
OK, I'm ready to accept that I'm doing this wrong but this is what I've come up with so far.
I have a couple of ListViews. They have FileSystemInfo items in them. A style (from a Resource Dictionary) ...
0
votes
1answer
168 views
Maven Plugin Development - Include Current Project's Resources to Plugin - “include-project-dependencies” - “NoSuchElementException”
I am trying to develop a maven plugin that uses resource files of the project that uses it as a plugin. I implemented that suggestion into my maven-plugin project and it was builded well. But when i ...
0
votes
2answers
216 views
How to create ResourceDictionary in code-behind?
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
0
votes
1answer
376 views
How to dynamically add key and value to the ResourceDictionary in wpf?
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MultiLanguage.App"
StartupUri="MainWindow.xaml">
...
1
vote
1answer
102 views
Resource Conversion in XAML
I'm searching for a way to modify colors (SolidColorBrush's) in XAML. I've been using CSS / less for some time now (less@github) and like the way it allows me to just save one color as RGB and to say ...
0
votes
0answers
37 views
How to access ResourceDictionary in Silverlight
I have xaml that looks like this:
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary ...
0
votes
0answers
40 views
How do you load the default template for an object in WPF?
The title is pretty self-explanatory. I cannot for the life of me, figure out how to load the default template for a particular object from within a DataTemplateSelector.
I know you're gunna ask. ...
2
votes
2answers
271 views
Using XAML resourceDictionary in code
that's resourcedictionay file: TopologyTree.xaml
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
1
vote
2answers
541 views
WPF Controls as StaticResource in Resource Dictionary, used in multiple WPF Windows?
I have a Button control as a resource in Resource Dictionary as below:
<!--ButtonResources.xaml file-->
<ResourceDictionary
...
1
vote
1answer
167 views
Access to the elements of a resource dictionary of c# code by name
How I can code in c# to get access to the Image my_image_name in the resource?
And as I gave resource dictionary name mydic_name. Can I refer to the dictionary by name?
<ResourceDictionary ...
0
votes
0answers
40 views
MediaElements in MergedDictionary: Designer Error
I'm building an Windows Store application. I placed some MediaElements into an external resources dictionary file (.xaml). Then I attached it to my MainPage's ResourceDictionary throught ...
0
votes
1answer
264 views
StaticResource priority in Windows Phone 8
I have a base styles files that contains all by base colors and base font settings. Then I have 2 other resource dictionaries that use that the initial resource.
I have it setup as follows:
...
0
votes
1answer
117 views
Resources not resolving from ResourceDictionaries
I'm having problems resolving Resources from my ResourceDictionaries.
I decided to refactor my rather large ResourceDictionary into individual dictionary files, organized into subfolders.
I have a ...
1
vote
0answers
144 views
Resource management in a mixed C# + WPF / C++ Application
I'm developing a Windows application using C# and WPF. This application has number crunching component and a rendering component written C++, and interop'd using C++/CLI, so that most of the ...
0
votes
1answer
201 views
using resource dictionary as central collection of all images
i have a project with a lot of assemblies (> 100). many of those assemblies have subfolders like "images". many wpf-windows/user-controls for example have a "\images\close.png". that means that i have ...
1
vote
3answers
103 views
Is it possible to set multiple values (one for each language) in WPF ResourceDictionary (.resx) containing localization strings?
After reading the very nice Globalization tutorial for WPF in CodeProject, I plan to apply the same technique in my own projects.
The tutorial shows how to create a Strings.resx containing named ...