2,848 questions with Windows Presentation Foundation tags

Sort by: Updated
1 answer

Understanding %temp%\.net Folder | WPF | Single File | Self Contained | WebView2

When developing a single file self-contained WPF application using .NET 8 that uses the WebView2 component, a folder is created under %temp%\.net while the application is running. What is the purpose of this folder, when and how is it created, and is it…

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,848 questions
asked Mar 28, 2025, 9:27 a.m.
Theiss, Daniel 0 Reputation points
edited a comment Mar 31, 2025, 9:27 a.m.
Hongrui Yu-MSFT 5,170 Reputation points Microsoft External Staff
1 answer

Impact of Changing Framework Order in runtime.config.json on Application Stability

Description: I am working on a .NET 8 WPF application that undergoes obfuscation using SmartAssembly. During the build, runtime.config.json is generated automatically, but SmartAssembly picks WindowsBase.dll from Microsoft.NETCore.App instead of…

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,848 questions
asked Mar 28, 2025, 9:11 a.m.
Subhabrata Sahoo 0 Reputation points
answered Mar 31, 2025, 7:56 a.m.
Hongrui Yu-MSFT 5,170 Reputation points Microsoft External Staff
1 answer

UI Slows Down When Listing Large Data (3000+ Records) in WPF Application

Hello,    I am developing a library automation system using WPF and MVVM. My application contains more than 3000 book records, which I list using ICollectionView and ObservableCollection. However, while loading and displaying the data, the UI slows down…

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,848 questions
asked Mar 21, 2025, 7:37 a.m.
fatih uyanık 220 Reputation points
commented Mar 31, 2025, 12:59 a.m.
Hongrui Yu-MSFT 5,170 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

WPF DataGrid resizing column causes extreme scrolling

I have found a behavior with the stock WPF DataGrid that I can't explain or prevent, but it feels like a bug. I am curious if anyone has run into this and what the fix or workaround is. Steps to Reproduce: When using a DataGrid with several columns…

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,848 questions
asked Sep 22, 2020, 6:23 p.m.
Werth, Timothy R 21 Reputation points
answered Mar 30, 2025, 11:44 a.m.
CodingNinja 96 Reputation points
1 answer One of the answers was accepted by the question author.

How to control the Visibility property of a UserControl object dynamically using Binding property?

I am working on a .NET C# project to learn MVVM. I am struggling to control the Visibility property of a UserControl dynamically. The login screen (userView.xaml) is a small centralized box that has two userControl views named signInUC.xaml and …

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,848 questions
asked Mar 27, 2025, 12:30 p.m.
Lakshmanan B 101 Reputation points
accepted Mar 28, 2025, 1:58 p.m.
Lakshmanan B 101 Reputation points
1 answer

How to reference global resources in user controls in wpf class library projects

I created a WPF class library, and then added a UserControl "Card.xaml", and a resource dictionary "GlobalRes.xaml", I hope to use the style resources in GlobalRes in the Card control. As shown…

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,848 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,350 questions
asked Jun 21, 2024, 5:17 a.m.
HoWe Yu 81 Reputation points
commented Mar 28, 2025, 11:46 a.m.
Marcos Cordeiro Oliveira 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to get the custom WPF dialog box in visual studio

I am using webview2 to display the page on the wpf dialog box initially the issue is there was visual studio icon that was coming by default on the top left I want to remove that icon so that I used WindowStyle="ToolWindow" due to this my…

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,848 questions
asked Mar 20, 2025, 10:52 a.m.
Vasu Bansal 20 Reputation points
accepted Mar 27, 2025, 6:41 a.m.
Vasu Bansal 20 Reputation points
1 answer

Windows 11 22598.100 Tooltip problem with WPF apps

I'm finding that Tooltips in WPF V4.8 apps (and earlier versions) are not working in Windows 11 build 22598.100. They appear but then immediately disappear. It happens in all WPF based apps. Tooltips are ok in Winforms apps and also .NET 5.0 WPF apps are…

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,848 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,223 questions
asked Apr 19, 2022, 2:18 p.m.
Andrew Jones 26 Reputation points
commented Mar 25, 2025, 5:33 a.m.
Raymond Wynn 0 Reputation points
1 answer

How to change Windows Lock Screen background without creating a UWP app?

I need to programmatically change the Windows Lock Screen background, but my application's logic is quite complex, and it can't be achieved using the built-in Windows functionalities. I know that it's possible to create a UWP app and use 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,848 questions
asked Mar 21, 2025, 3:46 a.m.
Moying 0 Reputation points
commented Mar 24, 2025, 1:04 a.m.
Hongrui Yu-MSFT 5,170 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

How to number rows in dataGrid

Hello. I am using datagrid. Is it possible to make it possible for the user to add a combined row or with columns by clicking on the table? And how it is possible to make numbering of lines as an example? If a combined string is encountered, then 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,848 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,350 questions
asked Apr 21, 2023, 7:46 p.m.
vitaminchik 486 Reputation points
answered Mar 22, 2025, 7:04 a.m.
Fei Nan 0 Reputation points
4 answers

Displaying Files of Unknown Types Stored in SQL Server Using C# WPF

I am developing a C# WPF application using .NET 6 in Visual Studio 2022, with a SQL Server 2008 R2 database. My database contains a table GRADE_CUST_GRP with a column GCPS of type image, where files of various types are stored without any file extension…

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,848 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 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,350 questions
asked Feb 25, 2024, 12:17 p.m.
Mojtaba_Hakim 321 Reputation points
edited an answer Mar 21, 2025, 2:37 p.m.
TP 112.8K Reputation points
1 answer One of the answers was accepted by the question author.

WPF PrintDialog: How to Enable and Detect Selected Page Print Feature?

Our WPF application targets .NET 4.8. The WPF application can generate run report which include 12 pages. run report allows print. So far there is no option, and it always prints all 12 pages. we like to add feature to allow select page numbers and only…

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,848 questions
asked Mar 14, 2025, 6:51 p.m.
Jane Jie Chen 506 Reputation points
accepted Mar 21, 2025, 1:53 a.m.
Jane Jie Chen 506 Reputation points
2 answers

Unable to Type Korean Characters in WPF TextBox When changing the ReadOnly Property

We have a WPF application in which the culture is set to Korean. In the application, we have added the InkCanvas to the grid and a text box is added to the canvas. While adding the text box to the canvas, we set its ReadOnly property to true and to false…

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,848 questions
asked Mar 18, 2025, 3:16 p.m.
Yathavakrishnan 20 Reputation points
commented Mar 21, 2025, 1:01 a.m.
Hongrui Yu-MSFT 5,170 Reputation points Microsoft External Staff
0 answers

WPF: Customizing WPF PrintDialog in Framework 4.8 to Add Input Box for Page Selection

Our WPF application targets .NET 4.8. The WPF application can generate run report which may include 12 pages. A run report allows print. So far there is no option, and it always prints all 12 pages. We like to add feature to allow select page numbers and…

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,848 questions
asked Mar 18, 2025, 1:52 p.m.
Jane Jie Chen 506 Reputation points
commented Mar 19, 2025, 5:40 a.m.
Hongrui Yu-MSFT 5,170 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

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,103 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,848 questions
asked Jan 7, 2025, 3:15 a.m.
Knot 40 Reputation points
accepted Mar 18, 2025, 4:02 p.m.
Knot 40 Reputation points
1 answer One of the answers was accepted by the question author.

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,925 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,848 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,449 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,350 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,223 questions
asked Feb 4, 2025, 9:07 a.m.
Yathavakrishnan 20 Reputation points
commented Mar 18, 2025, 2:16 p.m.
Yathavakrishnan 20 Reputation points
2 answers One of the answers was accepted by the question author.

Excel formatting issue in C#

Hi All, I have a WPF application in which I am exporting data to excel. I have merged some cells and added some data to it. After printing I observed some formatting issue where some of the text is cutted and missing:  _excelApp = new…

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,848 questions
asked Mar 2, 2025, 4:15 p.m.
Pratham Jain 281 Reputation points
edited the question Mar 18, 2025, 6:58 a.m.
Hongrui Yu-MSFT 5,170 Reputation points Microsoft External Staff
1 answer

Restrict portions of an application - C# Wpf

Hi, i am making a c# wpf application that has several pages and i want to protect certain pages from being accessed by certain users. what would some good aproaches to doing this be? I would really appreciate your help.

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,848 questions
asked Mar 1, 2025, 4:09 a.m.
alan smith 1 Reputation point
edited the question Mar 17, 2025, 2:07 p.m.
Jiale Xue - MSFT 49,586 Reputation points Microsoft External Staff
1 answer

Announcing Control Changes for Screen Readers in My WPF Project?

Hello everyone, In my WPF project, I want to implement screen reader support, particularly in registration forms, for visually impaired users. My goal is to ensure that changes in controls (e.g., textboxes, comboboxes, checkboxes, etc.) and 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,848 questions
asked Mar 4, 2025, 12:31 p.m.
fatih uyanık 220 Reputation points
edited the question Mar 17, 2025, 2:06 p.m.
Jiale Xue - MSFT 49,586 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

WPF: Why BackgroundWorker.RunWorkerCompleted Event() throw an exception and main thread does not receive it?

Our WPF application targets .NET 4.8. The AbortableBackgroundWorkder class inherences from the BackgroundWorker class and used as following. there are two background workers: _protocolProcessorBackgroundWorker..DoWork() will call …

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,848 questions
asked Mar 7, 2025, 8:07 p.m.
Jane Jie Chen 506 Reputation points
edited the question Mar 17, 2025, 2:05 p.m.
Jiale Xue - MSFT 49,586 Reputation points Microsoft External Staff