How to implement layered architecture?
Hello I started working on layered architecture to write some more professional code in C#. As a result of research on the internet, I saw that each person implements layered architecture differently. This caused confusion. I use the MVVM pattern in my…
Is it possible to create and set styles and/or template for combobox in c# only?
Hi, I'm trying to setup a app frontend in C# only. I'm more practiced with c# then XAML, but also have the feeling that I can make the app windows/pages more parametric in this way. Thus far I'm succeeding in this, however when I tried setting up…
How to reference/consumme assembly manifest based on CPU in WPF C# Application project?
I want to reference an older Win32 assembly from a Wpf C# application. I do have both x86 or x64 versions of the Win32 assembly but I don't see how to reference based on selection target CPU.I can only specify either one. The Visual Studio C# project…
Binding Errors in a Simple Project
I have carved out a simple project from a larger one to demonstrate the binding errors I am getting so the names I use might seem ... odd. The following is the ENTIRE project: Window…
Selection Rectangle not moving along with datagrid content during scroll.
I am attempting to replicate the selection behavior of Windows File Explorer within a WPF DataGrid. Specifically, I aim to implement a selection rectangle that mimics the functionality of File Explorer's selection mechanism. Currently, I have created an…
Could not load file or assembly "System.Runtime" on Windows Server
I migrated a WPF project from .NET Framework to .NET 6 which builds fine on my local system (windows 11). However when I moved forward to Azure pipeline, we got this error and it can be replicated on a Windows Server 2022 VM. There are multiple .NET…
I am having a problem with WPF text box , its not allowing record space when pressing space bar on key board
When adding some text on text box in a wpf application its not arecording the space. it's only allowing it if i type the text as one string and use the back keys to go back to to where i want to record the space. Not sure what is the cause and solution…
WPF TextBox Cursor position changed when I write korean + Hanja key
Hello. When I use WPF TextBox to test, there is a bug that causes the cursor to move to the front of the word when I type in Korean and press the Hanja key. How to fix it? I attached a gif file that reproduced the bug. thanks.
MVVM datagrid comboboxes are not displaying the initial values and the moderator dropdown list needs to be unique
Based on my last request from this community and I got the POC working.…
How to save all the updates in a datagrid (set of comboboxes) MVVM back to the database in WPF C#?
I have similar issue as @Mesh Ka working on the filtering between comboboxes. https://learn.microsoft.com/en-us/answers/questions/1481853/filtering-a-combobox-in-a-datagrid-based-on-anothe Thanks for the solution! The challenge I have is to save all the…
Set EXE language in C# WPF
I am working in C# WPF and want to change EXE Language which appears in EXE Properties-Details Page- Language. Originally the "Language" is "Language Neutral". Even though I am changing the "Assembly Neutral Language" from…
The problem with the MediaElement in WPF .NET 8.0 not supporting relative paths for the media source,Why?
Hi, I'm attempting to utilize the MediaElement in WPF to play video files with either .mp4 or .wmv extensions. However, I've encountered issues when passing the source as a relative path or a Pack URI. Strangely, it works fine when I provide an absolute…
[WPF] HttpClientHandler SendAsync Call Never Getting HTTP Response Back
Our project is developed with WPF C# with Target framework version of .Net Framework 4.6.2. We were trying to do a POST call using HttpClientHandler, But we didn't get any response or the status back. The application stays hanged, Didn't…
Draw chart with System.Windows.Controls.DataVisualization.Toolkit
Source thread: Generating a graph using DataVisualization Charting in WPF, answered by Peter Fleischer. I have a chart here: I want to get the same chart drawn with System.Windows.Controls.DataVisualization.Toolkit in WPF app, does anyone…
How to convert outlook email (.msg) to pdf c# ?
Are there any free libraries using which I can convert outlook emails i.e. .msg files to pdf in my WPF c# app? I've tried using PDFSharp like below but the data is not showing properly at all. The email body contains tables and text and sometimes it may…
WPF blazor hybrid application with console output window
I am following the guid in learn.microsoft.com to develop a .net8 WPF blazor hybrid app. Here is the link. I build and run the WPF application successfully according to this guid. However, I can`t make the WPF with a Console window even if I set the…
how to dispose the BlazorWebView in WPF blazor hybrid application?
I have a usercontrol which contains BlazorWebView control. After load/unload this usercontrol several times, I find there are more and more Microsoft Edge WebView2 appear in Windows task manager. I guess it was caused by the unreleased BlazorWebView…
About automatic suggestion and completion of XAML codes on Visual Studio Code
Hello I installed the Visual Studio Code application on my computer. I generally work on C#. But I have a problem. When developing a WPF project and working in XAML files, suggestions of XAML codes are not completed by the compiler in CS files as in C#…
An issue implementing migrations in the data layer
Hello I started developing a new c# WPF project. In a solution, I separated the layers as UI and Data. I placed database-related models and configurations in the data layer. Then, I gave the Data project as a reference to the ilse UI project. The problem…