786 questions with XAML-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

how to load data from sql database onto an rdlc report with a DataSet Already

i am having a usercontrol that loads my rdlc report in c# like this; DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("Subject1", typeof(int))); dt.Columns.Add(new DataColumn("Subject2",…

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,573 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.
786 questions
asked 2021-04-11T02:03:39.11+00:00
KwebenaAcquah-9104 306 Reputation points
answered 2023-11-03T18:40:32.93+00:00
Bruno Markman 0 Reputation points
1 answer

MAUI DisplayAlert() When User Closes Window : Getting Unhandled Exception

I want to show an ALERT/POPUP to the user to ask him/her before he closes the Application. This is what I am already doing : In App.xaml.cs Application.Current.MainPage.DisplayAlert this line throws unhandled exception, The Exception…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 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,573 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.
786 questions
asked 2022-08-11T15:32:25.757+00:00
Aftab Ali 1 Reputation point
commented 2023-10-25T22:40:22.9233333+00:00
axa88 0 Reputation points
1 answer

Set XAML ListBox MaxHeight to height of 10 rows

How can I set the height (MaxHeight) of a ListBox to the height of a specified number of rows, such as 10? Either in XAML or in code-behind. This is for WPF. It seems to be a very simple requirement and should be a common one but I cannot find anything…

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.
786 questions
asked 2023-10-24T01:37:51.26+00:00
Sam of Simple Samples 5,521 Reputation points
commented 2023-10-25T02:58:38.0033333+00:00
Sam of Simple Samples 5,521 Reputation points
1 answer

WPF The refrence is invalid or unsupported

Hi dears, I want to add System.Windows.Forms.dll to my project but it get an error The refrence is invalid or not supported. my project : WPF .net 6/C#/32bit I want to use WindowsFormsHost control <PropertyGroup> …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,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,573 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.
786 questions
asked 2022-12-17T02:29:41.16+00:00
hossein tavakoli 471 Reputation points
commented 2023-10-24T08:33:55.9333333+00:00
Shirase 76 Reputation points
7 answers One of the answers was accepted by the question author.

StaticResource inside MainWindow passing through a Datacontext inside an UserControl and this Datacontext passing through another UserControl

Could you clarify a question about StaticResource and hierarchy? I have MainWindow.xaml (Window) and inside it I call NewChart.xaml (UserControl) through the command <vm:NewChart DataContext="{StaticResource _instance}" /> . I would like…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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,573 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.
786 questions
asked 2023-08-07T17:40:32.9766667+00:00
Michell 45 Reputation points
edited an answer 2023-10-19T08:19:51.99+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how to make Image click through?

I wanna display an icon in a window. I want the whole window click through including icon so user can operate other application behind the window as if the window and the icon don't exist. So I create a transparent window and put an Image control on it.…

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,706 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.
786 questions
asked 2023-01-03T08:01:06.993+00:00
Vincent li 21 Reputation points
edited an answer 2023-10-19T07:46:22.17+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Problem with TabControl Template and Binding in WPF.

I would like to put image in TabControl header using binding, but below code doesn't work. I would like to know why, and how to do it? Thanks in advance :) 1、MainWindow.xaml <Window x:Class="WpfApp3.MainWindow" …

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,706 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.
786 questions
asked 2022-03-07T06:43:45.72+00:00
Sherry Shi 41 Reputation points
edited an answer 2023-10-19T07:36:40.6666667+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to preserve selection when dragging multiple items in WPF

Edit Updated the post to include more of the source code, please let me know if you have any issues, I could not copy and paste the code in so had to type it out on here so it's possible there is the odd mistake here or there. (e.g. the MouseState you…

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,706 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,573 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.
786 questions
asked 2023-07-17T13:23:07.18+00:00
Amelia Moseley 20 Reputation points
edited an answer 2023-10-19T07:07:50.51+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Project Can't Find Its Converters

My current project uses a number of converters for XAML binding. These converters live in a project directory called "Converters". At compile-time I get error messages for all the converters such as this one: The name…

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.
786 questions
asked 2022-07-31T00:31:37.25+00:00
RogerSchlueter-7899 1,236 Reputation points
edited an answer 2023-10-19T06:55:13.49+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how to save canvas c# wpf

i work a project in visual studio 2022 and i need to save canvas and parents as a file (not as an image) please help me because it's very important for me...

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.
786 questions
asked 2022-01-22T15:29:25.02+00:00
Zaug 306 Reputation points
edited a comment 2023-10-19T06:15:33.9+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer

XAML Designer, tab key inserts text

I am using Visual Studio Version 17.7.4. In the XAML Designer, when I press the tab key, some XAML is inserted. I am not sure where the XAML comes from but it is probably from a custom snippet. There is no selection dialog, the XAML is inserted without…

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,706 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,821 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.
786 questions
asked 2023-10-08T19:17:36.5566667+00:00
Sam of Simple Samples 5,521 Reputation points
commented 2023-10-12T07:39:59.1666667+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
0 answers

How can i Do Data Binding in Maui ?

Here below i had provided one of my Viewmodel, My problem is I am able to values of Properties Other than totalcount , when i debug it value of totalcount is assigning to TotalCount but i am not able to see value for it from ContentPage, but at the same…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 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,573 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.
786 questions
asked 2023-10-11T12:16:54.9966667+00:00
Muhammed Vaseem 0 Reputation points
edited a comment 2023-10-12T02:39:45.7133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,591 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Three material Design TextBoxes inside one MaterialDesignFloatingHintTexbox in WPF

I have a MaterialDesignFloatingHintTextBox which displays a "Date of Birth" hint to my users when it is empty. Here is what I want to implement: the TextBox to display three TextBoxes to the user when clicked in like this, so that my users…

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,706 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,821 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,573 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.
786 questions
asked 2023-10-02T08:44:28.02+00:00
Mesh Ka 345 Reputation points
commented 2023-10-06T11:11:03.93+00:00
Mesh Ka 345 Reputation points
0 answers

DataGridComboBoxColumn won't update for new Item to Display it in C# WPF

I'm using C# WPF .NET Core 6 with Visual Studio 2022, I have DataGrid in my window that Binds to an ObservleCollection XAML : <DataGrid x:Name="PGET_LST_SUB" AutoGenerateColumns="False" FlowDirection="RightToLeft"…

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,706 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,573 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.
786 questions
asked 2023-10-05T19:06:34.8333333+00:00
Mojtaba_Hakim 281 Reputation points
commented 2023-10-06T07:51:01.4133333+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to implement multiple InkCanvas with a ListView sharing an InkToolbar?

I urgently need to implement this feature in my program. If you can help me, I will be very grateful!

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,573 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.
786 questions
asked 2023-09-30T14:06:19.3533333+00:00
鲤鱼 秀 65 Reputation points
accepted 2023-10-05T15:08:24.3433333+00:00
鲤鱼 秀 65 Reputation points
1 answer One of the answers was accepted by the question author.

How to create popup window that display Product Details ?

Hi friends! I have a DataGrid that contains a list of product . when i click on a product i should open a popup windows that contains Product's details and i would modify the Price in it for example. I implement a GlobalUsing.cs such : global using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 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,573 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.
786 questions
asked 2023-10-02T14:07:46.96+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
accepted 2023-10-05T08:11:41.22+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
1 answer One of the answers was accepted by the question author.

WPF - Fields reloaded when change to high contrast

I have this page in WPF .NET 5.0. When I change from OS current theme (light or dark) to High Contrast or from High Contrast to Light or Dark, the page is reloaded and the fields on the page are cleaned. Is this a WPF limitation or a normal behavior…

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,573 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.
786 questions
asked 2023-09-29T11:49:04.27+00:00
Anderson Rodrigues Cavalcante 291 Reputation points
accepted 2023-10-02T13:12:58.5366667+00:00
Anderson Rodrigues Cavalcante 291 Reputation points
1 answer

Forward Binding i.e. reapply a binding

Is it possible to create an attached property containing a Binding/BindingBase & then apply it to a control i.e. forward a binding thru XAML. Example would be you can have global style that use attached properties & then local styles to set…

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,706 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,573 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.
786 questions
asked 2023-09-27T17:51:57.8433333+00:00
Lars Larsson 31 Reputation points
answered 2023-09-28T10:10:38.24+00:00
Lars Larsson 31 Reputation points
1 answer

Problem encountered while configuring the automatic provisioning profile for Xamarin iOS in Visual Studio 2023 in window 11

I've successfully generated a new API key for setting up my Apple account in Visual Studio Xamarin. I've added the new API key, which you can observe below. However, when I opt for 'Bundle signing' with Automatic provisioning, it encounters an error.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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,573 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.
786 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
467 questions
asked 2023-09-27T13:29:15.9166667+00:00
Sanjay Kumar Jha 151 Reputation points
edited an answer 2023-09-28T06:27:56.1233333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to bind Command in ContextMenuItem

Thanks to @Anonymous and @Anonymous ,now I am able to operate my TreeView and do Drag&Drop on it. Also I can ONLY display ContextMenu by right click on the first level of TreeViewItem, which is required. You can see the current situation in 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,706 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,573 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.
786 questions
asked 2023-09-25T10:08:05.2533333+00:00
BabyHai 61 Reputation points
edited an answer 2023-09-27T09:04:59.9966667+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor