2,855 questions with Developer technologies | Windows Presentation Foundation tags

Sort by: Updated
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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-28T09:11:43.6833333+00:00
Subhabrata Sahoo 0 Reputation points
commented 2025-04-02T01:09:39.98+00:00
Anonymous
3 answers One of the answers was accepted by the question author.

DataGrid TextBox Search using Ctrl + F and F3

I am building a WPF MVVM application. I have a DataGrid, like so: <DataGrid Name=“Employees” AutoGenerateColumns=“False” CanUserAddRows=“False” EnableColumnVirtualization=“True” …

Developer technologies | Windows Presentation Foundation
Developer technologies | XAML
asked 2021-11-11T14:05:22.47+00:00
StashyCode 61 Reputation points
commented 2025-04-01T08:48:52.2466667+00:00
CodingNinja 96 Reputation points
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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-21T07:37:55.05+00:00
fatih uyanık 225 Reputation points
commented 2025-03-31T00:59:28.8166667+00:00
Anonymous
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…

Developer technologies | Windows Presentation Foundation
asked 2020-09-22T18:23:03.063+00:00
Werth, Timothy R 21 Reputation points
answered 2025-03-30T11:44:56.2033333+00:00
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 …

Developer technologies | Windows Presentation Foundation
asked 2025-03-27T12:30:15.9+00:00
Lakshmanan Balasubramanian 121 Reputation points
accepted 2025-03-28T13:58:45.78+00:00
Lakshmanan Balasubramanian 121 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…

Developer technologies | Windows Presentation Foundation
Developer technologies | C#
asked 2024-06-21T05:17:59.38+00:00
HoWe Yu 86 Reputation points
commented 2025-03-28T11:46:49.2833333+00:00
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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-20T10:52:16.6966667+00:00
Vasu Bansal 20 Reputation points
accepted 2025-03-27T06:41:57.32+00:00
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…

Developer technologies | Windows Presentation Foundation
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2022-04-19T14:18:27.207+00:00
Andrew Jones 26 Reputation points
commented 2025-03-25T05:33:16.2833333+00:00
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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-21T03:46:45.3133333+00:00
Moying 0 Reputation points
commented 2025-03-24T01:04:49.59+00:00
Anonymous
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…

Developer technologies | Windows Presentation Foundation
Developer technologies | C#
asked 2023-04-21T19:46:25.7133333+00:00
vitaminchik 486 Reputation points
answered 2025-03-22T07:04:20.99+00:00
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…

Developer technologies | Windows Presentation Foundation
SQL Server | Other
Developer technologies | C#
asked 2024-02-25T12:17:45.5366667+00:00
Mojtaba_Hakim 321 Reputation points
edited an answer 2025-03-21T14:37:57.06+00:00
TP 125.8K Reputation points Volunteer Moderator
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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-14T18:51:12.8066667+00:00
Jane Jie Chen 506 Reputation points
accepted 2025-03-21T01:53:40.94+00:00
Jane Jie Chen 506 Reputation points
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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-18T13:52:04.6433333+00:00
Jane Jie Chen 506 Reputation points
commented 2025-03-19T05:40:50.5433333+00:00
Anonymous
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…

Developer technologies | Windows Presentation Foundation
Developer technologies | .NET | Other
asked 2025-01-07T03:15:44.66+00:00
Knot 40 Reputation points
accepted 2025-03-18T16:02:13.51+00:00
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…

Developer technologies | Windows Forms
Developer technologies | Windows Presentation Foundation
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | Visual Studio | Other
Developer technologies | C#
asked 2025-02-04T09:07:39.76+00:00
Yathavakrishnan 40 Reputation points
commented 2025-03-18T14:16:18.6366667+00:00
Yathavakrishnan 40 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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-02T16:15:19.0533333+00:00
Pratham Jain 281 Reputation points
edited the question 2025-03-18T06:58:33.1166667+00:00
Anonymous
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…

Developer technologies | Windows Presentation Foundation
asked 2025-03-04T12:31:02.8766667+00:00
fatih uyanık 225 Reputation points
edited the question 2025-03-17T14:06:48.2966667+00:00
Anonymous
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 …

Developer technologies | Windows Presentation Foundation
asked 2025-03-07T20:07:38.0433333+00:00
Jane Jie Chen 506 Reputation points
edited the question 2025-03-17T14:05:43.3333333+00:00
Anonymous
1 answer One of the answers was accepted by the question author.

WPF C# fitting different Screen Sizes

Hi, I'm coding a nice smart tiny app :) and coding on a desktop PC - yesterday Im starting to test a release version and create a setup project - already done. For testing I put the setup file on my old notebook - and ahhhhhhh can't believe it. My…

Developer technologies | Windows Presentation Foundation
asked 2025-03-10T22:23:29.0366667+00:00
Jim Jupiter 80 Reputation points
edited the question 2025-03-17T14:04:13.8033333+00:00
Anonymous
1 answer

Cannot Assign x:Name to Elements Inside ContentControl in WPF UserControl

Hello, I have created a UserControl in WPF that contains a ContentControl. This ContentControl can accept any external content (Grid, StackPanel, TextBox, etc.). However, when I use the UserControl in another page and try to assign x:Name to elements…

Developer technologies | Windows Presentation Foundation
asked 2025-03-12T10:23:16.67+00:00
fatih uyanık 225 Reputation points
edited the question 2025-03-17T14:03:41.53+00:00
Anonymous