764 questions with XAML-related tags

Sort by: Updated
2 answers

WPF/XAML Add Item not working in C# Library Shared Project - VS 2022 V17.6.3

I am working on a .net 4.8 c# library project and I am using a Shared Project within it to help with versioning. When I attempt to add a WPF User Control under the shared project, it is not an available template. If I create it under one of the other…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 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,671 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.
764 questions
asked 2023-06-16T19:15:45.87+00:00
Sean Page 0 Reputation points
edited an answer 2024-03-17T02:14:10.1633333+00:00
Sean Page 0 Reputation points
3 answers One of the answers was accepted by the question author.

Windows Presentation Foundation (WPF) end of life

Hi All, I would like to know if anyone has any information on future roadmap for WPF. Is there any date for microsoft retiring WPF and removing future support? Thanks in advance Narayanan

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,671 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.
764 questions
asked 2022-12-19T17:50:51.293+00:00
Narayanan Subramanian (Nara) 26 Reputation points
edited a comment 2024-03-13T19:02:54.3933333+00:00
Jan Bensch 0 Reputation points
1 answer

NET MAUI - MediaElement - Not playing Audio Files stored on Google Drive

Hi I am using MediaElement to play Audio Files (.mp4) that are stored on my Google Drive,. But this is failing with error: [0:] MediaManager: Error: Error codename: ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED, Error message: Source error The following is a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 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,247 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.
764 questions
asked 2023-03-19T20:01:32.4066667+00:00
Riffy 276 Reputation points
commented 2024-03-12T21:30:03.59+00:00
Marian Adrian Grigore Grigore 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to use TextBlock focus to allow Screen reader / Narrator application reads the content

We are using custom TextBlock control in our app to display the descriptions to our users. Using Keyboard 'tab', the focus is not received, and the screen reader / Narrator application does not read the content. Are there any solutions to address this…

Universal Windows Platform (UWP)
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,247 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.
764 questions
asked 2024-03-06T13:16:03.9066667+00:00
Arunachalam, Senthil (External) 20 Reputation points
accepted 2024-03-11T09:31:06.3466667+00:00
Arunachalam, Senthil (External) 20 Reputation points
0 answers

TreeViewDragItemsCompletedEventArgs.NewParentItem null

Hi, I added an event handler for the TreeView.DragItemsCompleted event, and the eventargs' NewParentItem is always received as null. The item was dragged within the tree onto another node in the tree.

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.
764 questions
asked 2024-03-07T12:27:06.5033333+00:00
Shimmy Weitzhandler 246 Reputation points
1 answer

How to access or share resource dictionary between MAUI application and library

I have a ContentPage in a MAUI library which is referring to a color defined in the resources of the App.xaml which is in the main MAUI project. ContentPage in Library uses: BackgroundColor="{StaticResource White2}" App.xaml in the MAUI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 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,247 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.
764 questions
asked 2024-03-06T06:16:00.61+00:00
Anil Joseph 0 Reputation points
commented 2024-03-07T06:11:05.2066667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,651 Reputation points Microsoft Vendor
0 answers

Converting the PDF to a bitmap image corrupted the text content of the PDF.

I have a PDF document and using the below code logic, I am trying to convert the PDF page to an image. After converting the image, the text content in the PDF displayed as corrupted.  PQ-376500-STR-FDN-KZV-00011-001.pdf |Stream PdfStream =…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,828 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 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,247 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.
764 questions
asked 2024-03-04T19:42:32.9566667+00:00
Vikram Devaraj 0 Reputation points
commented 2024-03-05T02:47:00.89+00:00
KOZ6.0 4,735 Reputation points
0 answers

PrintTaskOptions throws Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Hi Team, We are trying to invoke a print preview from the stream of PDF documents. While invoking the print preview we are receiving Catastrophic failure from the PrintTaskOptions while creating print preview pages. We have tried the following methods…

Universal Windows Platform (UWP)
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.
764 questions
asked 2024-02-15T13:13:31.89+00:00
ManojKumar 0 Reputation points
edited a comment 2024-03-04T02:56:56.59+00:00
Roy Li - MSFT 31,826 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,671 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.
725 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.
764 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
3 answers

Can i run .NET 6.0 WPF app on Linux ?

i am developing a WPF application using the last .NET 6.0 version and VS22 which is declared as cross-platform so can I run the same WPF app developed on .NET 6.0 and VS22 on Linux UBUNTO 20.4 ? i saw only example of running Console app ?

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.
764 questions
asked 2022-08-01T13:34:20.82+00:00
Rasem Fadela 1 Reputation point
answered 2024-02-25T14:34:13.5266667+00:00
MikeCodesDotNET 0 Reputation points
2 answers

How to make narrator do not repeat the sentence when off/on content is set at toggle switch in UWP?

I am currently implementing a custom ToggleSwitch in UWP based on Microsoft's template. However, I've encountered a peculiar bug related to the narrator behavior, which seems to be resolved in WinUI 3 but persists in UWP (WinUI 2). I'm seeking assistance…

Universal Windows Platform (UWP)
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.
764 questions
asked 2024-02-06T19:34:27.0933333+00:00
Henrique Andrade Mariz 10 Reputation points
commented 2024-02-22T03:32:22.13+00:00
Junjie Zhu - MSFT 14,751 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

WinUI - Event to Check if High Contrast was chosen

I have a WinUI application and I need to check if the user change the OS theme to High Contrast. I got this error when signed this event to identify if HighContrast was set. It is the same event to UWP, but in WinUI this error happens.

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.
725 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,247 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.
764 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,166 questions
asked 2024-02-19T19:10:24.79+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
commented 2024-02-20T19:58:28.58+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
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,375 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,671 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,247 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.
764 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 38,251 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Xaml and column format in CollectionView

Hi Friends, I have this CollectionView below where my columns are not left aligned properly. How do I clean this up so that my labels in the columns are aligned correctly. Thanks ! Screenshot 2024-02-12 104906.png …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 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,247 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.
764 questions
asked 2024-02-12T16:51:53.02+00:00
Ronald Rex 1,666 Reputation points
accepted 2024-02-14T04:28:01.8666667+00:00
Ronald Rex 1,666 Reputation points
1 answer One of the answers was accepted by the question author.

problem with Custom ComboBox not raising notification changes during SelectedItem change

Hi, in my wpf C# .net 8 application i have a custom Control composed of a Label and ComboBox, the problem i am experiencing is that the Custom Control's ComboBox doesn't raise the SelectedItem change in the ViewModel, then i decided to test it with a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 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,671 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,247 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.
764 questions
asked 2024-02-11T12:31:17.0866667+00:00
Mesh Ka 345 Reputation points
commented 2024-02-11T18:00:13.8333333+00:00
Mesh Ka 345 Reputation points
0 answers

I want to turn on the PC from sleep mode on windows 10/11 programmatically in WPF (.net framework) C# application. How to achieve it ?

I want to perform windows sleep turn on and then wake up the PC after some time say 2 days later. I have two options :- Either programmatically sleep the pc and wake it up later automatically(but it requires manual entering of password to pc after…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 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,671 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,247 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.
764 questions
asked 2024-02-01T07:10:15.0166667+00:00
Vishal2 Bansal 85 Reputation points
edited a comment 2024-02-08T16:56:58.9766667+00:00
Heiko 1,211 Reputation points
2 answers One of the answers was accepted by the question author.

How to bind a attached property in MAUI(XAML)?

A simple label <Label x:Name="llll" FontSize="16" extensions:CommandParameterHelper.Parameter="content" Text="{Binding…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 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,247 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.
764 questions
asked 2024-01-19T10:55:13.21+00:00
尼龟 杰 150 Reputation points
accepted 2024-02-08T13:21:51.13+00:00
尼龟 杰 150 Reputation points
1 answer One of the answers was accepted by the question author.

WPF/XAML Style/Template Properties Memory Usages

Hello! I wonder if without border properties 'BorderThickness & BorderBrush' of a Control Style (ie Button) can help the overall performance when that control is used in large quantities through a list/treeview? Thanks.

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,671 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.
764 questions
asked 2024-01-29T20:52:37.63+00:00
Francis Provencher-Leduc 40 Reputation points
commented 2024-02-05T21:53:20.28+00:00
Francis Provencher-Leduc 40 Reputation points
2 answers

How can i filter a ComboBox's dropdown in a datagridcolumn based on the selection of the previous cell?

I have 3 ComboBoxes in a DevExpress Datagrid Columns namely; Country, Provinces Districts respectively. The Country Column has a dropdown that lists all of the Countries in the World, the Province Dropdown has all of the Provinces in all the Countries,…

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,671 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,247 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.
764 questions
asked 2024-01-31T05:10:17.2666667+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-02-05T01:57:07.21+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

WPF Re-Usable Datagrid with Pre-Loaded Data inside its VieModel

I have a Project in WPF C# .NET 8 that gets data from sql server and display a StudentName, a DataGrid that Contains places where that student is interested in called PlacesOfInterest. In the PlacesOfInterest datagrid, there are three Column ComboBoxes…

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,671 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,247 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.
764 questions
asked 2024-01-27T07:54:40.41+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-01-31T11:05:59.22+00:00
Mesh Ka 345 Reputation points