2,822 questions with Windows Presentation Foundation tags

Sort by: Updated
1 answer

The keyboard inputs are not updating correctly in the hosted WinForms application

Hi, We are encountering an issue in a WPF application hosted within a WinForms application. The keyboard event is triggered correctly, but the values are not updating properly in the UI.   Here’s the setup: Create a WinForms application with a user…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,922 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,398 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,633 questions
asked 2025-02-04T09:07:39.76+00:00
Yathavakrishnan 0 Reputation points
answered 2025-02-04T09:20:44.63+00:00
Jiale Xue - MSFT 48,861 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-23T07:01:02.52+00:00
Praveena S Kumar 20 Reputation points
accepted 2025-02-03T10:28:34.77+00:00
Praveena S Kumar 20 Reputation points
0 answers

WPF UI Not Rendering in Custom Credential Provider Within UAC

I am developing a custom Credential Provider where I launch a WPF application as a Class Library. The WPF window is supposed to display UI elements like buttons and textboxes. However, when the Credential Provider loads and the WPF window appears inside…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,995 questions
asked 2025-02-03T07:11:42.3666667+00:00
Priyanka Desai 5 Reputation points
edited a comment 2025-02-03T09:53:33.4+00:00
Hongrui Yu-MSFT 4,280 Reputation points Microsoft Vendor
1 answer

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"                          …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,085 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-27T04:47:18.25+00:00
commented 2025-02-03T07:45:24.4866667+00:00
Jiale Xue - MSFT 48,861 Reputation points Microsoft Vendor
2 answers

Is my technology stack suitable for a startup

I have developed a startup. My technology stack: C#, WPF, Postgresql, Dapper. Is this stack optimal for a startup? I listened to the opinions of previous developers and now I doubt it. Perhaps the problem is that the program does not work on other…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
Startups
Startups
Companies that are in their initial stages of business and typically developing a business model and seeking financing.
3 questions
asked 2025-01-29T19:45:17.5233333+00:00
vitaminchik 486 Reputation points
commented 2025-02-03T06:13:37.8+00:00
Jack J Jun 24,636 Reputation points Microsoft Vendor
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,085 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
asked 2025-01-21T05:57:40.91+00:00
Prasanth R A 5 Reputation points
commented 2025-02-03T06:08:57.33+00:00
Hongrui Yu-MSFT 4,280 Reputation points Microsoft Vendor
2 answers

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-16T10:34:03.34+00:00
fatih uyanık 200 Reputation points
commented 2025-02-03T06:01:42.6166667+00:00
Hongrui Yu-MSFT 4,280 Reputation points Microsoft Vendor
1 answer

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.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-22T21:17:16.64+00:00
Luke A'Court 0 Reputation points
commented 2025-02-03T03:12:44.54+00:00
Hongrui Yu-MSFT 4,280 Reputation points Microsoft Vendor
0 answers

Win11 - User32.GetRawInputData fails to read data since 24H2

Background: We are using HwndHost class to host child window inside WPF application. From WndProc method we are forwarding input messages (WM_INPUT) to child process/window using User32.SendMessage. The child process/window WndProc method then receives…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,085 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,633 questions
asked 2025-01-28T16:38:45.1933333+00:00
Vít H 0 Reputation points
edited the question 2025-01-31T01:57:33.2233333+00:00
Roy Li - MSFT 33,671 Reputation points Microsoft Vendor
1 answer

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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,085 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-16T08:11:55.82+00:00
Vishal2 Bansal 225 Reputation points
edited the question 2025-01-31T01:48:17.8833333+00:00
Roy Li - MSFT 33,671 Reputation points Microsoft Vendor
1 answer

How to disconnect a BLE device after successful connection

I have successfully connected to BLE device by using BluetoothLEDevice.FromIdAsync(deviceInfo.Id) and bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Cached) API's in unpaired mode over Windows 10 with .NET Framework 4.7.2 but I was…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2024-06-13T10:31:14.1533333+00:00
Prajnith Kumar 0 Reputation points
commented 2025-01-30T03:51:30.09+00:00
Mike Petrichenko 0 Reputation points
3 answers

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.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
830 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,633 questions
asked 2022-04-26T04:51:23.56+00:00
visi venkat 1 Reputation point
commented 2025-01-25T13:41:37.2766667+00:00
Castorix31 86,611 Reputation points
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2023-05-17T15:54:05.8133333+00:00
Ayrat Khaydarov 5 Reputation points
commented 2025-01-23T17:12:06.0533333+00:00
MOLDAVSKYY Volodymyr 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-22T07:17:10.66+00:00
fatih uyanık 200 Reputation points
accepted 2025-01-22T08:59:00.8666667+00:00
fatih uyanık 200 Reputation points
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2024-12-20T07:04:45.51+00:00
S Abijith 466 Reputation points
commented 2025-01-22T06:12:29.15+00:00
S Abijith 466 Reputation points
1 answer One of the answers was accepted by the question author.

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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,085 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,723 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-15T12:29:34.7333333+00:00
Vishal2 Bansal 225 Reputation points
accepted 2025-01-22T05:07:30.16+00:00
Vishal2 Bansal 225 Reputation points
1 answer One of the answers was accepted by the question author.

I run in a trouble. WPF, compiled XAML: on changed text handler run but not all controls initizlzed

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
830 questions
asked 2025-01-19T05:49:16.4366667+00:00
Roma Golich 20 Reputation points
accepted 2025-01-20T17:06:21.8666667+00:00
Roma Golich 20 Reputation points
2 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,085 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
asked 2025-01-07T03:15:44.66+00:00
Knot 0 Reputation points
commented 2025-01-17T01:10:47.81+00:00
Hongrui Yu-MSFT 4,280 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-13T10:16:24.99+00:00
fatih uyanık 200 Reputation points
accepted 2025-01-16T10:36:06.14+00:00
fatih uyanık 200 Reputation points
2 answers One of the answers was accepted by the question author.

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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,085 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,265 questions
asked 2025-01-14T13:11:39.5233333+00:00
Vishal2 Bansal 225 Reputation points
accepted 2025-01-15T13:22:53.75+00:00
Vishal2 Bansal 225 Reputation points