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…
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…
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…
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…
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#…
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…
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…
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!
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 …
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…
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 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…
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…
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…
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…
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…
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…
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…
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…