AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF
Hello, I am working on a WPF window which supports multiple frameworks <TargetFrameworks>net8.0-windows;net48</TargetFrameworks> i have a media element in a window written <MediaElement x:Name="Video" …
I want to lock the current HDMI port in C# WPF (.NET Framework)?
I want to lock the HDMI port. If a HDMI port is used for a monitor then if other HDMI port is used then i want to lock existing port. How to do so in C# WPF?
How to know whether the snap applied in windows 11 windows. Is there any API.
Is there a method or any API to tell if snap is enabled or disabled in Windows 11? Please answer if there is any other way.
How to Save a WPF DataGrid Back to Database after Editing
Hi, I am wondering if theirs a way to save a updated Line from WPF DataGrid back to Database . I don't Know the best way to do this without going back to WinForms Apps. I would like to use WPF, any help would be appreciated.
How to get the current page number or check if PDF viewer is on the Last page of a PDF in WPF Webview2 control?
I am working on a WPF application where I use Webview2 to display PDF files. I rely on Edge's built in PDF rendering mechanism and am not using any external PDF libraries. I've successfully loaded the PDF using the following…
How Can I Detect if the System Clock is Moved Forward or Backward in a C# WPF Application?
Hello, In my C# WPF desktop project, I want to detect if the system clock has been moved forward or backward. When such a change is detected, I would like to take specific actions. For example: Show a warning if the system clock is moved forward. Log an…
Playing Video in WPF
Description : I have a WPF Project with one Main Window under main window multiple tab item each tab item i binded with user control(Separate xaml)In user control i tried to play one video using MediaElement control... Project Setup: Project that target…
UCEERR_RENDERTHREADFAILURE (0x88980406) when multiple processes of the same WPF application are open.
Hello! Application: My application draws a huge number of OrderBooks (https://www.investopedia.com/terms/o/order-book.asp), for this my hierarchy looks like this: MainWindow -> TabControl -> TabItem -> DockingManager -> DockPanel. In…
What would be the appropriate method for view models in a C# WPF project?
Hello I created record insertion and update view models in my c# wpf project. These view models have common save and cancel commands. When the save command is clicked, it calls the save function from the relevant service and if there are any error…
Multiple HTTPs Requests
Hello All, We have a WPF application built on .Net Framework 4.8. This application communicates with an HTTPs server to perform a list of commands. These commands must be executed one after another and must not be sent in on go. This communication is…
I want to disable/enable usb and HDMI port whenever my c# wpf (.net Framework 4.7.2) app runs.
Online resources are not present for above queries. I want solution for both admin/non-admin user account. Please help to provide me the solution.
Optimizing WPF Application Startup Time on Shared Network Drive
My team is facing an issue when publishing the application on a shared network drive. When an end user opens the program for the first time after starting their computer, it takes significantly longer compared to running it from the local C drive (18…
How to Design Validation, Error Management, and Message Service in a Layered Architecture for a WPF Project?
Hello I am working on a WPF application using the MVVM pattern and performing validations through a centralized ValidationService that leverages FluentValidation. During the validation process, I need to check whether an ISBN already exists in the…
I want to enable/Disable (i.e. lock/unlock) the Bluetooth through the C# wpf Application
Hi I want to enable/disable the Bluetooth programmatically in c# .NET WPF app. I am not able to find correct implementation. Pls help.
How to use WPF Mouse.OverrideCursor in a VB.NET application
I tried a sample WPF code, that Kareninstructor recommended to me, from https://github.com/karenpayneoregon/visual-basic-getting-started/tree/master/ChangeCursor to test the usage of Mouse.OverrideCursor - this worked beautifully. However, it is a…
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…
Dependency Properties in User Controls
I have a simple Slider and Label user control that I load into my window and I want to change the following properties using databinding from the main window. Slider Properties -> Value, SelectionStart, SelectionEnd (all doubles) Label Properties…
How to Print a PDF File in C# WPF
Hello everyone , I have a PDF file with several pages and I need to print it using C# and WPF technology. Can someone provide some guidance on how to achieve this and customize the settings, such as page size, orientation, and margin? Thank you.
How to implements desing time adorner for WPF?
I want to provide design-time support for my user control in WPF. I found out about adorners, but unfortunately, I could not implement them (In design time). I used this walkthrough, but it is old and no longer being updated. I would appreciate any help…