2,767 questions with Windows Presentation Foundation tags

Sort by: Updated
1 answer

How to Write a DependencyProperty for a TextBlock when it is a child element of a parent Button class in WPF C#?

Hi there, I want to make a Dependency Property for a Text Block and the functionality of this property is to apply a Scale Transformation on the Text Block but I am unable to do that Because it's a child element inside of a Button class. I have a…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,562 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,767 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,900 questions
asked 2024-10-03T02:05:10.09+00:00
MERUN KUMAR MAITY 596 Reputation points
edited an answer 2024-10-03T06:03:45.79+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
1 answer

How Can I Register and Manage Services in a Large C# Project?

Hello I will start developing a new C# WPF project. I need your information on something while planning. I will use the MVVM pattern in the project. I will create a large number of services to perform some tasks and use them in the relevant classes. I am…

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,767 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,900 questions
asked 2024-10-02T12:49:07.14+00:00
fatih uyanık 100 Reputation points
commented 2024-10-03T05:04:16.5066667+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
2 answers

JAWS or windows narrator not working/announcing localized description of enum bind to combo box for wpf application

Hi, I am using JAWS screen reader / windows narrator on wpf dialog for wpf application. But reader does not says/announce/speaks about description of enum bound to combobox in WPF c# application. Screen reader speaks/announce enumerator rather than…

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,767 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,900 questions
asked 2024-09-27T15:19:25.7666667+00:00
Ajay Gera 40 Reputation points
answered 2024-10-01T13:33:28.31+00:00
Ajay Gera 40 Reputation points
1 answer

Dark/Light mode of system tray icon in WPF

I am using notify icon in my WPF app. When I click this icon, always there is a white background of context menu but I want to change this for Dark mode. But how to apply Dark & Light mode in notify icon? _notifyIcon = 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,767 questions
asked 2021-10-06T09:51:03.21+00:00
Rajib Chandra Pal 1 Reputation point
commented 2024-10-01T11:54:10.6133333+00:00
Castorix31 84,956 Reputation points
2 answers One of the answers was accepted by the question author.

JAWS or windows narrator not working for label and tooltip for c# wpf application

Hi, I am using JAWS screen reader / windows narrator on wpf dialog for wpf application. But reader does not says about label text and tooltip on hovering on the label. I have used AutomationProperties.Name , AutomationProperties.LabeledBy as per link…

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,767 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,900 questions
asked 2024-09-27T14:54:07.38+00:00
Ajay Gera 40 Reputation points
accepted 2024-10-01T06:23:17+00:00
Ajay Gera 40 Reputation points
1 answer

How we can achieve Theming WebView2 content in Visual Studio 2022 WPF application?

How we can achieve Theming WebView2 content in Visual Studio 2022 WPF application? I have worked on vscode code extension and I have used webviews to display contents or various controls like combo box , button , textbox etc. Webviews can access VS Code…

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,767 questions
asked 2024-09-11T18:11:54.55+00:00
Ajay Gera 40 Reputation points
commented 2024-09-30T06:47:13.3866667+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Signing WPF application for distribution

PLEASE Ignore this question and refer to my previous question https://learn.microsoft.com/en-us/answers/questions/1460328/signing-wpf-application-for-distribution =================================================== I have developed a WPF application that…

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,767 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,095 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,900 questions
asked 2023-12-10T17:30:12.3666667+00:00
Wally96333 66 Reputation points
commented 2024-09-28T23:18:17.64+00:00
Franck van der Sluijs 0 Reputation points
2 answers

What Can I Use for Application Update?

Hello I developed a WPF application with C#. I also uploaded the application to Github. My goal is to update the applications distributed to users with the new version as the application is developed and new features are added. I do not have 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,767 questions
asked 2024-09-23T09:01:07.6966667+00:00
fatih uyanık 100 Reputation points
commented 2024-09-25T06:12:36.95+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
1 answer

How to make the Popup control in WPF ignore mouse events

I want to implement a function: display Popup when the mouse enters the Grid, update the Popup position when the mouse moves, and close Popup when the mouse leaves the Grid. This is my current xaml and cs: MainWindow.xaml <Window…

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,767 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,900 questions
asked 2024-09-18T06:11:26.24+00:00
HoWe Yu 41 Reputation points
commented 2024-09-24T07:13:17.5+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
5 answers

Question about dotnet SDK version and Runtime version

I always update my dotnet SDK to the latest version for developing WPF applications. Does it mean the customer who run run my app also need the latest runtime to be installed? For example, I am using SDK 8.0.401 now, does it matter if the customer PC is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 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,767 questions
asked 2024-09-12T05:13:57.56+00:00
William Liu 466 Reputation points
commented 2024-09-24T07:11:59.4566667+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
2 answers

How can I create a clean project folder structure?

Hello I use many libraries that I downloaded from Nugget in a wpf c# project. These libraries are normally located under the "Bin" folder. I want to create a cleaner folder structure. For this, I want to collect these libraries under a folder…

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,767 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,900 questions
asked 2024-09-11T07:10:33.9366667+00:00
fatih uyanık 100 Reputation points
commented 2024-09-24T07:09:50.78+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
1 answer

How to get the resource key from a control?

How to get the resource key from a control? Wpf control can use the pre-defined resource in runtime. Is it able to get the resource key from a control? And how? Thanks! <Window x:Class="GetResourceKeyWpf.MainWindow" …

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,767 questions
asked 2024-09-10T02:55:22.18+00:00
William Liu 466 Reputation points
commented 2024-09-24T07:08:18.7966667+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Is it possible to read/store/retrieve data from Excel spreadsheet from Share point site to WPF application?

Hi, I have connected to Share Point site referring the following blog: https://www.c-sharpcorner.com/article/sharepoint-csom-for-net-standard/ I have created a sample test spreadsheet in the Documents Library named *testSpreadSheet.xlsx * I have a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 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,767 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,882 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,900 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,967 questions
asked 2024-08-20T15:12:24.4533333+00:00
Lakshmanan B 81 Reputation points
commented 2024-09-23T15:50:08.49+00:00
Lakshmanan B 81 Reputation points
1 answer

Using Renegotiation in C#

Hi All, We have a WPF application built on .Net Framework 4.8. This application acts an HTTPs client. We are currently using the code provided in the attached file for HTTPs communication. This code is used to run a sequence of commands one after…

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,767 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,900 questions
asked 2024-09-14T20:10:04.57+00:00
S Abijith 386 Reputation points
commented 2024-09-23T09:17:47.16+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
0 answers

How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?

Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…

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,767 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
982 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,900 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.
808 questions
asked 2024-09-11T21:41:55.1+00:00
MERUN KUMAR MAITY 596 Reputation points
commented 2024-09-23T09:16:41.3433333+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
0 answers

How to set PerMonitor DpiAwareness for .NET 8 Windows desktop application in WPF?

Hi, I am having problem setting WPF window based desktop .NET 8 application to work as PerMonitor DpiAware. System default automatic scaling schema... When user changes Windows 10 display setting scale, WPF-Window is being scaled accordingly. Also,…

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,767 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,610 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,900 questions
asked 2024-09-03T11:03:57.19+00:00
MERUN KUMAR MAITY 596 Reputation points
edited a comment 2024-09-23T06:22:31.4933333+00:00
Hui Liu-MSFT 48,531 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Selected Item in ComboBox wpf with Binding

I have a listview, when selecting the listview I make a binding to an SelectedCategory property. When binding to Checkbox, Textbox an so works fine, but I can't find the right combination for the ComboBox no matter what I try. I know for sure, that 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,767 questions
asked 2021-04-01T19:25:47.69+00:00
Anja 426 Reputation points
commented 2024-09-18T21:29:39.52+00:00
Ed Poitras 0 Reputation points
3 answers

how update WebView2 control in C# WPF application as per Color Theme selected in visual studio 2022 like Light, Dark etc

how update WebView2 control in C# WPF application as per Color Theme selected in visual studio 2022. Color theme can be changed in visual studio 2022 from Tools -> Options -> Color Theme:

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,767 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,095 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,900 questions
asked 2024-08-19T17:46:32.5333333+00:00
Ajay Gera 40 Reputation points
commented 2024-09-16T05:54:58.0866667+00:00
Hongrui Yu-MSFT 1,765 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Passing variable argument in a loop to eventhandler

In WPF I have a Styles button in which I add items with the different styles: <Button x:Name="Form_Estilos"> <Button.ContextMenu> <ContextMenu x:Name="Form_Estilos_Items"/> <ItemsControl> …

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,767 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,900 questions
asked 2024-09-05T01:52:24.05+00:00
zequion 446 Reputation points
edited the question 2024-09-14T02:56:03.4366667+00:00
zequion 446 Reputation points
1 answer

Window.GetWindow() of TabItems content does not return the right window when TabItems State changes

When using TabControl in two windows, each TabItem contains a button with a click event that displays the parent window of the TabItem using Window.GetWindow(). After DragAndDrop a TabItem from one window to another, GetWindow() still returns the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 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,767 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,900 questions
asked 2024-08-02T05:27:50.5833333+00:00
Karthick Arjunan 0 Reputation points
commented 2024-09-13T13:15:23.24+00:00
Karthick Arjunan 0 Reputation points