2,635 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,635 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,440 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,635 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 26,276 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,635 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,506 questions
asked 2024-02-27T15:02:31.81+00:00
RogerSchlueter-7899 1,176 Reputation points
commented 2024-02-29T17:49:20.4133333+00:00
Peter Fleischer (former MVP) 19,056 Reputation points
0 answers

How to fix storyboard moving tile within column

In working in visual studios storyboard- I am unable to move a tile within a column- but I can move it across different columns. If I wanted to move a tile up in the column- it is not allowing me. It appears to move when I drag it but then goes back 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,635 questions
asked 2024-02-28T12:44:45.3133333+00:00
Michelle Wilcox 0 Reputation points
edited a comment 2024-02-29T03:42:21.9233333+00:00
Hui Liu-MSFT 26,276 Reputation points Microsoft Vendor
1 answer

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…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
245 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,635 questions
asked 2024-02-19T03:22:08.82+00:00
Yuli Aria Winata 0 Reputation points
edited a comment 2024-02-29T03:21:17.61+00:00
Yuli Aria Winata 0 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,635 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.
9,981 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 31,481 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,635 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.
698 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.
744 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,635 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 73,886 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,635 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.
9,981 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 26,276 Reputation points Microsoft Vendor
2 answers

How do I implement a "mouse double click" for a ListBox?

This xaml code attempts to implement a "mouse double click" for a ListBox "list of cities". xaml <ListBox x:Name="gLBxCities" Margin="10,0,10,10" Foreground="#0000FF" > xaml.cs private The…

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,635 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.
9,981 questions
asked 2024-02-25T13:16:24.31+00:00
bhs67 96 Reputation points
commented 2024-02-28T01:50:51.72+00:00
Hui Liu-MSFT 26,276 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,635 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.
9,981 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 26,276 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,635 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.
9,981 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 26,276 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,635 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,506 questions
asked 2024-02-11T23:35:24.8333333+00:00
RogerSchlueter-7899 1,176 Reputation points
commented 2024-02-27T02:30:05.47+00:00
Hui Liu-MSFT 26,276 Reputation points Microsoft Vendor
4 answers

Displaying Files of Unknown Types Stored in SQL Server Using C# WPF

I am developing a C# WPF application using .NET 6 in Visual Studio 2022, with a SQL Server 2008 R2 database. My database contains a table GRADE_CUST_GRP with a column GCPS of type image, where files of various types are stored without any file extension…

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,635 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,023 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,313 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.
9,981 questions
asked 2024-02-25T12:17:45.5366667+00:00
Mojtaba_Hakim 281 Reputation points
answered 2024-02-26T22:59:45.59+00:00
Bruce (SqlWork.com) 52,826 Reputation points
2 answers

How to save all the updates in a datagrid (set of comboboxes) MVVM back to the database in WPF C#?

I have similar issue as @Mesh Ka working on the filtering between comboboxes. https://learn.microsoft.com/en-us/answers/questions/1481853/filtering-a-combobox-in-a-datagrid-based-on-anothe Thanks for the solution! The challenge I have is to save all the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,192 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,635 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,440 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.
9,981 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.
744 questions
asked 2024-02-22T18:34:30.8433333+00:00
Yvon 0 Reputation points
commented 2024-02-26T08:20:55.0633333+00:00
Hui Liu-MSFT 26,276 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,805 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,635 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,440 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.
320 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 26,276 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Fill and remove elements at any time, asyncronous mode.

Hello, I receive data as a string, packed in json format. I can receive the data at any time. I would like to work through the data step by step. At the same time, I may remove a row of data and then add new data. How can I avoid collisions and…

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,635 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.
9,981 questions
asked 2024-02-17T15:23:27.9866667+00:00
Markus Freitag 3,746 Reputation points
edited a comment 2024-02-25T17:07:01.2766667+00:00
Markus Freitag 3,746 Reputation points
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,635 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,635 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.
9,981 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,447 questions
asked 2023-06-03T12:49:23.2366667+00:00
Heiko 1,191 Reputation points
edited a comment 2024-02-24T13:36:04.8833333+00:00
Heiko 1,191 Reputation points
1 answer One of the answers was accepted by the question author.

UIAutomation throws AccessViolationException on Windows 11

Original post on stackoverflow: https://stackoverflow.com/questions/72872197/uiautomation-throws-accessviolationexception-on-windows-11 Also posting here as there might be more views, maybe from people at MSFT too. If it's considered duplicata,…

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,635 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.
9,981 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,645 questions
asked 2022-07-06T06:20:51.55+00:00
ygosteli 26 Reputation points
commented 2024-02-23T20:09:35.7566667+00:00
Marco Medrano 0 Reputation points