How to create a grid in wpf looks like excel columns?
Hi Team How to create a grid like excel have columns? Below is my current code and needs some improvement on my wpf ui so can look alike the excel columns. I have attached an image below this code what it should look like <UserControl.Resources> …
How to make the Rectangle not response to mouse move?
I`m tring to draw a overlay transparent window with a red rectangle. It's a WPF Window. I am looking for how to make the rectangle not response to mouse move. Please see the screenshot for problem details. As you can see, when I move the cursor on top of…
How to Detect Initial DPI changes in a WPF Application while Scaling according to Per Monitor Aware in Variable Dynamic Screen Resolution?
In daily life we have to deal with a lot of different types of display size it may be mobile or may be a 4k monitor. The screen resolution vary from display to display. Here another important factor is DPI (Display per inch) which is mainly a scaling…
How to get GPS location from built-in surface pro GPS without internet connection
I need to be able to get the gps location from the built-in gps on a surface pro tablet. This is a WPF application and all my research says to use the GeoCoordinateWatcher class in System.Device.Location. This only seems to work when the tablet is…
Where is system.device.location?
I am trying to use the GeoCoordinateWatcher in my WPF application. Whenever I type the using statement "using System.Device.Location" I am told it does not exist. I have read that I have to add it as a reference but when I go to the list of…
How to reproduce the UI control from mock-up using wpf?
Hi Team I have a mock-up and want to reproduce it using wpf controls given by Microsoft forms in windows. Below is my current code and need some adjustment, as well screen shot of the mock-up want to produce using wpf ui controls. <UserControl…
Using User Control in WPF, How to create good UI grid?
Hi Team I have a mock-up and want to reproduce it exactly the same way using User controls offered by Microsoft forms in WPF. <UserControl x:Class="Feedmill_Weighbridge.Presentation.UCPremixPacks" …
How to Increase/Decrease mouse pointer moving speed on a WPF application surface?
Hi there, I have a simple WPF application where I need to control the mouse pointer speed. Suppose I run the application and as soon as my mouse pointer enter the application area, the mouse pointer speed should be increase and I want some more…
Is it possible to bind WPF DataGrid's RowState property to a property in the codebehind collection?
.Net 4.6.1 Given an ObservableCollection OC that is a collection of MyDisplayGrid MDG, and that OC has been set as the DataGrid's ItemSource Is it possible to bind (not display on the grid) the RowState property of the DataGrid to a property of…
Windows Media Player - visualization stops after the first track in the playlist
When a playlist is played back or when "Play all music", the set visualization stops after the 1st track. If you play the titles individually or switch on with a click of the mouse, the visualization works normally. This is only for mp3 tracks,…
How to Integrating Windows WebAuthn API with Custom Credential Provider in WPF C#
I've developed a Custom Credential Providers application that interacts with the Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() method for Authentication using Window Hello or External Fido2 Security Key. However, the CredentialUIBroker.exe…
Displaying Fast Data
C# -> WPF -> .NET 6 Windows 10 64-bit, Visual Studio Community 2022 v17.9.2 I am writing a program in which I want to see the current from a 3-phase brushless DC Motor. Each phase will be displayed in a different colour to differentiate them. I…
Certificate Revocation List
Hi All, We have a WPF application built on .Net Framework v4.8. This application acts as an HTTPs client. We are currently performing the certificate check using 'RemoteCertificateValidationCallback' method (except CRL). We now need to perform CRL…
Is there any other alternative to use the functionality of dragging and dropping an email item from new outlook1.2024.508.600 (Production) version( ) to WPF form using C#?
I have an existing functionality where I drag and email item from outlook and drop it in the WPF form and it is dropped there along with its attachments. This works fine with Classic outlook but doesn't seem to be working with New outlook (1.2024.508.600…
Solution Parser not working in .Net8
Hi, I'm in the process of migrating my WPF application from .NET Framework 4.8 to .NET 8. In my previous application, I utilized the Solution Parser functionality from Microsoft.Build for certain tasks. However, after migrating to .NET 8, this…
Change Installation Location for WPF Windows Application Packaging Project
We have uploaded our WPF app to windows store using Windows Application Packaging project. Is it possible to change the Installation location of the app from "Windows Apps" folder to any other location? Settings → Apps & Features ->…
Unwanted Space and Margins are surrounding the control in designer when Integrating WPF User-Control into Form using ElementHost
When integrating the WPF user-control (For Example: The UserControl contains the button) into a form using ElementHost, there are unwanted spaces and margins surrounding the control in the designer. It works fine in runtime; reported issue is reproduced…
How to include extra files in Visual Studio Publish for WPF Application?
I have my .net 5 WPF application setup to publish with these settings below. My application is a PRISM (MVVM framework) application and uses a modular structure. The module projects are not directly referenced by the main application project.…
Compatibility of .NET Standard 2.0 library that uses StoreAPI and WPF .NET 8.0?
I am working with a .NET Standard 2.0 Library that we wrote and use both in a WPF + .NET Framework 4.8 windows application and in a UWP windows application. This .NET Standard 2.0 library has references to Microsoft.Windows.SDK.Contracts version…
Numbers are not displayed properly when using Arabic culture with Right-to-Left (RTL) flow direction in WPF.
When using a textbox in Arabic culture with RTL, numbers are displayed in Arabic numerals. However, I want them to be displayed in standard numerals only. FlowDirection="LeftToRight": FlowDirection="RightToLeft": Code…