Assistance with Formatting and Parsing Milliseconds in Visual Studio
I’m experiencing issues with a string called "Milliseconds" in my application. When the "NumberFormatter returns its correct value it doesn't want to use this value and keeps the string it already has. The strings Seconds, Minutes and…
How can i extract an existing windows PE iso file add some files and make it a bootable iso again?
Hi, How can i extract an existing windows PE iso file , add some files and make it a bootable iso again? Your quick answer will be appreciated. Thanks,
how show content of only top elements in webview2 control in C# WPF application
On expanding combo box control in webview2 control, items of combo control get overlapped with control underneath i.e. combo Box items are not completely visible it (as shown in attached pic) I have tried to use opacity property but no luck. This should…
C# Program can't find XAML page in DLL
I have a program with a window declared as StartWnd (in the main assembly) derived from a class, WzdBase in a DLL which in turn is derived from System.Windows.Window. StartWnd doesn't provide its own XAML page. Rather that's in the DLL and provided by…
How to design a login page with fully responsive page as like as Web page (Using Blend or VS 2023)
I need to build a pages for WPF app using XAML in such way that each page should be responsive as like as in the browser web pages(Microsoft Blend or Visual Studio 2022). For an example login page, sign up page or any other pages for a WPF app. …
How to Print a PDF File in C# WPF
Hello everyone , I have a PDF file with several pages and I need to print it using C# and WPF technology. Can someone provide some guidance on how to achieve this and customize the settings, such as page size, orientation, and margin? Thank you.
set property command in style for HierarchicalDataTemplate under Menu Control not work
Dear all, I am developing a menu feature, so I used the following code to set a Command for my menuitem. but it also not work. I don't know why it didn't work. <Window x:Class="Easy.Start.MainWindow" …
The printer settings doesn't affected in the Kyocera TASKalfa 2554ci KX printer's output using `PrintDocument`
Hi team, While printing the image using the System.Drawing.Printing.PrintDocument with printer settings, the color changes was not reflected in this printer(Kyocera TASKalfa 2554ci KX) and it works fine in other printers. Eg., If we set the color of the…
How to get SelectedText from other applications?
I'm looking for a way to get SelectedText from ForegroundWindow on WPF .NET. What I want to get is the selected text within another application. I'm trying to search, but I can't find the technique I'm looking for, only how to get SelectedText in…
How to align a WPF window to a child of a second window?
So I've been trying to get a System.Windows.Window to be aligned with a control in a second Window. In the image, the magnifying glass is the control I want to align to. There's padding around the icon. The dark gray box with the +- buttons is the…
What is the equivalent package for 'Microsoft.Expression.Effects' in .NET 8?
Hi, I am currently in the process of upgrading an existing WPF application from .NET Framework 4.8 to .NET 8. One of the critical components of our application relies heavily on the "Microsoft.Expression.Effects" library for various graphical…
Difference between dispatcher in Main window and dispatcher associated with a new user control xaml attached a child to a component in main windows?
Hi I have some doubts regarding the dispatchers . I knows that our Application runs on thread and each thread has a dispatcher associated to it which maintains the queue. Now i have 1 dispatcher associated to our application. Let's suppose i have…
How to dynamically enable a button in WPF Forms with C#?
Hi, I am new to WPF but not to C#. I am working on a application where I have several buttons and I need to change the state of the buttons based on certain conditions. For instance, I have this "Add User" button which will be enabled only if…
How to set the default fontfamily manually for WPF application?
I am doing MVVM FontFamily binding for my WPF application, which user can choose FontFamily and set for the application. When my application runs the first time, the selection FontFamily is null. I have no idea how to set the WPF application to default…
How to load *.html and corresponding *.js files and css from folder in WebView2 control in C# WPF application
Hi, I have set of *.html files (a.html , b.html , c.html), *.js files (say 1a.js , 2b.js, 3b.js) and one css file in local folder in my windows machine, I need to start loading these files in webview2 control (in wpf .net framework application) starting…
how to force wpf fullscreen and disable user back to desktop?
I am working on a .net 8 WPF program which works like a POS(Point of sales)on customer's Windows 10 device. My question is how to force WPF window into fullscreen and disable user going back to desktop or other application (by shotcut, WinKey, taskmgr…
C# Printing problem with system.Drawing.Printing from #web API
Hello everyone, I have a situation to print PDF document as a batch from Web API. And I have used System.Drawing.Printing Library to print them. I have noticed the ‘Caution’ mentioned on Microsoft site…
How to trigger SelectionChanged event when ComboBox selected Index is same not necessarily changed in WPF C#?
Hi there, I have a simple WPF application where a different window will open if I select the last item of a Combo box. my code is working successfully but there some issue on my code. I want some more functionality. Suppose, I select the last item, A…
BindingList Filtering problem
Hallo All, While searching for a method to filter bindinglist of objects, i came accross the following sample code provided by microsoft. When testing it i experienced two issues. https://www.microsoft.com/en-us/download/details.aspx?id=17914 After…
Mysterious XAML “The name "X" does not exist in the namespace” error won't go away
I'm working on a XAML/C# project. I have a custom abstract class derived from `System.Windows.Controls.UserControl`: `PageBase`. Visual Studio 2022 keeps telling me it can't find `PageBase` in the namespace. The…