2,762 questions with Windows Presentation Foundation tags

Sort by: Updated
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,762 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
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,762 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 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,855 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.
805 questions
asked 2024-09-11T21:41:55.1+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-18T13:37:59.9066667+00:00
MERUN KUMAR MAITY 576 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,762 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,855 questions
asked 2024-09-14T20:10:04.57+00:00
S Abijith 386 Reputation points
commented 2024-09-18T08:49:16.0433333+00:00
Hongrui Yu-MSFT 1,605 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,762 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,855 questions
asked 2024-09-18T06:11:26.24+00:00
HoWe Yu 41 Reputation points
answered 2024-09-18T07:06:34.44+00:00
Hongrui Yu-MSFT 1,605 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,802 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,762 questions
asked 2024-09-12T05:13:57.56+00:00
William Liu 466 Reputation points
commented 2024-09-18T01:34:01.5766667+00:00
Hongrui Yu-MSFT 1,605 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,762 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,855 questions
asked 2024-09-11T07:10:33.9366667+00:00
fatih uyanık 80 Reputation points
commented 2024-09-18T01:14:17.6433333+00:00
Hongrui Yu-MSFT 1,605 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,762 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,589 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,855 questions
asked 2024-09-03T11:03:57.19+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-17T13:05:45.7+00:00
MERUN KUMAR MAITY 576 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,762 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,055 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,855 questions
asked 2024-08-19T17:46:32.5333333+00:00
Ajay Gera 20 Reputation points
commented 2024-09-16T05:54:58.0866667+00:00
Hongrui Yu-MSFT 1,605 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,762 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,855 questions
asked 2024-09-05T01:52:24.05+00:00
zequion 401 Reputation points
edited the question 2024-09-14T02:56:03.4366667+00:00
zequion 401 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,802 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,762 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,855 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
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,762 questions
asked 2024-09-10T02:55:22.18+00:00
William Liu 466 Reputation points
commented 2024-09-13T02:35:36.9566667+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
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,762 questions
asked 2024-09-11T18:11:54.55+00:00
Ajay Gera 20 Reputation points
answered 2024-09-12T08:45:17.77+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
2 answers

Can we store/retrieve data from Share Point list using a WPF C# application?

I am working on WPF C# application. Right now, I have the application connected to SQL database to store and retrieve data. However, I am curious to explore the options to replace it with Share Point List. So that, whatever the data I create using my WPF…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,802 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,762 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,855 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,942 questions
asked 2024-08-09T07:31:07.1166667+00:00
Lakshmanan B 81 Reputation points
edited the question 2024-09-11T10:04:53.93+00:00
Yanli Jiang - MSFT 25,546 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException: 'The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.'

Hi I am working with retrieving data from a SP list. I am able to connect to the list, get the list name and count the number of records (items) from the given list. Next, I wanted to get the data from a particular columns. Say I have the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,802 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,762 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,855 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,942 questions
asked 2024-08-15T08:49:02.92+00:00
Lakshmanan B 81 Reputation points
edited the question 2024-09-11T08:18:21.8466667+00:00
RaytheonXie_MSFT 35,066 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,802 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,762 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,839 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,855 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,942 questions
asked 2024-08-20T15:12:24.4533333+00:00
Lakshmanan B 81 Reputation points
edited the question 2024-09-11T08:16:20.7366667+00:00
RaytheonXie_MSFT 35,066 Reputation points Microsoft Vendor
1 answer

How to Write/Store data in an Excel spreadsheet that is located at Share Point?

I am working on writing or storing the data into Excel spreadsheet that is located at a Share Point site. I am able to connect to the Share Point site and obtaining the excel spreadsheet by passing the relative URL. Using Memory Stream, the contents of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,802 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,762 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,839 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,855 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,942 questions
asked 2024-08-28T10:42:09.1+00:00
Lakshmanan B 81 Reputation points
edited the question 2024-09-11T08:11:37.5066667+00:00
RaytheonXie_MSFT 35,066 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Using the method suggested by Microsoft for a WPF-Blazor hybrid app, an exception is thrown if any of the blazor pages is set to an interactive server render mode

Basically, I'm trying to build a hybrid app with a Web version and a Windows version. I've tried following this tutorial: https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/wpf?view=aspnetcore-8.0 However, there are a few pages in my…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,802 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,762 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,559 questions
asked 2024-09-02T15:07:24.48+00:00
Fernando Trierweiler 20 Reputation points
commented 2024-09-06T14:00:55.8466667+00:00
Fernando Trierweiler 20 Reputation points
1 answer

Wpf Touch sometimes clicks random on locations

Hi.. Our system has a list of elements who all have their own separate Mouse and touch events. So when you click or touch one, it opens a new dialog. There are also elements that do not have any of these click or touch events in the same row. 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,762 questions
asked 2021-03-30T13:17:46.023+00:00
MatriXz 1 Reputation point
commented 2024-09-06T11:12:00.1133333+00:00
Vicente Hernandez, Manuel 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to add IsPressed effect to a Control?

I would like to create a custom control which is inherited from Control. But Control doesn`t have the IsPressed DP as Button. I want to change the background of my control when it is pressed. However, I don't like to bring other properties which Button…

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,762 questions
asked 2024-09-04T00:33:54.49+00:00
William Liu 466 Reputation points
accepted 2024-09-05T07:12:12.8133333+00:00
William Liu 466 Reputation points
1 answer

Is there any UWP API/way available to detect/prevent hooking?

There are many tools available to do hooking eg: frida 29.html. But i didn't find any API or way to detect hooking . Is there any API or way to detect hooking in Universal Windows Platform(UWP)? If yes, can it detect all kinds of…

Universal Windows Platform (UWP)
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,762 questions
asked 2020-04-20T10:47:26.973+00:00
Rahul K 51 Reputation points
edited the question 2024-09-03T02:53:08.95+00:00
Yan Xie 40 Reputation points Microsoft Employee