781 questions with XAML-related tags

Sort by: Updated
1 answer

Customizing the appearance of a Persian DatePicker (JalaliDatePickerControl)

I have a Persian DatePicker that works properly, and I only want to add to it some public properties to customize its appearance. What I'd want to add is as follows: Background BorderBrush CornerRadius I want to be able to access these three…

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,705 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,561 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.
781 questions
asked 2023-12-22T17:29:07.2666667+00:00
Reza Jaferi 331 Reputation points
commented 2023-12-23T23:02:41.6833333+00:00
gekka 7,911 Reputation points MVP
3 answers

How can i Create a three in one TextBox in WPF C# that Shows a FullName?

How can i Create a TextBox in WPF C# that Shows a FullName when not Clicked and when Clicked Shows 3 Textboxes inside the FullName TextBox that Displays FirstName, SecondName, LastName respectively? Like This One: الاسم - is a Hint meaning…

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,705 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,561 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.
781 questions
asked 2023-12-07T09:46:21.64+00:00
Mesh Ka 345 Reputation points
edited a comment 2023-12-19T12:21:08.23+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
1 answer

how can i add a 'shell level' control?(customizing tabbar)

like the gif, no matter how i toggle page , the 'shell level' control always keep the same.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,135 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.
781 questions
asked 2023-12-16T09:50:06.9966667+00:00
尼龟 杰 150 Reputation points
answered 2023-12-19T10:00:51.59+00:00
尼龟 杰 150 Reputation points
1 answer

How can i implement Data Binding Properly for this customTextBox in WPF using C#?

I created a TextBox that displays the full name (FirstName, MiddleName, LastName) of a customer in my WPF C# application, but splits it into individual textboxes when the FullName TextBox gains keyboard focus. The implementation I tried was successful…

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,705 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,561 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.
781 questions
asked 2023-12-08T11:52:12.7866667+00:00
Jin Ka 26 Reputation points
commented 2023-12-13T09:52:42.0366667+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
0 answers

How do I get a drawing context from a Microsoft::UI::Xaml::control::panel the draw using a 3d rendering api like opengl or vulkan?

How do I get a drawing context from a Microsoft::UI::Xaml::control::panel the draw using a 3d rendering api like opengl or vulkan

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,994 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.
781 questions
asked 2023-12-07T03:21:17.7533333+00:00
Vishal Oza 0 Reputation points
edited the question 2023-12-07T05:31:16.29+00:00
Anna Xiu-MSFT 27,556 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

In WPF C#, How can i make a Custom TextBox that has label that acts like 'Hint' in materialdesginfloatinghintTextBox?

Hi Everybody, I wanted to Create a Custom Control in WPF C# that is Composed of a MaterialDesignFloatingHintTextBox which 'IsFloating' property is set to 'False' and a Label above the textbox that behaves like a Floating Hint, for the label i wanted 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,705 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,561 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.
781 questions
asked 2023-12-05T11:37:07.24+00:00
Mesh Ka 345 Reputation points
edited a comment 2023-12-06T14:35:39.1233333+00:00
Mesh Ka 345 Reputation points
1 answer

Bind View Model Property To User Control Dependency Property

Hello Guys! I am fairly new to the WPF eco system, but i already made some functioning dependency properties inside user controls, which can be bound successfully, and which updates, when the bound property inside the view model changes. For now i just…

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,705 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,814 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,561 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.
781 questions
asked 2023-11-29T13:43:49.99+00:00
Rauter Martin 0 Reputation points
edited an answer 2023-12-05T05:34:15.1+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
0 answers

C# WPF DataGrid column header style error Cannot find source: RelativeSource FindAncestor

I'm using C# WPF .NET Core 6 also Material Design Theme nuget, I have problem with DataGrid's Column Header Style I have Set a Style for Column Headers of my DataGrid App.xaml : <Application.Resources> <ResourceDictionary> …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 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,561 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.
781 questions
asked 2023-11-07T02:04:56.93+00:00
Mojtaba_Hakim 281 Reputation points
edited the question 2023-12-01T08:57:38.94+00:00
Anna Xiu-MSFT 27,556 Reputation points Microsoft Vendor
1 answer

CrispImage draws empty area when using VS image service and catalog

I wanted to use the MS Visual Studio Image library for my project and do it in the recommended way using the image service. Therefore I followed the cook book on…

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,561 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.
781 questions
asked 2022-12-19T21:12:07.953+00:00
An di 1 Reputation point
answered 2023-11-28T11:14:33.2266667+00:00
Soft Works 0 Reputation points
0 answers

I cannot get data binding to work on WinUI 3 ListView any more.

Yesterday after noon I had this really nice ListView of all the Segoe Fluent Icons. That was a great feat in it's self since the FontIcon cannot bind the text to a Text Glyph code. But once figured out is was great. Woked for quiet a while binding…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 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.
743 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.
781 questions
asked 2023-11-21T20:41:37.3933333+00:00
Mike Conley 0 Reputation points
commented 2023-11-22T06:33:36.45+00:00
Xiaopo Yang - MSFT 12,151 Reputation points Microsoft Vendor
0 answers

.net maui bug visualState on CollectionView

Hello, In my Maui Android mobile application, I have a collectionView that contains ItemTemplates. Each ItemTemplate has a state. I've defined a visualState for the Disabled state on the ItemTemplates. When it's in a certain state, it must be Disabled…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,135 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,561 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.
781 questions
asked 2023-11-17T14:57:12.7133333+00:00
Antoine 0 Reputation points
commented 2023-11-20T04:14:19.5866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,441 Reputation points Microsoft Vendor
0 answers

What is criteria to UWP ScrollBars auto-hide when no interactions? Because sometimes, the scroll bar doesn't hide anymore

Hello! Sometimes, the scroll bars inside ScrollViewer compoent doesn't hide anymore. Some cases, the scroll bars auto-hide correctly, but there are some mouse interactions that scroll bars doesn't auto-hide. It's seems a little bug. Please, can anyone…

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.
781 questions
asked 2023-11-03T14:04:10.6566667+00:00
LeonardodaCunhaMeloSantos-3381 0 Reputation points
commented 2023-11-15T06:34:40.5433333+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
3 answers

Visual Studio 2022 Teams Code Review Error on xaml files

On one laptop, in Visual Studio 2022 Teams Code Review (source control is on Azure), when clicking on a .xaml file, the error "Empty path name is not legal" pops up. This only happens when reviewing .xaml files and only on one machine. Any…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,474 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.
781 questions
asked 2023-10-02T14:02:36.65+00:00
TCH 26 Reputation points
answered 2023-11-13T17:18:26.7166667+00:00
TCH 26 Reputation points
0 answers

How to Bind columns in Datagrid

I want to bind a column dynamically into the datagrid but datagrid does not allow this. I can only add static columns as I share below. <DataGrid AutoGenerateColumns="False" CanUserAddRows="False" …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 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,705 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.
781 questions
asked 2023-11-08T13:28:56.1666667+00:00
Bircan, Burakhan 0 Reputation points
commented 2023-11-09T09:42:25.8933333+00:00
Jiale Xue - MSFT 42,061 Reputation points Microsoft Vendor
0 answers

How to achieve ink replay without losing the original properties of the ink?

I'm trying to implement ink replay in my application, and I'm using the code from this sample application https://github.com/microsoft/Windows-universal-samples/releases/download/MicrosoftDocs-Samples/SimpleInk.zip, and the key content is as follows.…

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,561 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.
781 questions
asked 2023-11-05T15:18:56.97+00:00
鲤鱼 秀 65 Reputation points
commented 2023-11-06T12:38:05.8033333+00:00
鲤鱼 秀 65 Reputation points
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,561 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.
781 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,135 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,561 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.
781 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.
781 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,561 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.
781 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 71 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,565 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,561 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.
781 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