Content
Issue with dependency properties on Visual Studio "Properties" window
I am working on a custom WPF Window and I am facing an issue with a DependencyProperty. Here is an example of my base class MyCustomWindow.cs: public class MyCustomWindow : Window { public static DependencyProperty UseTitleBarProperty =…


In C# XAML WPF app, getting Exception HResult -2146233079 Task
I have a Visual Studio C# WPF XAML application running on Windows 10 .Net 7.0. I have an async Task that runs continuously (while (IsRuuning). The job of the Task is to: every 100 ms, under a mutex, read the contents of a file located at statusfilePath,…


Santa Claus system
Hello I am trying to create this app (https://onedrive.live.com/?authkey=%21AIkhWQ8tNNAJT6M&cid=A1DB505D658FD6E3&id=A1DB505D658FD6E3%211044956&parId=root&o=OneUp) I do not understand very well I already created the UI


how to get all static members inside a class?
l let's say we have a class "MyClass", now i want to put all static menbers into a Dictionary , use name "a", "b", "c", "d" as key, use "aaa", "bbb", "ccc", ”ddd“ as value.…
what is "Type" use for in C#?
let's say we have a unknow type instance_X, we get it's type: Type typeA = instance_X.GetType(); How do I use this variable typeA? Can it be used to declare a variable or instantiate an object? like: typeA typeaa = new typeA(); // if typeA is a…
Como generar reportes en wpf?
Hola. Necesito generar reportes en mi aplicación WPF. Con gráficos y opciones de salida. Qué puedo implementar gratis?


Tab navigation not working after making wpf app as noactive.
Tab navigation not working after making wpf app as noactive. When we press tab, application not performing tab navigation. Please help/guide here.


How to restrict Path (Shape) stroke from zooming in C# WPF Canvas?
Hello, how to restrict Path(Shape) stroke in C# WPF for zoom and pan. Need to maintain Path stroke in all scale. Detailed images are attached with query. Capture1.PNG Capture2.PNG


How to make WPF DataGrid click Enter key to auto move to Next cell the same column and create a new cell and has focus on next cell for ready to type?
We ask a WPF question. it seems that Tags category does not include WPF. We have a WPF application which uses WPF DataGrid control to allow enter barcode number and barcode description. the DataGrid binds to collection of Barcodes which includes barcode…


Azure B2C Password Reset User Flow errors with script error when viewed in WPF embedded web viewer
I have converted a legacy WPF app to use Azure B2C. Following the instructions here https://learn.microsoft.com/en-us/azure/active-directory-b2c/configure-authentication-sample-wpf-desktop-app The login process works as expected. When trying to access…


are below mentioned packages windows-specific dependencies?
My web application is using below packages, System.Security.Principal.Windows WindowsAzure.Storage Microsoft.WindowsAzure.ConfigurationManager System.windows.forms this particular application also has .resx files It does not have .xaml…
Integrate the electronjs application inside the Wpf application
I have WPF application in that i want to render the electronjs app inside the window frame. actually, I am able to load electronjs application but as separate application not in window frame. Please find below code: { process = new Process(); …


How can i inject multiple viewmodels via CommnunityToolkit Nuget?
By following Code, I can inject single viewmodel Mainwindow.xaml.cs public MainWindowViewModel ViewModel => (MainWindowViewModel)DataContext; public MainWindow() { this.DataContext =…


How to save the UI state of A WPF Application before closing?
I have a WPF application where I use multiple controls like button, combo box, check box, Tree view etc. I use a lot of visual styles and control templates to look my application modern and stylist. My application works perfectly as much as I want but…


How Can I save a ComboBox selected value in settings file when it has dynamic content in WPF?
I have a WPF application where I use many ComboBox controls. Most of the time I save application user settings in the Settings file, though many people use JSON to do that work but I think the default Settings file in WPF application is provided by…


How to assign control to variable in WPF MVVM
I tried a video SDK and got a example code written in C#,WPF below, it shows video stream on screen. the point is, it used the context variable and assigned PublisherVideo(a control in xaml) to Renderer I want to rewite it by MVVM pattern, is there any…


How to implement WPF Binding programmatically (not XAML) with TwoWay binding mode?
I have implemented some Dependency Properties in a c# class A as documented to mimic a very simple Control. In class B the Bindings and CLR Properties are implemented using the INotifyPropertyChange interface. Sending data from B to A works fine with…


WPF Canvas.SetLeft Problem
set value not changed


WPF InkCanvas Smooth Stroke
I am working on a C# WPF project using NET5. I got a lot of help from MSDN, and I am very grateful. The core function of my program utilizes InkCanvas. Specifically, Drawing on the wall with an infrared pen The infrared sensor communicates this…


How to track ComboBox selected Index in a WPF application?
Hello all talented C#, WPF developers. I have a question for you, Suppose I have a Combobox and the ComboBox have four items and I select the second item and I close the Combobox, and suppose the Combobox item source has changed and there more five items…

