760 questions with XAML-related tags

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

How to add keyboard shortcut of OEM keys in Keyboard Accelerators in WinUI 3, XAML

Hi. I am creating an app in WinUI 3, C# Xaml. In the app I have a button which has the "+" symbol. The Keyboard shortcut for the button is only showing the numeric pad "+" key. How do I add a shortcut of the shift key and the OEM plus…

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.
722 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,411 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,198 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.
760 questions
asked 2024-01-08T13:14:13.2866667+00:00
Hemanth B 886 Reputation points
edited the question 2024-01-16T03:31:30.31+00:00
Roy Li - MSFT 31,551 Reputation points Microsoft Vendor
0 answers

Navigation Problem In Xamarin Forms

I am using Xamarin Forms in Visual Studio Community 2022 version 17.7.5 I have many screen in my app , After splash there are onboarding screen and then dashboard screen , in dashboard screen there are two option one is signup and second is login.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,290 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.
760 questions
asked 2024-01-09T05:56:28.9+00:00
Md Mosabbir Alam 0 Reputation points
commented 2024-01-16T02:40:39.9233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,021 Reputation points Microsoft Vendor
3 answers

Filtering a ComboBox in a DataGrid based on another combobox in the datagrid in WPF C#?

In my Example Here i have a 3 ComboBoxes in a Datagrid displayoing Countries, Provinces and Districts respectively.How can i Filter the Provinces by Countries and Districts by Provinces in such a way that when the user selects a country he only gets 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,667 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,198 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.
760 questions
asked 2024-01-07T16:23:22.5066667+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-01-14T10:08:24.35+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers

Window shrinking background effect

Hello, In windows 11 when you try to move a window using a pen/stylus it will shrink a little bit and show a background on the sides (of the actual size of the window), when you release it it will return to normal. We have a WPF project made a…

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.
760 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,097 questions
asked 2022-09-15T09:31:18.28+00:00
Jorge Pérez Riebeling 6 Reputation points
commented 2024-01-08T09:20:08.5533333+00:00
Mike TMHK 0 Reputation points
1 answer

How to load page like frame in WPF?

I wanna know if there any control can show a page,when i set frame‘s content as a page,it only show its name,but in wpf the frame is work directly.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,839 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.
760 questions
asked 2023-12-22T02:01:23.3833333+00:00
尼龟 杰 150 Reputation points
answered 2024-01-08T08:59:07.0566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,021 Reputation points Microsoft Vendor
1 answer

MAUI : Dark mode is hiding visual element in IOS

On IOS whenever I am changing system, Light mode to Dark mode, and visit to my maui application , some visual elements are getting dark due to which some labels and other visuals are also hiding. see below attachments for the reference. download.png…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,839 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,198 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.
760 questions
asked 2024-01-03T09:50:23.45+00:00
Pratap Singh, Ayush 20 Reputation points
commented 2024-01-08T07:56:06.1+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,841 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

I want to display an Action Sheet from the ViewModel

I am trying to display an action sheet from the viewmodel when the user taps on an Item in the ListView using commanding. Currently I have this in my Xaml. But I get a compiler error message stating that Event ItemTapped can only be bound to properties…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,839 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,198 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.
760 questions
asked 2024-01-04T15:48:51.6366667+00:00
Ronald Rex 1,666 Reputation points
accepted 2024-01-05T21:24:49.7933333+00:00
Ronald Rex 1,666 Reputation points
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,667 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,198 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.
760 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,231 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.
2,839 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.
760 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.
2,839 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.
760 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.) 68,016 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.
760 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,667 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,198 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.
760 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 38,026 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.
2,839 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.
760 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.) 35,021 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,667 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,641 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,198 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.
760 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,231 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,667 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,198 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.
760 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,342 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,667 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.
760 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 38,026 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,667 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,198 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.
760 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 6,436 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,667 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,198 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.
760 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,231 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.
2,839 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.
760 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,667 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,198 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.
760 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 38,026 Reputation points Microsoft Vendor