WPF: Could not load file or assembly error in the designer but application runs with no problems
To try to solve another issue with the designer I've deleted bin and obj directories. Since then I'm facing this error while being in the designer: "The error message "Could not load file or assembly 'DesktopClient, Version=1.0.0.0,…
change paper tray lexmark printer in wpf c# program
Hello, how can I change the paper tray for a Lexmark XC9235 printer in a C# WPF application?
Why is my RelayCommand Parameter Not Available in the ViewModel
<ListBox DisplayMemberPath="Name" ItemsSource="{Binding Path=GeoElements}" SelectedValue="{Binding Path=RouteID}" SelectedValuePath="ElementID"> <i:Interaction.Triggers> …
Issues with BLE Gatt Services
Hi guys, We are using the BLE GATT services supplied by the Windows CSWinRT nuget package in a .net 6 WPF application. Two issues have raised their heads and I'm hoping someone could point me in the right direction. The main issue we have been facing…
WinUI - MessageDialog in App.xaml.cs does not work
Before the MainWindow is created and called, the programme should establish a connection to the database and read data. In case of an error, a message should be displayed and the programme closed without the main window appearing. I have tried various…
How to limit translation hearing in 10 seconds
I am using microsoft speech SDF in my WPF application for continues translation.. Everything is working fine but my app listens to the speaker until he gives a break or pause. I want to set a timer so that if there is no break in 10 seconds it will start…
Contents of WPF Web Browser control are overflowing the boundries of parent Data Grid Control
I am using Web Browser control in a WPF project. My development environment is Windows10 DontNet 6.0. HTML contents are coming nicely in Web Browser control. However, when I scroll down the data grid control, the contents in web browser are overflowing…
Why does my public string not change between windows in C# (.net 8) and WPF?
Hi, I am trying to make a note app, so I need to change a public string value between two windows but the string value does not persist across the windows. The strings that are not changing are in the 2nd .cs file, "string edit_File_Name",…
how to create a display form in c#
how to create an interactive form in c#
How to Avoid a RelayCommand Error
In a ViewModel for a wpf window I have the following command: Private ReadOnly Property _AddVehicle As New RelayCommand(AddressOf OnAddVehicle()) Public ReadOnly Property AddVehicle As RelayCommand Get Return _AddVehicle End Get End Property I am…
how to fix System.TypeInitializationException : Инициализатор типа "FlaUI.Core.Tools.SystemInfo" выдал исключение. ----> System.InvalidOperationException : Не удается загрузить данные имени счетчика, поскольку в реестре обнаружен недопустимый индекс "
In university we started to work with Windows Forms и WPF. For each work we're given a pre-work with all files and tests. But when I try to start test, they fall with the same Exception: System.TypeInitializationException : Инициализатор типа…
WPF in Linux
According to this blog(https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-1/), The .NET Core and .NET 5 (latest .NET platforms) will support WPF. But looks like the support is limited only to Windows OS. Is there any recommendation to…
How to get the real target of a shortcut?
I have a shortcut on the desktop, that opens Adobe Reader XI, in the following path: C:\Users\Heiko\Desktop\Adobe Reader XI.lnk In my app, I am trying to get the destinations of various shortcuts. However, with Adobe Reader XI, I only get an ico file as…
Signing clickonce using Sectigo SHA384 EV certificate give unknown publisher and smartscreen blocker
I am trying to sign the clickonce application using Sectigo Sha384 EV Certificate using SafeNet client. Steps I am following PLEASE NOTE CSP in SignTool is CSP in SafeNet client while CSP in Mage is KSP in SafeNet client. Mage was not signing…
How to change the grey default background of a combobox in wpf in xaml
Hi how can I change the grey default background color of a combobox? Of the selected Item not the dropdown list Any help?
Text alignement is too much center
Hello, Environnement: I'm coding in WPF in .Net Framework 472 and in .Net 6 (we have the some solution for both language) I have some issue with the Text component after a Font change. Now the Text is centered perfectly but that including the possibility…
How to use different Data Types in a Custom Control
I have a Custom NumericUpDown control in my WPF C# .NET 8 application that is working nicely, But now i want to update it so that it can use different Numbers DataTypes like int and decimal so that i can re-use my custom NumericUpDown control instead of…
How click on Application Manifest in clickonce checks if application is installed on a pc or not?
Hi I have a clickonce application installed. It was using sha1 signature algorithm. Certificate got expired and I decided to change it to a EV Sha384 certificate. I resigned my libraries and manifests using Sha256 signature algorithm. My application do…
How to Create Rounded Corners WPF Window?
How can i create rounded corners WPF Window using WindowStyle as in the picture below? @Anonymous Can you help? it's your window!
How to print rdlc in WPF application? please give steps. how to pass parameter with database and without database?
I want to learn rdlc for the WPF application I want to complete step by step process which starts from the namespace that is required. 1)i want print rdlc in wpf application. use rdlc with database or without database. 2)Generate QR code of rdlc report…