Microsoft Q&A

Windows Presentation Foundation

2,172 questions

A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.

Browse all Windows tags

2,172 questions with Windows Presentation Foundation tags

Sort by: Updated
1 answer

Opening the default e-email app

I use this code to open the default application and attach the file. But this code tries to open the Outlook app. For example, my default email app is the Windows 11 main app, but some other people in window seven, or XP, might be another app So, this…

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,172 questions
asked 2023-01-23T23:00:17.3166667+00:00
Eduardo Gomez 2,326 Reputation points
commented 2023-01-30T09:46:43.1066667+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
3 answers

Contact Us form

Hello I am creating a contact us form The idea here is that people contact, the developer (me), with a bug or future request So, the user will type his/her email, and some comments will be sent to my personal email address. private static void…

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,172 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.
6,930 questions
asked 2023-01-23T22:52:02.8166667+00:00
Eduardo Gomez 2,326 Reputation points
answered 2023-01-30T09:24:26.8166667+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
1 answer

filter & save to xml function doesnt work viewmodel

Hello Morning: First i read xml file to fill the datagrid edit, save the xml file, then export the datagrid to excel file using OpenXML, then read the excel file to fille the datagrid. When i jsut read the xml file, i can filter the datagrid and edit…

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,172 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.
6,930 questions
asked 2023-01-23T15:35:49.1233333+00:00
Kran2022 241 Reputation points
edited the question 2023-01-30T08:54:17.41+00:00
Kran2022 241 Reputation points
0 answers

Why is the combo box cursor/caret moves to the beginning when down arrow is hit?

In my app I have a combo box <ComboBox ItemsSource="{Binding ComboItems}" SelectedItem="{Binding SelectedCBItem}" StaysOpenOnEdit="True" Text="{Binding SelectedCBItem,…

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,172 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.
6,930 questions
asked 2023-01-23T05:18:53.03+00:00
don bradman 371 Reputation points
commented 2023-01-30T08:42:46.02+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
1 answer

WPF Mousemove is a noticeable lag

I am making a UserControl called VolumeScrollBar to control the volume a video player I am working on. Now the problem I am having is when I slide my SwitchPath it moves noticeable slower than my mouse. How can I fix this ? note: everything is working…

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,172 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.
6,930 questions
asked 2023-01-29T06:16:37.1733333+00:00
Brandon Boone 1 Reputation point
commented 2023-01-30T08:33:03.29+00:00
soren60 81 Reputation points
2 answers One of the answers was accepted by the question author.

In WPF, I want to handle the start and end of Resize like WinForms

I need an event in WPF which can tell me when does the window's border stop being dragged, because I can't run my large code every time SizeChanged event 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,172 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.
6,930 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,316 questions
asked 2023-01-29T14:12:29.06+00:00
尼龟 杰 0 Reputation points
commented 2023-01-30T08:28:47.85+00:00
soren60 81 Reputation points
2 answers

Subclassed Properties Not Binding

In my ViewModel I have this subclass: Public Class Printing Public AccountName As Boolean Public AccountNumber As Boolean Public Expiration As Boolean Public SecurityCode As Boolean End Class which I use as follows: Private _PrintList As…

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,172 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,826 questions
asked 2023-01-30T00:34:53.67+00:00
Roger Schlueter 931 Reputation points
answered 2023-01-30T02:58:50.5633333+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
1 answer

Download form URL and be able to click on it

So, I am doing shared file functionality. Right now, I am successfully uploading the file to Azure, and then putting the link in an email address, but I have some problems Even though I am inserting a URL, is not blue (Like a URL, that I can click on) …

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,172 questions
asked 2023-01-28T16:34:04.32+00:00
Eduardo Gomez 2,326 Reputation points
commented 2023-01-29T16:23:22.5066667+00:00
Eduardo Gomez 2,326 Reputation points
1 answer

seralize object returns empty file after save

Hello All, Morning: I'm reading a XML file to fill the datagrid have no issues; then i modify the some values in the datagrid then save back to the xml file without changing the structure of the file. When i tried to seralize the file, empty file 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,172 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.
6,930 questions
asked 2023-01-26T12:46:59.28+00:00
Kran2022 241 Reputation points
commented 2023-01-29T11:27:55.1766667+00:00
Kran2022 241 Reputation points
0 answers

Share URL of files

Ok so I was trying to implement the windows ten share UI in WPF, and because is a pain and I need it to be backward compatible with Win 7. I am trying another approach I create a new Container in azure The new container name in "share" 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,172 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
1,544 questions
asked 2023-01-26T17:30:56.0066667+00:00
Eduardo Gomez 2,326 Reputation points
commented 2023-01-27T02:30:41.05+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
2 answers

How to find the index of a newly added item in a ListView collection

I have a ListView element using a GridView. The ListView.ItemsSource property is bound to a CollectionViewSource. When I add a new item to the collection, the item appears successfully in the grid but I cannot determine the index at which it appears…

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,172 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.
6,930 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.
556 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
606 questions
asked 2023-01-12T15:00:24.92+00:00
Charles Burkitt 30 Reputation points
commented 2023-01-26T21:21:44.7433333+00:00
Charles Burkitt 30 Reputation points
0 answers

Issue with KB5017262 - Cumulative Update Preview for .NET Framework 3.5 and 4.8 for Windows 10

We faced a problem in our WPF application when KB5017262 has been applied on our computers. Our application uses the VirtualizationStackPanel and set the flag IsVirtualizingStackPanel_45Compatible due to performance issues as explained in the post…

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,172 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,916 questions
asked 2022-09-27T11:39:45.66+00:00
ChristineCCC 1 Reputation point
commented 2023-01-26T13:37:35.27+00:00
Tharen Debold 0 Reputation points
2 answers

Wrap overflow items in listview to new row?

Hi. I have a listview where i add custom items, after changing and trying alot things, no matter how many items i have added the items will not put overflow items to the next row when it runs out of space in the window width. Also, all items seems 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,172 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
606 questions
asked 2023-01-23T11:59:03.5466667+00:00
Stefan Grönberg 0 Reputation points
commented 2023-01-26T09:52:47.39+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
1 answer

Is this a right way to change DataGrid's value programmicality in C# WPF?

I want to be able to easily change the values of datagrid cells at any time Is this helper function a good solution? : public static DataGridCell GetCellConfig(DataGrid DGR1, string NAME_SUTUN, int ROWINEX) { var TheCol =…

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,172 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.
6,930 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.
556 questions
asked 2023-01-03T22:03:03.73+00:00
Mojtaba_Hakim 251 Reputation points
commented 2023-01-26T09:50:13.25+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
1 answer

How to set Focus on new row after TAB Pressed in the last row in C# WPF DataGrid?

I'm using C# WPF , I have a DataGrid that is bound to an ObservableCollection , I want to keep focus on DataGrid's row when user is entering value with keyboard on DataGrid, I mean when last row is focus after value entered , istead of lost focus on…

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,172 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.
6,930 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.
556 questions
asked 2023-01-10T10:32:07.007+00:00
Mojtaba_Hakim 251 Reputation points
commented 2023-01-26T09:48:53.7566667+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
2 answers

What is the best way to communicate with the database through Datagrid in C# WPF between DataSet and Entity?

I use C# WPF, I am programming an accounting program with a SQL Server database, in this accounting program, data is inserted, updated, and deleted by the user directly in a data grid, which contains a textbox and Combobox elements. In an issue…

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,172 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.
6,930 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.
556 questions
asked 2023-01-07T20:19:39.27+00:00
Mojtaba_Hakim 251 Reputation points
commented 2023-01-26T09:47:13.6733333+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

How to sum duplicate row specific column values using SpreadsheetLight ?

I've got some excel worksheets like I'm trying to export the data to a SQLite database using SpreadsheetLight library. Now these sheets may have some duplicate rows (i.e. the columns BP_NO, NAME & BL_NO have the same value as previous row). In that…

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.
6,930 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,172 questions
asked 2023-01-25T00:38:52.2066667+00:00
Boom Ba 146 Reputation points
accepted 2023-01-25T16:02:29.2+00:00
Boom Ba 146 Reputation points
1 answer One of the answers was accepted by the question author.

How to detect Windows Application Dark mode

What is the way to detect windows application dark mode setting (If it is dark or light), in a C# WPF application. Settings > Personalization > Colors > “Choose your default app mode” Screenshot from Windows 10 operating system. I am aware 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,172 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.
6,930 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.
1,890 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
127 questions
asked 2023-01-17T13:57:13.0533333+00:00
Deshmukh, Gaurav 30 Reputation points
commented 2023-01-25T05:04:29.7633333+00:00
Deshmukh, Gaurav 30 Reputation points
1 answer

WPF Canvas.SetLeft Problem

set value not changed

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,172 questions
asked 2022-12-15T08:07:50.423+00:00
김 영철 1 Reputation point
commented 2023-01-25T04:44:42.2733333+00:00
김 영철 1 Reputation point
0 answers

How do I get published WPF app to work with .NET6

Hi, For a long time I have had a WPF application running in .NetFramework 4.8 and finally took the step to port it to .NET6 to get the LTS that follows. However I now face an issue with publishing. I have a Network Drive folder that I publish (ClickOnce)…

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,172 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
606 questions
asked 2023-01-24T08:16:28.9866667+00:00
William Morgensol 0 Reputation points
commented 2023-01-25T03:47:08.9733333+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee