2,676 questions with Windows Presentation Foundation tags

Sort by: Updated
0 answers

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,…

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,676 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,621 questions
asked 2024-03-01T08:49:05.19+00:00
Kratochvíl Lukáš 0 Reputation points
commented 2024-03-01T14:17:42.61+00:00
Kratochvíl Lukáš 0 Reputation points
0 answers

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?

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,676 questions
asked 2024-02-29T12:01:34.83+00:00
Dieter Oeschay 0 Reputation points
edited a comment 2024-03-01T03:10:07.0133333+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

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

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,676 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,578 questions
asked 2024-02-27T15:02:31.81+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2024-02-29T17:49:20.4133333+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
0 answers

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…

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,676 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,276 questions
asked 2024-02-12T16:40:02.2933333+00:00
Ben Steele 0 Reputation points
edited the question 2024-02-29T01:09:35.6933333+00:00
Roy Li - MSFT 32,051 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

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,676 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
727 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.
766 questions
asked 2022-03-04T08:03:30.063+00:00
Andreas Mazatis 131 Reputation points
edited a comment 2024-02-28T21:10:12.1066667+00:00
Enrique Ballarin 0 Reputation points
1 answer

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…

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,676 questions
asked 2024-02-26T21:00:49.8033333+00:00
Shahrier Erfan Harun 0 Reputation points
edited the question 2024-02-28T05:14:04.6466667+00:00
PRADEEPCHEEKATLA-MSFT 77,751 Reputation points Microsoft Employee
0 answers

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…

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,676 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,276 questions
asked 2024-02-22T17:59:49.4466667+00:00
Tayyab hussain 0 Reputation points
commented 2024-02-28T01:52:11.32+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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",…

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,676 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,276 questions
asked 2024-02-26T01:35:43.9066667+00:00
T9 20 Reputation points
edited a comment 2024-02-27T03:20:54.2666667+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

how to create a display form in c#

how to create an interactive form 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,676 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,276 questions
asked 2024-02-09T16:37:35.9566667+00:00
Len G 0 Reputation points
commented 2024-02-27T02:31:00.15+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
2 answers

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…

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,676 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,578 questions
asked 2024-02-11T23:35:24.8333333+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2024-02-27T02:30:05.47+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

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 : Инициализатор типа…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,834 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,676 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,621 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
asked 2024-02-25T19:29:17.4566667+00:00
_cnehle 0 Reputation points
edited an answer 2024-02-26T03:14:31.4533333+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
3 answers

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…

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,676 questions
asked 2020-03-27T09:51:44.673+00:00
Keerthana Kolandasamy 16 Reputation points
answered 2024-02-25T14:35:58.01+00:00
MikeCodesDotNET 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

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,676 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,276 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,537 questions
asked 2023-06-03T12:49:23.2366667+00:00
Heiko 1,211 Reputation points
edited a comment 2024-02-24T13:36:04.8833333+00:00
Heiko 1,211 Reputation points
0 answers

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…

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,676 questions
asked 2024-02-16T02:14:03.67+00:00
rakesh kumar 0 Reputation points
edited a comment 2024-02-21T01:40:18.08+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 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,676 questions
asked 2024-02-02T20:36:18.67+00:00
VFarkas 20 Reputation points
accepted 2024-02-20T17:49:52.52+00:00
VFarkas 20 Reputation points
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 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,676 questions
asked 2024-02-15T15:52:27.2433333+00:00
Detchenique, Arnaud 0 Reputation points
commented 2024-02-20T06:53:30.7566667+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 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,676 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,276 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.
766 questions
asked 2024-02-13T08:49:57.5066667+00:00
Mesh Ka 345 Reputation points
commented 2024-02-19T08:20:52.9633333+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

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…

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,676 questions
asked 2024-02-17T16:51:20.9066667+00:00
rakesh kumar 0 Reputation points
edited an answer 2024-02-19T03:28:46.5966667+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
2 answers

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!

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,676 questions
asked 2022-02-23T18:02:05.56+00:00
Sarah 186 Reputation points
commented 2024-02-14T02:59:39.09+00:00
jpride 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

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,676 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,621 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,756 questions
asked 2023-09-05T10:32:24.3166667+00:00
Harshal Mahale 50 Reputation points
commented 2024-02-12T12:37:57.1766667+00:00
Mohamed Sherif 0 Reputation points