How to trigger SelectionChanged event when ComboBox selected Index is same not necessarily changed in WPF C#?
Hi there, I have a simple WPF application where a different window will open if I select the last item of a Combo box. my code is working successfully but there some issue on my code. I want some more functionality. Suppose, I select the last item, A…
Item Template Not Using Data Context
Here is code for WPF window (omitting irrelevant…
Item Template Not Using Data Context
Here is code for WPF window (omitting irrelevant…
Is it able to check XAML Designer mode in csproj?
I have a .net 8 WPF project which is developed with lastest Visual Studio Community Version (v17.10.5). I have learned that I can use Condition attribute in csproj file to toggle build property. My question is, is there a Condition key word to check if…
CommunityToolkit 8.2.2 with Wpf .Net framework 4.8.1 gets error The name '' does not exist in the current context
Hi, I am working with WPF .Net framework 4.8.1 using CommunityToolkit 8.2.2. I've already set the LangVersion to 8.0, and migrated the package.config. In my MainWindowViewModel, there is a ObservableProperty string _myName, the Source Generator already…
![](https://techprofile.blob.core.windows.net/images/Wt19JPuKGEGGRdlsRceqZg.png?8DAE95)
The WPF program touches the edge of a transparent background window in the surface pro 9 windows 11 operating system causing the window to lose its transparent effect
Under the Surface pro 9 windows 11 Professional operating system, when the touch screen touches the edge of the WPF transparent background window, the transparent window will turn into a "cloud white" color, and the transparent effect will be…
Mysterious XAML “The name "X" does not exist in the namespace” error won't go away
I'm working on a XAML/C# project. I have a custom abstract class derived from `System.Windows.Controls.UserControl`: `PageBase`. Visual Studio 2022 keeps telling me it can't find `PageBase` in the namespace. The…
![](https://techprofile.blob.core.windows.net/images/c16866ad6ce74b5db35876d6e736f077.png)
How to Host the Firestore Identity File Securely?
I am working on a WPF project with C#, and I am using Firebase Firestore for which I need to host the identity JSON file on disk. However, I want to ensure that users cannot access this file or the Firestore services using the information inside it. What…
How do I access child elements
Hello. I have a problem, in one of the StackPanels I want to display product cards, where the user can write the quantity of goods purchased and their price, then the program should calculate the total amount. Everything should change dynamically with…
![](https://techprofile.blob.core.windows.net/images/iFN-poiNvEKTSlZULohJHA.png?8DABF6)
![](https://techprofile.blob.core.windows.net/images/iFN-poiNvEKTSlZULohJHA.png?8DABF6)
Wpf white squares bug on display
When i running wpf application theres little white squares on display where position on mouse cursor. Any one know about these wieard bug
Entity Framework complains that there is no primary key
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace WpfApp6.Models; public partial class Product [Key] public int IdProduct { get; set; } public string NameOfProduct { get; set; } = null!; public…
![](https://techprofile.blob.core.windows.net/images/iFN-poiNvEKTSlZULohJHA.png?8DABF6)
![](https://techprofile.blob.core.windows.net/images/lnGCsXNpa0SXD-UxfeTm9A.png?8D8FB8)
Elements overlap each other
Hello. I'm trying to build a wpf application using this layout. I have set all the elements, but they overlap each other. Can you help with column 2? What am I doing wrong. I need to drag an element from 1 column to 2 and the text should go to one of…
![](https://techprofile.blob.core.windows.net/images/iFN-poiNvEKTSlZULohJHA.png?8DABF6)
Text inversion in right-to-left languages such as Persian in the Itextsharp Paragraph
First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I want to add Persian text to the PDF headline, but when I do this through the iTextSharp.text.Paragraph class, I get into trouble. I can solve this…
![](https://techprofile.blob.core.windows.net/images/vp-G0Inlv0Wd6bS0QH0sWg.png?8D9F84)
I am having an issue , the textbov does allow space when pressing space bar
<TextBox x:Name="txtLocationName" Grid.Column="3" Grid.Row="5" Height="22" VerticalAlignment="Center" TabIndex="17" …
On remote desktop machine (Windows 11), the DataGrid (WPF C# application .Net Framework 4.7.2) event is throwing System.Reflection.TargetInvocationException.
The DataGrid event is giving the exception"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Added item does not appear at given index '4'. " while…
How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?
I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…
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: Could not load file or assembly error in the designer but application runs with no problems
To try to solve another issue with the designer I've deleted bin and obj directories. Since then I'm facing this error while being in the designer: "The error message "Could not load file or assembly 'DesktopClient, Version=1.0.0.0,…
C# - How not make WPF UI Freeze while elaborating
I have a button that after I click it send a lot of data in a remote database with a loop, but during this operation whole wpf UI is freezing. My goal is to make the loader work while it is processing everything with the database. My button code: …
How to make UWP MediaElement to be loop mode when casting to a TV?
I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…