2,671 questions with Windows Presentation Foundation tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Draw chart with System.Windows.Controls.DataVisualization.Toolkit

Source thread: Generating a graph using DataVisualization Charting in WPF, answered by Peter Fleischer. I have a chart here: I want to get the same chart drawn with System.Windows.Controls.DataVisualization.Toolkit in WPF app, does anyone…

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,671 questions
asked 2020-02-25T03:27:22.497+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
commented 2024-04-10T16:18:24.0966667+00:00
Nieman, Michelle J 20 Reputation points
2 answers

How to convert outlook email (.msg) to pdf c# ?

Are there any free libraries using which I can convert outlook emails i.e. .msg files to pdf in my WPF c# app? I've tried using PDFSharp like below but the data is not showing properly at all. The email body contains tables and text and sometimes it may…

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,671 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,238 questions
asked 2023-05-09T07:35:53.6466667+00:00
don bradman 621 Reputation points
commented 2024-04-09T15:22:37.15+00:00
Redar Ismail Chicho 1 Reputation point
2 answers One of the answers was accepted by the question author.

WPF blazor hybrid application with console output window

I am following the guid in learn.microsoft.com to develop a .net8 WPF blazor hybrid app. Here is the link. I build and run the WPF application successfully according to this guid. However, I can`t make the WPF with a Console window even if I set 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,671 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,386 questions
asked 2024-04-03T06:57:30.51+00:00
William Liu 266 Reputation points
answered 2024-04-08T20:37:04.71+00:00
Bruce (SqlWork.com) 55,686 Reputation points
0 answers

how to dispose the BlazorWebView in WPF blazor hybrid application?

I have a usercontrol which contains BlazorWebView control. After load/unload this usercontrol several times, I find there are more and more Microsoft Edge WebView2 appear in Windows task manager. I guess it was caused by the unreleased BlazorWebView…

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,671 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,386 questions
asked 2024-04-06T01:15:06.14+00:00
William Liu 266 Reputation points
commented 2024-04-08T07:06:41.4566667+00:00
William Liu 266 Reputation points
0 answers

About automatic suggestion and completion of XAML codes on Visual Studio Code

Hello I installed the Visual Studio Code application on my computer. I generally work on C#. But I have a problem. When developing a WPF project and working in XAML files, suggestions of XAML codes are not completed by the compiler in CS files as in C#…

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,671 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,238 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.
762 questions
asked 2024-03-24T20:52:48.8666667+00:00
fatih uyanık 80 Reputation points
commented 2024-04-08T05:59:10.4966667+00:00
Jiale Xue - MSFT 31,821 Reputation points Microsoft Vendor
1 answer

An issue implementing migrations in the data layer

Hello I started developing a new c# WPF project. In a solution, I separated the layers as UI and Data. I placed database-related models and configurations in the data layer. Then, I gave the Data project as a reference to the ilse UI project. The problem…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 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,671 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,238 questions
asked 2024-04-05T08:04:08.8033333+00:00
fatih uyanık 80 Reputation points
commented 2024-04-08T05:33:09.8066667+00:00
Jiale Xue - MSFT 31,821 Reputation points Microsoft Vendor
3 answers

Wpf Title bar

Hey! So I want to change the color of the WPF title bar(where the x and the other buttons are) but I came to the conclusion I can't change that directly in WPF without using a third-party theme(am I wrong)? Also if it's really like that I downloaded…

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,671 questions
asked 2021-01-07T01:30:27.873+00:00
stefan zapryanov 1 Reputation point
commented 2024-04-05T09:54:36.8266667+00:00
Reinder Weenink 20 Reputation points
2 answers One of the answers was accepted by the question author.

How to check if a razor component is called by WPF-Blazor hybrid or Blazor application?

As a razor component can be called in a WPF blazor hybrid or Blazor server/wasm project. Is it able to check if current running application is WPF or Blazor in the razor component? Thanks!

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,671 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,386 questions
asked 2024-03-29T06:07:40.87+00:00
William Liu 266 Reputation points
accepted 2024-04-04T01:51:50.1+00:00
William Liu 266 Reputation points
2 answers

Error in Visual Studio 2022: An error occured while creating the new data source: "Could not get type information for 'Church_Video_InventoryDataSet'.

Project: .NET framework 4.7.2 WPF application Microsoft Visual Studio Community 2022 Version 17.7.3 VisualStudio.17.Release/17.7.3+34024.191 Microsoft .NET Framework Version 4.8.09037 Installed Version: Community Visual C++ 2022 …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 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,671 questions
asked 2023-09-07T22:45:51.61+00:00
Howard Burton 0 Reputation points
commented 2024-04-03T20:56:50.49+00:00
Michael Chapman 0 Reputation points
1 answer One of the answers was accepted by the question author.

Set Background in ComboboxItem on MouseOver does not work

Hi I would like to change the background of an item in comboboxItem when the mouse is over. But it does not work - see the code. When I use e.g. "IsVisible" instead of "IsMouseOver" than it works (all items are yellow). It seems 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,671 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,238 questions
asked 2024-04-01T09:05:00.9833333+00:00
Jim Jupiter 20 Reputation points
accepted 2024-04-03T19:57:15.15+00:00
Jim Jupiter 20 Reputation points
3 answers

Binding a System.Drawing.Image in a WPF Image element

I have an object with a System.Drawing.Image property that I'm wanting to bind and display in an Image element in WPF. I feel this should be straightforward since they're both "Images" but I'm not seeing a clear way to do this. What's 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,671 questions
asked 2020-08-05T18:41:23.643+00:00
Knox 26 Reputation points
answered 2024-04-02T07:15:01.7466667+00:00
Qasim Jan 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to enable dark system menu in WPF

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,671 questions
asked 2024-04-01T05:58:24.4233333+00:00
quan zhao 20 Reputation points
accepted 2024-04-02T01:32:20.74+00:00
quan zhao 20 Reputation points
1 answer One of the answers was accepted by the question author.

Windows Insider SDK not working since 25936

I'm trying to build a simple .NET 6.0 app - Just install the 25936 insider preview SDK then create a blank WPF/.NET 6.0 app and add to the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 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,671 questions
asked 2024-03-25T18:02:12.0833333+00:00
yoyodyne01 46 Reputation points
accepted 2024-03-29T17:22:02.61+00:00
yoyodyne01 46 Reputation points
1 answer

Opening a Window Using Its Name

From my MainWindow I am trying to open another window knowing only its name. In my MainWindow ViewModel, I have: Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (lpClassName As String, lpWindowName As String) 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,671 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,568 questions
asked 2024-03-26T09:29:31.52+00:00
RogerSchlueter-7899 1,196 Reputation points
commented 2024-03-28T20:11:10.8633333+00:00
KOZ6.0 4,735 Reputation points
1 answer One of the answers was accepted by the question author.

Animation duration for RotateTransform not enforced?

Hello. I'm unable to get a simple rotation animation to work properly on a simple WPF application. I'm targeting .NET 8. Here's what I've done: Created a new WPF C# application using VS2022 Community. My MainWindow.xaml looks like 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,671 questions
asked 2024-03-26T21:08:29.2866667+00:00
Lionel Keene 20 Reputation points
commented 2024-03-28T16:35:14.17+00:00
Lionel Keene 20 Reputation points
0 answers

Seeking help with software runtime issues.

My version is Windows 10 Professional. I encountered runtime issues when using a software called TYPHOON HIL. The engineer of the software mentioned that the problem might be due to occasional lack of permission to access certain paths or files on the C…

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,671 questions
asked 2024-03-28T10:09:28.85+00:00
DS LEE 0 Reputation points
commented 2024-03-28T11:22:10.7333333+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
0 answers

WPF ListBoxItem SelectionItemPattern Availability Issue

In a standard WPF application, ListBoxItem is expected to consistently support the SelectionItemPattern, irrespective of its selection state. However, I have observed that when a ListBoxItem is selected, the IsSelectionItemPatternAvailable property…

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,671 questions
asked 2024-03-28T03:06:31.35+00:00
奕縢 陳 0 Reputation points
commented 2024-03-28T07:46:23.66+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
1 answer

Using Azure Notification Hubs with WPF

Hello, I have a .NET 8, C# WPF application and would like to use Azure Notification Hub. My application should be able to run on Windows 10 or above. I've searched for resources, but all the tutorials I've found use Windows SDK/UWP/Win UI. Can I use…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
262 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,671 questions
asked 2024-02-19T03:22:08.82+00:00
Yuli Aria Winata 0 Reputation points
commented 2024-03-27T14:11:12.27+00:00
Grmacjon-MSFT 15,856 Reputation points
1 answer

Is it possible to write new attached property like Validation.Errors, say MyValidation.XYZ

Hello, I would like to use some set of my own different attached properties not defined in Validation.cs. Actually I've tried all known possible ways including AddValueChanged for existing public Validation.<DependencyProperty>, but no have no luck…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 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,671 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,238 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.
762 questions
asked 2024-03-25T15:29:46.77+00:00
Alexander Landa 0 Reputation points
commented 2024-03-26T14:17:27.8+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to load in a Bitmap from a canvas

My problem is to load a Bitmap (for retrieving his pixels) from a canvas used to draw a image. So I need to have a Bitmap from a image drawn on a screen in a canvas. This because Bitmap has the command GetPixel(). the canvas has no similar statement…

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,671 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,238 questions
asked 2024-03-25T13:29:49.7166667+00:00
Paolo Mossa 161 Reputation points
edited the question 2024-03-25T14:53:10.98+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor