318 questions
0
votes
0
answers
32
views
C# WPF: How to change a cell's FontWeight and Background based on its new value?
I'm defining a DataGrid in my xaml, where each row represents a book, and each column a field associated to this book (similarly to a SQL table). I want the cell to appear a with a yellow background ...
1
vote
0
answers
62
views
WPF StaticResource Not Found in UserControl - Resource Defined in App.xaml
I'm working on a WPF project where I define a global style for a TextBlock in App.xaml, but I'm encountering an issue when trying to reference it in a UserControl. The application throws an error ...
0
votes
1
answer
44
views
Skipping GET URL that returns ModelAndView from Spring Security Config
I am working on Spring Boot security 3.2.1 and implemented JWT Authentication in my project. However, now I am not able to get my HTML pages which were working earlier. I have added these resource ...
0
votes
1
answer
131
views
WPF Resource dictionary lookup rules
I have two resource files (resource dictionaries)
Brushes.xaml : contains some brushes
Templates.xaml : contains some templates that statically reference (StaticResource) the keys in Brushes.xaml
If ...
0
votes
1
answer
386
views
How to bind static resource from dictionary in android colors.xml
I'm using .NET Maui and I defined a static resource in Colors.xaml file, like so:
<?xml version="1.0" encoding="UTF-8" ?>
<?xaml-comp compile="true" ?>
<...
-1
votes
1
answer
802
views
C# WPF static resource containing other static resources
I've just started learning WPF but I can't seem to figure out how to combine two or more string static resources in XAML. I have two static resources, UntitledFileName ("Untitled") and ...
0
votes
1
answer
4k
views
LWC @wire decorator not getting response from controller class. how to verify response from controller class using @wire decorator in LWC?
I am new to LWC. Kindly help me.
I am trying to fetch value from controller class in LWC component.
But every time I try to fetch value from controller class, it comes as undefined.
Here is my code:
...
-1
votes
2
answers
590
views
WPF - MenuItem Icon bound to StaticResource shows as truncated text "pac.." [duplicate]
I'm just starting out learning WPF. Steep learning curve.
I have an icon set in App.xaml:
<Application.Resources>
<BitmapImage x:Key="Cog" UriSource="pack://application:,,,/...
1
vote
0
answers
127
views
How to enable resource dictionary diagnostics in WPF?
I'm tracking an instance of non-existing resource in WPF. What I'm given is an InvalidOperationException informing, that UnsetValue is not a proper value for Background property. However, I don't know,...
-1
votes
1
answer
1k
views
WPF TextBox not displaying validation error message
I have bound a validation rule to my WPF TextBox in order to control what user types in.
WPF TextBox:
<TextBox Grid.Column="0"
Grid.Row="1"
...
0
votes
1
answer
365
views
Question about encoding string Icons in xaml
I was looking in a project and realized that they used some strings like this
<system:String x:Key="icon-arrow-right"></system:String>
and then in a XAML form they ...
0
votes
1
answer
80
views
Parse Exception occurring due to my Styling
I am creating a WPF application in C# using XAML. I have looked into the documentation of creating Styles for XAML.
It looks to be working correctly in the Designer before I actually run my ...
1
vote
2
answers
1k
views
SpringBoot serving static images from custom Path
As now I've always served my images through a static path in the application.properties file:
spring.resources.staticlocations=file:/Applications/MAMP/htdocs/reportMaker/template
spring.mvc.static-...
0
votes
1
answer
315
views
WPF Load Images Based on Value
I have a List<object> which contains a list of of values for each object which I want to access and create a set image based on the values - don't really want to use a Converter.
I have the ...
0
votes
1
answer
483
views
How To Include StringFormat From StaticResource In The New Derived Class Of Label
I have this XAML:
<Label Text="{Binding val1, StringFormat={StaticResource CommaInteger}}"/>
<Label Text="{Binding val2, StringFormat={StaticResource CommaInteger}}"/>
...
1
vote
3
answers
6k
views
What is the best practice for serve HTML files in Quarkus
I don't want the extension of my HTML files to show up in the address bar like index.html, login.html. Instead, I want these files to be accessed with patterns like /HOMEPAGE /LOGIN
I don't hold these ...
0
votes
1
answer
2k
views
Salesforce Static Resource Limit 250MB
I am trying to install a managed package on a Salesforce org. But I get the Error Unable to install the Managed package due exceeding of Static resource limit.
Our org's static resource has reached ...
0
votes
1
answer
231
views
How to set a dependency property of a static resource?
I would like to add a reference to my model in my view model using XAML. I have defined my model and my view model as resources, and I would like to bind the dependency property Model of the resource ...
1
vote
1
answer
416
views
How to use a nested string in App.xaml static resources...?
In my App.xaml file, I have the following static resources defined...
<x:String x:Key="StaticString1">static string 1</x:String>
<x:String x:Key="StaticString2">...
2
votes
2
answers
2k
views
WPF Converter with Property in Static Resource
I have a converter which has a property VisibleLength
public class BoolToGridLengthConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo ...
1
vote
1
answer
3k
views
Static resources not found in Spring MVC app
I'm working on MVC web app. Using Spring Boot 2.0.1 with Spring Security.
And I get error 404 when try reaching static resources.
I've tried diefferent things, I've read many topics, but can't find ...
0
votes
1
answer
53
views
Spring Boot application with WebSecurity doesn't see css
I have a webSecConfig class that extends WebSecurityConfigurerAdapter. I paste it's method where I tried to allow access with using .antMatchers.
My folder structure:
...
-resources
--static (here ...
3
votes
0
answers
414
views
Accessing static files outside of the application folder using Spring Boot 2.2
In our application, we have to serve static files from a folder outside of the application folder. The location of the static file folder is /var/tmp/myapp/attachments additionally to the default ...
0
votes
2
answers
538
views
How to include special characters into a XAML static multi langage resource?
I want to insert special characters into a XAML StaticResource comming from a multi langage resource.
This is the XAML piece of code I use:
...
xmlns:resx="clr-namespace:MyProject.Properties"
...
&...
1
vote
1
answer
365
views
how can i build static server & websocket server in one exe file by pkg
I want build static resource server and websocket server into one exe file.
using the open source package pkg.
but official documentation have not example.
I have a web app, and a websocket server, ...