How to Write a DependencyProperty for a TextBlock when it is a child element of a parent Button class in WPF C#?
Hi there, I want to make a Dependency Property for a Text Block and the functionality of this property is to apply a Scale Transformation on the Text Block but I am unable to do that Because it's a child element inside of a Button class. I have a…
How Can I Register and Manage Services in a Large C# Project?
Hello I will start developing a new C# WPF project. I need your information on something while planning. I will use the MVVM pattern in the project. I will create a large number of services to perform some tasks and use them in the relevant classes. I am…
JAWS or windows narrator not working/announcing localized description of enum bind to combo box for wpf application
Hi, I am using JAWS screen reader / windows narrator on wpf dialog for wpf application. But reader does not says/announce/speaks about description of enum bound to combobox in WPF c# application. Screen reader speaks/announce enumerator rather than…
Dark/Light mode of system tray icon in WPF
I am using notify icon in my WPF app. When I click this icon, always there is a white background of context menu but I want to change this for Dark mode. But how to apply Dark & Light mode in notify icon? _notifyIcon = new…
JAWS or windows narrator not working for label and tooltip for c# wpf application
Hi, I am using JAWS screen reader / windows narrator on wpf dialog for wpf application. But reader does not says about label text and tooltip on hovering on the label. I have used AutomationProperties.Name , AutomationProperties.LabeledBy as per link…
How we can achieve Theming WebView2 content in Visual Studio 2022 WPF application?
How we can achieve Theming WebView2 content in Visual Studio 2022 WPF application? I have worked on vscode code extension and I have used webviews to display contents or various controls like combo box , button , textbox etc. Webviews can access VS Code…
Signing WPF application for distribution
PLEASE Ignore this question and refer to my previous question https://learn.microsoft.com/en-us/answers/questions/1460328/signing-wpf-application-for-distribution =================================================== I have developed a WPF application that…
What Can I Use for Application Update?
Hello I developed a WPF application with C#. I also uploaded the application to Github. My goal is to update the applications distributed to users with the new version as the application is developed and new features are added. I do not have the…
How to make the Popup control in WPF ignore mouse events
I want to implement a function: display Popup when the mouse enters the Grid, update the Popup position when the mouse moves, and close Popup when the mouse leaves the Grid. This is my current xaml and cs: MainWindow.xaml <Window…
Question about dotnet SDK version and Runtime version
I always update my dotnet SDK to the latest version for developing WPF applications. Does it mean the customer who run run my app also need the latest runtime to be installed? For example, I am using SDK 8.0.401 now, does it matter if the customer PC is…
How can I create a clean project folder structure?
Hello I use many libraries that I downloaded from Nugget in a wpf c# project. These libraries are normally located under the "Bin" folder. I want to create a cleaner folder structure. For this, I want to collect these libraries under a folder…
How to get the resource key from a control?
How to get the resource key from a control? Wpf control can use the pre-defined resource in runtime. Is it able to get the resource key from a control? And how? Thanks! <Window x:Class="GetResourceKeyWpf.MainWindow" …
Is it possible to read/store/retrieve data from Excel spreadsheet from Share point site to WPF application?
Hi, I have connected to Share Point site referring the following blog: https://www.c-sharpcorner.com/article/sharepoint-csom-for-net-standard/ I have created a sample test spreadsheet in the Documents Library named *testSpreadSheet.xlsx * I have a…
Using Renegotiation in C#
Hi All, We have a WPF application built on .Net Framework 4.8. This application acts an HTTPs client. We are currently using the code provided in the attached file for HTTPs communication. This code is used to run a sequence of commands one after…
How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?
Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…
How to set PerMonitor DpiAwareness for .NET 8 Windows desktop application in WPF?
Hi, I am having problem setting WPF window based desktop .NET 8 application to work as PerMonitor DpiAware. System default automatic scaling schema... When user changes Windows 10 display setting scale, WPF-Window is being scaled accordingly. Also,…
Selected Item in ComboBox wpf with Binding
I have a listview, when selecting the listview I make a binding to an SelectedCategory property. When binding to Checkbox, Textbox an so works fine, but I can't find the right combination for the ComboBox no matter what I try. I know for sure, that the…
how update WebView2 control in C# WPF application as per Color Theme selected in visual studio 2022 like Light, Dark etc
how update WebView2 control in C# WPF application as per Color Theme selected in visual studio 2022. Color theme can be changed in visual studio 2022 from Tools -> Options -> Color Theme:
Passing variable argument in a loop to eventhandler
In WPF I have a Styles button in which I add items with the different styles: <Button x:Name="Form_Estilos"> <Button.ContextMenu> <ContextMenu x:Name="Form_Estilos_Items"/> <ItemsControl> …
Window.GetWindow() of TabItems content does not return the right window when TabItems State changes
When using TabControl in two windows, each TabItem contains a button with a click event that displays the parent window of the TabItem using Window.GetWindow(). After DragAndDrop a TabItem from one window to another, GetWindow() still returns the…