Skip to main content

All Questions

Tagged with
2 votes
1 answer
64 views

Compilation Issue in WPF Application with Linked XAML Files

I have a WPF application project that includes two separate windows (in addition to the main application window), each defined in separate projects that are not included in the solution, using the <...
Loggie's user avatar
  • 23
0 votes
1 answer
63 views

How to automatically split window vertically in Visual Studio?

I have a problem, I can't seem to find the solution to automatically save the window layout in Visual Studio. I wanted to always make the document be split vertically in all instances. Meaning, if I ...
Keane Ledesma's user avatar
-4 votes
3 answers
99 views

Visual Studio - render size smaller than actual height/width measurements

In visual studio the live preview shows me that the window is bigger than whats rendering. The only solution i've found is to approximate how much the render is off by and increase the window size by ...
AudibleDruid's user avatar
0 votes
1 answer
83 views

WPF Toolkit Controls not appearing in Visual Studio 2022

I've installed the packages here provided https://github.com/dotnetprojects/WpfToolkit?tab=readme-ov-file It includes 4 different nugets: Input,Layout,Themes and DataVisualization. However, when ...
Obscuree's user avatar
0 votes
0 answers
69 views

Upload multiple images and show WPF

My problem may not be loading the images, but rather the timing. The images are only shown at the end of the process, and not as soon as I change the origin of the image. The logic of the process is, ...
Vinicius Souza's user avatar
0 votes
0 answers
70 views

A separate Debugger Visualizer window for each variable of the same type

I want to create my custom Debugger Visualizer for my type. I am using Visual Studio 2022 and i create "VisualStudio.Extensibiliy Extention with VSSDK Compatibility" type project. I also ...
jin15's user avatar
  • 3
0 votes
0 answers
56 views

How to use resources in Views in a separate project from App.xaml in WPF?

I’m building a WPF application where the Views are located in a separate project (e.g., MyApp.Views), while App.xaml is in the main project (MyApp). In App.xaml, I reference resources from the Views ...
Alexander's user avatar
1 vote
2 answers
214 views

How to add comments into a Xaml file in WPF using Edit.ToggleLineComment in Visual Studio 2022

I'm struggling to use the Edit.ToggleLineComment keybinding in Visual Studio 2022 when it comes to .xaml files. My shortcut is set correctly as shown in this screenshot: It works in my .cs files but ...
FluidMechanics Potential Flows's user avatar
-2 votes
3 answers
138 views

How to conditionally transform XAML at build time using XSLT to mirror C# preprocessor directives?

I use C# preprocessor directives extensively while developing. I define them either directly in .cs files or globally in the .csproj: <PropertyGroup> <DefineConstants>fix_issue_001;...
Foad S. Farimani's user avatar
0 votes
0 answers
55 views

WPF theme is applied to the first textbox, but not the second

I have a WPF window with a custom theme and a grid that contains two text boxes that are somehow styled differently. I cannot find a difference, but somehow for the first textbox, my theme is not ...
brinkdinges's user avatar
0 votes
1 answer
84 views

Load global dll in WPF C# application as a link without it having to be copied into output directory

I have the following problem: I am working on multiple WPF applications, which all have to use the same dll. This dll lies in a directory of my choice but I want dont want to copy it to all the single ...
DaveUnbelievable's user avatar
0 votes
2 answers
441 views

How to prevent XAML Live Preview window to show when start debugging?

In Visual Studio 2022 17.11.3, the XAML Live Preview window is open when I start debugging a WPF application. I do not want to use it at the moment, so I would like to disable it instead of having to ...
Igor Kondrasovas's user avatar
0 votes
0 answers
53 views

Inlay Hints and IntelliSense for Custom XAML Properties

I'm trying to implement some custom controls and I want to use a custom property type Placement. I've already prepared a TypeConverter implementation that works. However, both Rider and Visual Studio ...
G_hi3's user avatar
  • 598
0 votes
0 answers
93 views

Visual Studio 2022 Incorrect Error Squiggles related to WPF XAML Controls

For a good while now, VS 2022 has been displaying incorrect error squiggles in the code-behind .cs file for WPF controls anywhere that a FrameworkElement is referenced in the code. The code compiles ...
heapoverflow's user avatar
-2 votes
1 answer
109 views

Can't resolve System.Windows.Control.Image from being created instead of System.Drawing.Image

I'm working on moving a C# program into a WPF application and in order to export files from records I need to use the following code: // Construct _imgfiles from the records string _imgfile = ...
Esai's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
150