staticresource Questions
1
I've got a situation where I'm attempting to resolve visual components in a data template referenced in a resource dictionary, referring to a static resource of the app.xaml markup, see example bel...
Waziristan asked 20/12, 2012 at 22:25
4
Solved
I have a few styles in my App.xaml file:
<SolidColorBrush x:Key="styleBlue" Color="#FF4B77BE"/>
<SolidColorBrush x:Key="styleRed" Color="#FFF64747"/>
<SolidColorBrush x:Key="styleOr...
Affliction asked 24/11, 2014 at 14:12
2
Solved
I want to set margin as default for all page. For height i used
<System:Double x:Key="Height">20</System:Double>
But margin is '0,2,0,0' what the type i have to use?
I don't want ...
Mawson asked 6/11, 2013 at 5:53
2
Solved
I'm trying to set up my styles properly. Thus I've created an external ResourceDictionary for all common style attributes, in which I've defined a default font family like this:
<FontFamily x:K...
Underclassman asked 22/8, 2018 at 13:37
1
Solved
After building my website with Vue.js 2.6.2 using vue-cli, I encountered a problem with static resources (images in this case). Webpack bundles them up in the /img/ folder which is fine, but the im...
Remonaremonetize asked 30/4, 2019 at 12:24
1
Solved
I'm working on MS .NET WPF; In XAML, I've defined some static resources. I want to assign them into an array which is also declared in XAML.
Here are the static resources:
<local:Person x:Key=...
Towney asked 21/5, 2018 at 7:33
2
I want to implement ASP.Net type theme in WPF. User have selection of various predefined themes and can switch to another theme.
To implement this I have tried by creating different resourcedictio...
Gare asked 22/6, 2012 at 5:21
5
Solved
When I try to bind a valueconverter from a defined enum Status to brush, I get an error in my XAML designer:
'OKStatus' resource not found.
The application works fine runtime, but I'm not able to...
Discalced asked 1/6, 2011 at 13:21
2
Solved
I'm currently working on having dictionaries of styles and templates that I can dynamically apply to my application. Before this "new wanted" dynamical behavior, I had several resource dictionaries...
Neustria asked 1/12, 2010 at 13:51
0
If I try to store a collection of SetterBase objects in xaml, that includes and EventSetter, The xaml loader throws an error.
The root cause is that the xaml loader tries to set PresentationFramew...
Shavonneshaw asked 12/1, 2017 at 3:59
3
Solved
I have got an exception "Cannot find resource named 'mrg'. Resource names are case sensitive." when I try to do the following:
MainWindow.xaml:
<Window.Resources>
<Thickness Left="0"
R...
Cnemis asked 22/1, 2013 at 8:52
2
Solved
I have a template for items control shown below. I need separate instances of colorProvider for each item in the template. Each item in the items control requires a seperate instance of the Color P...
Latria asked 19/2, 2016 at 17:8
2
Solved
I'm having a simple WPF XAML Window, I need to Create a StaticResource Key with in the following XAML.
The XAML Source Code is
<Window x:Class="WpfApplication1.Trigger"
xmlns="http://schemas....
Transfinite asked 18/12, 2015 at 8:50
2
Solved
I want to concatenate in my window title a property from my viewmodel and a value that cames from a resources file.
This is what I have working without the string from resources:
Title="Binding Pa...
Custos asked 7/8, 2012 at 18:38
1
Solved
<local:LabelTemp x:Key="labelTemplate"/>
<DataTemplate x:Key="labelTemp">
<TextBlock Text="{Binding Converter={StaticResource labelTemplate},Path=Item.Items}"/>
</DataTempla...
Ween asked 2/11, 2015 at 15:58
1
Solved
Is it possible to set a static resource to the value of another static resource?
As it is possible to reference a static resource from another type of static resource it should be possible, but I c...
Prieto asked 8/7, 2015 at 8:42
1
I've been experiencing some strange behaviour when referencing StaticResources from inside a DataTemplate defined in a ResourceDictionary.
In this example, I fill a listbox with the numbers 1 to 9...
Brenner asked 7/3, 2014 at 9:7
3
Solved
I have this ResourceDictionary in Main.xaml:
<Window.Resources>
<ResourceDictionary>
<BitmapImage x:Key="Customer" UriSource="Icons/customer.png"/>
<BitmapImage x:Key="Proj...
Richy asked 4/9, 2013 at 22:52
2
Solved
I want to put a IValueConverter on a binding to the title of a window, so that changes when the active project changes. The problem is that the value converter is a static resource, which is only l...
Meaningful asked 8/11, 2013 at 10:52
1
I'm a little confused about how the data binding works when using these types.
I've read that you can't do the following
public partial class Window1 : Window
{
public ObservableCollection<s...
Sikko asked 22/5, 2013 at 22:56
1
Solved
I want to use a Converter to change the value of a StaticResource before assigning it to a property. Is there a way to simulate a Binding that will just set the value of the StaticResource after co...
Aerodyne asked 18/5, 2013 at 10:40
2
Solved
I am trying to create a new resource in one xaml file and reference it in another xaml file.
i.e I define
<Window.Resources>
<ImageBrush x:Key="TileBrush" TileMode="Tile" ViewportUnits=...
Catalysis asked 2/4, 2013 at 21:52
2
Solved
I have a Button control as a resource in Resource Dictionary as below:
<!--ButtonResources.xaml file-->
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentat...
Brocket asked 13/2, 2013 at 8:50
2
Solved
I'd like to upload images to the server, store them in file system (outside server) and then display them on my JSF page.
I'd like to find something like this:
<?xml version="1.0" encoding="U...
Vazquez asked 20/12, 2011 at 13:9
4
Solved
i have a problem with Resource dictionaries and mergeddictionaries in general, especially when it comes to resource-lookup performance. After some performance testing i found that ResourceDictionar...
Algophobia asked 14/7, 2011 at 12:44
1 Next >
© 2022 - 2024 — McMap. All rights reserved.