789 questions with XAML-related tags

Sort by: Updated
3 answers

How Can i add a "AddNew" button at the end of drop downs in a Custom ComboBox Control?

I have a custom control with a ComboBox. I want to add a button at the end of the drop-down list that says "AddNew," such as "AddNewStudent," which, when clicked, opens a form to register a new student. Since I expect to create many…

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,710 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,626 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.
789 questions
asked 2023-12-28T11:28:17.14+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-01-04T09:34:19.7566667+00:00
Peter Fleischer (former MVP) 19,316 Reputation points
1 answer One of the answers was accepted by the question author.

Picker used in Popup not inheriting color brushes

Hello, I'm styling my Pickers as described in one comment here: https://github.com/dotnet/maui/issues/13418 <maui:MauiWinUIApplication.Resources> <SolidColorBrush x:Key="ComboBoxItemForegroundPointerOver"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,206 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.
789 questions
asked 2024-01-02T17:56:52.34+00:00
Jorge Nuricumbo 60 Reputation points
commented 2024-01-03T09:19:56.3533333+00:00
Jorge Nuricumbo 60 Reputation points
1 answer One of the answers was accepted by the question author.

How can I create a custom Picker with grouped items?

I'm looking to create a custom Picker that can group items between 'Recently Used' and 'All Items,' as shown in the attached image. Are there any ideas or examples on how to implement this custom Picker? Thanks in advance.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,206 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.
789 questions
asked 2023-12-27T14:15:18.9833333+00:00
Jorge Nuricumbo 60 Reputation points
commented 2024-01-03T05:38:55.4233333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,931 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to claims admin permission in wpf for app store

The app needs admin permission to be launched properly. In app.manifest, set requireAdministrator. Feedback run errors after submission. The product crashes at launch with error message "The request is not supported." How should I…

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.
789 questions
asked 2022-11-17T10:48:57.683+00:00
振宁 梁 21 Reputation points
answered 2024-01-02T22:58:44.9233333+00:00
Blake Pell 0 Reputation points
1 answer

Converting UserControl and Code-Behind to Style and Dependency Property

How can I convert a customNumericUpDown created using a UserControl and Code-Behind to a ResourceDictionary and a C# class where all the DependencyProperties are defined? I want to copy and paste the ResourceDictionary into Themes.Generic.xaml. While I…

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,710 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,626 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.
789 questions
asked 2023-12-16T12:06:47.3133333+00:00
Jin Ka 26 Reputation points
commented 2023-12-29T09:45:58.66+00:00
Hui Liu-MSFT 47,336 Reputation points Microsoft Vendor
0 answers

How to smaller the page area in maui shell app?

How can I smaller the page area and add a control like the image?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,206 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.
789 questions
asked 2023-12-26T05:48:02.2666667+00:00
尼龟 杰 150 Reputation points
commented 2023-12-29T08:51:46.8866667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,906 Reputation points Microsoft Vendor
2 answers

Binding a CustomDateControl to Data Model in WPF C#

Hi, I created a CustomDateControl to Collect Partial Date from my Users by Collecting Year, Month and Date each on a separate textbox Inside a One TextBox Respectively. I know that it is not a good idea to Skip DateTime DataType usage for Dates, but My…

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,710 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.
13,318 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,626 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.
789 questions
asked 2023-12-27T05:44:04.3433333+00:00
Mesh Ka 345 Reputation points
answered 2023-12-28T19:57:52.46+00:00
Peter Fleischer (former MVP) 19,316 Reputation points
5 answers One of the answers was accepted by the question author.

How can I correctly bind a ComboBox in my custom Control to its dependency property in a WPF C# application?

I have a ComboBox in my custom Control, and I want to bind its "Text" and "Converter" properties to their dependency properties correctly so that I can reuse the custom Control. In some instances, I want to use ComboBoxItems as 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,710 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,626 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.
789 questions
asked 2023-12-19T11:27:52.59+00:00
Mesh Ka 345 Reputation points
accepted 2023-12-26T16:56:39.6566667+00:00
Mesh Ka 345 Reputation points
2 answers

Converting XAML file to .dll file

I want to build each XAML file in my project as a .dll.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,623 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,710 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.
789 questions
asked 2023-12-25T13:39:04.79+00:00
Bircan, Burakhan 0 Reputation points
edited an answer 2023-12-26T03:19:27.4333333+00:00
Hui Liu-MSFT 47,336 Reputation points Microsoft Vendor
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,710 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,626 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.
789 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 8,061 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,710 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,626 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.
789 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,316 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,206 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.
789 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,710 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,626 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.
789 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,336 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.
5,070 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.
789 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,811 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,710 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,626 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.
789 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,710 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,870 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,626 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.
789 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,316 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,623 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,626 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.
789 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,811 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,626 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.
789 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,623 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.
749 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.
789 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,226 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,206 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,626 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.
789 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,931 Reputation points Microsoft Vendor