2,686 questions with Windows Presentation Foundation tags

Sort by: Updated
2 answers

DataGrid is Not Updating Properly

I have a DataGrid that should display a new item when it is added to the ItemsSource but that is not happening and I can't see the error. The XAML: <DataGrid x:Name="dgTimes" ItemsSource="{Binding…

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,686 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,602 questions
asked 2024-03-10T01:14:34.6233333+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2024-03-22T06:30:27+00:00
Hui Liu-MSFT 41,331 Reputation points Microsoft Vendor
0 answers

WPF rendering issue on any machine

Please follow this steps to catch problem on your machine. Please, help me resolve it. Create empty WPF project. Use property CacheMode="BitmapCache" in MainWindow's Grid; Show MainWindow on start application, then hide it. Show new any…

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,686 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.
771 questions
asked 2021-03-01T02:00:48.117+00:00
Andrey Nasonov 21 Reputation points
commented 2024-03-20T09:34:05.7333333+00:00
David Šeda 5 Reputation points
2 answers

WPF/XAML Add Item not working in C# Library Shared Project - VS 2022 V17.6.3

I am working on a .net 4.8 c# library project and I am using a Shared Project within it to help with versioning. When I attempt to add a WPF User Control under the shared project, it is not an available template. If I create it under one of the other…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,458 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,686 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.
771 questions
asked 2023-06-16T19:15:45.87+00:00
Sean Page 0 Reputation points
edited an answer 2024-03-17T02:14:10.1633333+00:00
Sean Page 0 Reputation points
3 answers One of the answers was accepted by the question author.

Fill and remove elements at any time, asyncronous mode.

Hello, I receive data as a string, packed in json format. I can receive the data at any time. I would like to work through the data step by step. At the same time, I may remove a row of data and then add new data. How can I avoid collisions 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,686 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.
10,375 questions
asked 2024-02-17T15:23:27.9866667+00:00
Markus Freitag 3,786 Reputation points
commented 2024-03-15T18:03:34.16+00:00
Andy De George 90 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

UserScopedSetting Data Store Location

I have a WPF .NET Framework 4.7.2 app that uses the UserScopedSetting attribute class to save custom settings to the users AppData\Local folder. On my development machine, the path to my user.config file looks like 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,686 questions
asked 2020-03-14T19:48:15.583+00:00
R Evans 211 Reputation points
answered 2024-03-15T08:14:27.8833333+00:00
National Executive Transfers 0 Reputation points
0 answers

How to fix storyboard moving tile within column

In working in visual studios storyboard- I am unable to move a tile within a column- but I can move it across different columns. If I wanted to move a tile up in the column- it is not allowing me. It appears to move when I drag it but then goes back to…

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,686 questions
asked 2024-02-28T12:44:45.3133333+00:00
Michelle Wilcox 0 Reputation points
commented 2024-03-15T07:09:34.6766667+00:00
Hui Liu-MSFT 41,331 Reputation points Microsoft Vendor
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,686 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.
12,891 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.
10,375 questions
asked 2024-02-25T12:17:45.5366667+00:00
Mojtaba_Hakim 281 Reputation points
commented 2024-03-15T07:08:19.7966667+00:00
Hui Liu-MSFT 41,331 Reputation points Microsoft Vendor
2 answers

How do I implement a "mouse double click" for a ListBox?

This xaml code attempts to implement a "mouse double click" for a ListBox "list of cities". xaml <ListBox x:Name="gLBxCities" Margin="10,0,10,10" Foreground="#0000FF" > xaml.cs private 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,686 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.
10,375 questions
asked 2024-02-25T13:16:24.31+00:00
bhs67 96 Reputation points
commented 2024-03-15T06:57:30.95+00:00
Hui Liu-MSFT 41,331 Reputation points Microsoft Vendor
0 answers

Can you help us solve crashes in DataGrid WPF?

We are experiencing crashes in particular environments on customer sites in our WPF application. The callstack points to the DataGrid control, which contains in these cases CheckBoxes which are ToggleButtons (callstack). Our codebase extends the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,458 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,686 questions
asked 2024-02-14T09:19:06.07+00:00
Geerts, Eric 0 Reputation points
commented 2024-03-14T10:28:51.9533333+00:00
Geerts, Eric 0 Reputation points
3 answers One of the answers was accepted by the question author.

Windows Presentation Foundation (WPF) end of life

Hi All, I would like to know if anyone has any information on future roadmap for WPF. Is there any date for microsoft retiring WPF and removing future support? Thanks in advance Narayanan

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,686 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.
771 questions
asked 2022-12-19T17:50:51.293+00:00
Narayanan Subramanian (Nara) 26 Reputation points
edited a comment 2024-03-13T19:02:54.3933333+00:00
Jan Bensch 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Access and Insert into the First Element of a List <> in WPF C# ?

I have a List <> which I populate by showing available audio devices. The Audio Device List<> which is created by manipulating ancient Win32 APIs. My Code is working fine, currently there no issue present on it. But I have some requirement,…

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,686 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.
10,375 questions
asked 2024-03-10T09:26:44.1033333+00:00
MERUN KUMAR MAITY 511 Reputation points
commented 2024-03-12T07:55:32.7566667+00:00
MERUN KUMAR MAITY 511 Reputation points
2 answers One of the answers was accepted by the question author.

How to create and display an Excel file?

Hello. Is it possible to create an Excel file in a WPF application in C#. At the same time, so that you can display and edit this file as in the Microsoft Excel application?

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,686 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.
10,375 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,579 questions
asked 2024-03-05T19:49:16.9533333+00:00
vitaminchik 446 Reputation points
commented 2024-03-10T18:48:38.1166667+00:00
vitaminchik 446 Reputation points
1 answer One of the answers was accepted by the question author.

What Does the launcher.exe Do?

When I publish my application on VS 2022, I get a launcher.exe file. I cannot find any information on what it does and I am wondering if I must include the file when I distribute my application. So far, my application does not give me any errors when I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,458 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,686 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.
10,375 questions
asked 2023-02-17T12:36:38.0733333+00:00
Skysmith 146 Reputation points
commented 2024-03-07T21:34:14.71+00:00
SSDiver2112 0 Reputation points
1 answer One of the answers was accepted by the question author.

UIAutomation throws AccessViolationException on Windows 11

Original post on stackoverflow: https://stackoverflow.com/questions/72872197/uiautomation-throws-accessviolationexception-on-windows-11 Also posting here as there might be more views, maybe from people at MSFT too. If it's considered duplicata,…

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,686 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.
10,375 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,407 questions
asked 2022-07-06T06:20:51.55+00:00
ygosteli 31 Reputation points
commented 2024-03-05T08:34:00.9633333+00:00
Graham, Dave 0 Reputation points
0 answers

WPF: Could not load file or assembly error in the designer but application runs with no problems

To try to solve another issue with the designer I've deleted bin and obj directories. Since then I'm facing this error while being in the designer: "The error message "Could not load file or assembly 'DesktopClient, Version=1.0.0.0,…

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,686 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,688 questions
asked 2024-03-01T08:49:05.19+00:00
Kratochvíl Lukáš 0 Reputation points
commented 2024-03-01T14:17:42.61+00:00
Kratochvíl Lukáš 0 Reputation points
0 answers

change paper tray lexmark printer in wpf c# program

Hello, how can I change the paper tray for a Lexmark XC9235 printer in a C# WPF application?

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,686 questions
asked 2024-02-29T12:01:34.83+00:00
Dieter Oeschay 0 Reputation points
edited a comment 2024-03-01T03:10:07.0133333+00:00
Hui Liu-MSFT 41,331 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Why is my RelayCommand Parameter Not Available in the ViewModel

<ListBox DisplayMemberPath="Name" ItemsSource="{Binding Path=GeoElements}" SelectedValue="{Binding Path=RouteID}" SelectedValuePath="ElementID"> <i:Interaction.Triggers> …

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,686 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,602 questions
asked 2024-02-27T15:02:31.81+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2024-02-29T17:49:20.4133333+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
0 answers

Issues with BLE Gatt Services

Hi guys, We are using the BLE GATT services supplied by the Windows CSWinRT nuget package in a .net 6 WPF application. Two issues have raised their heads and I'm hoping someone could point me in the right direction. The main issue we have been facing…

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,686 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.
10,375 questions
asked 2024-02-12T16:40:02.2933333+00:00
Ben Steele 0 Reputation points
edited the question 2024-02-29T01:09:35.6933333+00:00
Roy Li - MSFT 32,486 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

WinUI - MessageDialog in App.xaml.cs does not work

Before the MainWindow is created and called, the programme should establish a connection to the database and read data. In case of an error, a message should be displayed and the programme closed without the main window appearing. I have tried various…

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,686 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
730 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.
771 questions
asked 2022-03-04T08:03:30.063+00:00
Andreas Mazatis 131 Reputation points
edited a comment 2024-02-28T21:10:12.1066667+00:00
Enrique Ballarin 0 Reputation points
1 answer

How to limit translation hearing in 10 seconds

I am using microsoft speech SDF in my WPF application for continues translation.. Everything is working fine but my app listens to the speaker until he gives a break or pause. I want to set a timer so that if there is no break in 10 seconds it will start…

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,686 questions
asked 2024-02-26T21:00:49.8033333+00:00
Shahrier Erfan Harun 0 Reputation points
edited the question 2024-02-28T05:14:04.6466667+00:00
PRADEEPCHEEKATLA-MSFT 79,381 Reputation points Microsoft Employee