Questions tagged [xaml-designer]
86 questions
3
votes
1 answer
String cannot be converted to length
The code above is in a generic.xaml file to be used throughout my application by grids on pages. This gives a design-time "exception" in…

Youp Bernoulli
- 5,303
- 5
- 39
- 59
2
votes
2 answers
How do you get the WPF / XAML designer to work with custom classes with dependencies?
I'm using a custom class to perform validation in a WPF app and have defined a class which inherits from ValidationRule. The class has a dependancy which I would like AutoFac to inject at runtime, but the Visual Studio 2010 XAML designer needs a…

andrej351
- 904
- 3
- 18
- 38
2
votes
0 answers
"XDG0062 Catastrophic failure..". When trying to use UWP controls into a .Net Core WPF application. Why?
Using:
- Visual Studio 2019 16.4.4 Version 4.8.03752.
- Project .Net Core 3.1 With WPF
WinExe
netcoreapp3.1
…

Eric Ouellet
- 10,996
- 11
- 84
- 119
2
votes
1 answer
ConfigurationationManager.OpenMappedExeConfiguration not loading configuration file in XAML designer
I've created a configuration file that's associated with a WPF User Control Library. When running the application in the debugger or on its own the config loads just fine using the following code, which is run in the context of the…

julianwa
- 21
- 3
2
votes
0 answers
How to display external fonts in WPF xaml designer?
I am able to display external fonts during run time, but not in the designer.
Most of the topics I came across are for the opposite scenario where it displays in designer, and not during run time.
How do I display external fonts in both design and…

xytec
- 65
- 1
- 1
- 6
2
votes
2 answers
Visual Studio: WPF opening a XAML file gives "Value cannot be null"
I recently installed the Windows Phone 7 SDK with an existing Visual Studio Ultimate installation. Now when I attempt to open any XAML file, designer or just XAML, I get the error:
This is for any XAML file; not just WP7. This happens with a brand…

vcsjones
- 138,677
- 31
- 291
- 286
2
votes
1 answer
Can Visual Studio XAML designer handle font family names with spaces as a resource?
This probably seems like a strange question, but I'm having trouble seeing a custom true-type font that I've loaded as a resource in my WPF application, and I'm wondering if it may have to do with the space in the font name.
As described elsewhere…

Michael Repucci
- 1,633
- 2
- 19
- 35
2
votes
3 answers
How to work with XAML editor in Visual Studio 2010?
I've worked with Visual Studio 2008 and editing XAML was really painful because the designer reloaded very slowly. Now I have installed Visual Studio 2010 and it seems to me that the XAML editor + Designer haven't changed much.
For example in order…

MartyIX
- 27,828
- 29
- 136
- 207
2
votes
1 answer
FileLoadException in vs 2010 xaml designer with SLite 1.0.66
This is in part a continuation of issues encountered in configuring SQLite in a vs 2010 .Net 4.0 environment, originally started in this post.
The focus of that post was getting both unit testing and application runtime working, which has been…

Berryl
- 12,471
- 22
- 98
- 182
2
votes
5 answers
XAML designer: 'FileNotFoundException'
I'm working on an extensible WPF application using C#. For the extensibility, I use MEF (Managed Extensibility Framework). But since today, the XAML designer doesn't work for the MainWindow.xaml anymore. It throws a FileNotFoundException with this…

Jan Böhm
- 89
- 1
- 11
1
vote
0 answers
Can I use XAML Designer in a CMake-controlled project?
I have a CMake project which I've opened in Visual Studio 2022 Professional as a directory, using a CMakePresets.txt to make some build presets.
I have a dotnet new wpf project added to this CMake project with include_external_msproject(....csproj…

MHebes
- 2,290
- 1
- 16
- 29
1
vote
1 answer
Visual Studio 2022 17.3.6 Xaml Designer not showing up for UNO platform
I've followed Get Started on Visual Studio 2022 UNO platform guide. Then I've created new app with the following platforms:
When I try to open Xaml designer for MainPage.xaml - is is not appearing:
As you can I've selected WinUI project in a…

bairog
- 3,143
- 6
- 36
- 54
1
vote
2 answers
Bug in VS 2022 (Enable XAML Designer not working)
I recently started to use Visual Studio 2022 Professional edition. Whenever I enable visual designer from :
Tools -> Options -> XAML Designer -> General
I check to enable the XAML designer:
When I restart the Visual Studio IDE, nothing is changed,…

wbadry
- 797
- 16
- 27
1
vote
1 answer
How to get the application directory in WPF designer, .NET 6.0?
My WPF application reads a directory structure from a location relative to the main application executable.
Then it visualizes the directory structure in a TreeView.
It works fine when I just run the application, however, when I preview it in the…

Harry
- 4,524
- 4
- 42
- 81
1
vote
1 answer
Cannot use 'd:' Prefix in front of attributes to enable Design Time Data
I have a problem with using d: in front of attributes, to display them in the XAML Designer.

Stan1k
- 338
- 2
- 17