830 questions with XAML-related tags

Sort by: Updated
0 answers

How to Disable Scrolling in a Navigation View with WindowsAppSDK

I have a WindowsAppSDK app that uses a navigation view control for navigation. For one of the pages, scrolling should be disabled, allowing the page to shrink to fit within the navigation view's content pane. How can scrolling be disabled and the page…

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.
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.
11,238 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.
830 questions
asked 2025-01-17T22:59:10.8633333+00:00
jm6271 20 Reputation points
commented 2025-01-27T08:47:28.2166667+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
3 answers

How to know whether the snap applied in windows 11 windows. Is there any API.

Is there a method or any API to tell if snap is enabled or disabled in Windows 11? Please answer if there is any other way.

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,818 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.
11,238 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.
830 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,546 questions
asked 2022-04-26T04:51:23.56+00:00
visi venkat 1 Reputation point
commented 2025-01-25T13:41:37.2766667+00:00
Castorix31 86,506 Reputation points
1 answer One of the answers was accepted by the question author.

How to implement alternating row colors in a ListView using Windows App SDK

I have a Windows App SDK app that has a ListView, and I want the row colors to alternate. What is the best way to achieve this?

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.
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.
11,238 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.
830 questions
asked 2025-01-19T20:09:53.58+00:00
jm6271 20 Reputation points
accepted 2025-01-21T17:48:42.4266667+00:00
jm6271 20 Reputation points
1 answer One of the answers was accepted by the question author.

I run in a trouble. WPF, compiled XAML: on changed text handler run but not all controls initizlzed

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,818 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.
830 questions
asked 2025-01-19T05:49:16.4366667+00:00
Roma Golich 20 Reputation points
accepted 2025-01-20T17:06:21.8666667+00:00
Roma Golich 20 Reputation points
1 answer One of the answers was accepted by the question author.

Button appearing above page content for all pages on iOS tablet - .NET MAUI

Hi, I have a .NET 8 MAUI app that I'm developing for Android and iOS. I have an issue where all of my pages are showing a blank space at the top with a button, but it's only doing that on iOS when on a tablet. My iPhone doesn't show it and neither does…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
11,238 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.
830 questions
asked 2025-01-15T09:13:50.77+00:00
Ben 25 Reputation points
commented 2025-01-16T15:47:34.4166667+00:00
Ben 25 Reputation points
0 answers

unexpected behavior when navigating between pages in my Maui App using AppShell .

I'm using AppShell for navigation in my .NET MAUI application. However, sometimes when I click on a menu item, an unexpected new line appears at the top of my app. This line remains visible until I completely exit the application. What could be causing…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
830 questions
asked 2025-01-10T10:02:56.25+00:00
Graja Kaouthar 20 Reputation points
commented 2025-01-13T05:26:39.7733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 78,916 Reputation points Microsoft Vendor
1 answer

.NET MAUI RadioButtonGroup.SelectedValue does not work

I can't get RadioButtonGroup.SelectedValue to bind to a viewmodel property. I've read everything that you can google…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
830 questions
asked 2025-01-04T22:11:20.1466667+00:00
Crowcoder 50 Reputation points
answered 2025-01-05T14:12:33.8333333+00:00
Crowcoder 50 Reputation points
1 answer

Dialog box before launching of application in winui3 c++/winrt

I am working in winui3 c++/winrt and I need to show a dialog box just before the launch of my application The dialog box will say OK and Cancel on click of OK we launch the application and on cancel we exit. I tried a few approaches but it is giving…

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.
814 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 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.
830 questions
asked 2024-12-18T06:27:05.37+00:00
Vivek Rao 20 Reputation points
commented 2025-01-03T09:53:29.2666667+00:00
Vivek Rao 20 Reputation points
1 answer

Understanding AppShell.xaml's structure

I'm building my first .NET MAUI app and I sort of understand what's going on in AppShell.xaml, but not really. I'm guessing I don't have them "structured" properly for navigation to go back and forth between views. My app is fairly straight…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
830 questions
asked 2024-12-14T00:17:22.1766667+00:00
n0kx 1 Reputation point
commented 2024-12-20T05:31:33.96+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 47,686 Reputation points Microsoft Vendor
1 answer

An exception is given when trying to manipulate UI when the packageCatalogUninstalling event is triggered WinUI

Hello! I'm testing an application that uses PackageCatalog.Uninstalling event and i would like to change the UI when this event is triggered but when i try to do it an exception is given. I also tried with a dispatcher but received another error

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.
814 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.
830 questions
asked 2024-12-03T19:14:54.59+00:00
edited a comment 2024-12-19T12:07:06.4666667+00:00
Anderson Rodrigues Cavalcante 316 Reputation points
1 answer

After migrating to VB.NET Core 9.0 from 8.0, I am getting error messages on menu bindings

After migrating from version 8.0 to version 9.0, I am getting error messages related to the binding of menu items. I am working with Visual Studio 17.12.3 and .NET Core 9.0.101 on a Windows 11 (23H2) machine. Further down in the XAML code, I have the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
774 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,818 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,768 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.
830 questions
asked 2024-12-07T10:11:36.7266667+00:00
Mike van der Waard 0 Reputation points
commented 2024-12-16T01:03:26.5166667+00:00
Hongrui Yu-MSFT 4,200 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to get DataGrid object of TabControl.ContentTemplate

Dear all, I have a control using ContentTemplate and i would like to binding the Visibility properties with viewModel but that error 'Cannot find governing FrameworkElement or FrameworkContentElement for target element'. This is control in xaml: …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,067 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,818 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.
830 questions
asked 2024-12-11T05:02:59.11+00:00
Lê quang Thắng 20 Reputation points
accepted 2024-12-11T10:20:45.1733333+00:00
Lê quang Thắng 20 Reputation points
0 answers

Struggling to change the combobox mouseover effect on a dark background

Hi, hope someone can help, I tried to follow some answers here but I am not able to change the ugly default mouse over effect on my combobox. I want to keep the same style as before hovering with the mouse. I am really struggling with it. Below my…

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.
830 questions
asked 2024-12-04T10:27:55.9466667+00:00
Marcello Dichiera 0 Reputation points
1 answer

.NET MAUI QueryProperty: Data not passed to another page

I'm developing a drawing application using .NET MAUI and Firestore. On the HomePage, I display a list of existing drawings. When I select one, I want to navigate to the DrawPage and open the selected drawing for modification. However, the DrawingID…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,067 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
11,238 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.
830 questions
asked 2024-12-01T12:13:55.06+00:00
Szepesi Szilvia Vanda 0 Reputation points
commented 2024-12-04T00:29:36.6466667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 47,686 Reputation points Microsoft Vendor
0 answers

System.NullReferenceException: 'Object reference not set to an instance of an object.' when navigating to page in WinUI

I am working with a WinUI project which is built based on the MVVM Toolkit template. When I use NavigationService.NavigateTo(typeof(EmployeeViewModel).FullName!); to navigate to EmployeePage, the program crashes with the bug that…

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.
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.
11,238 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.
830 questions
asked 2024-11-23T09:39:11.4333333+00:00
LÊ CAO TUẤN VŨ 0 Reputation points
commented 2024-11-28T01:32:38.5666667+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
4 answers

Editor controls in grid don't resize correctly after grid and row compressed to zero width and expanded back

Editor controls in a 3x3 grid don't resize correctly after compressing one of the rows and columns to 0 width and height and expanding it back to normal size. The bug is only present on the windows platform using Editor controls. Resizing works correctly…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
830 questions
asked 2024-09-24T04:33:12.63+00:00
TazKing 85 Reputation points
answered 2024-11-24T08:26:16.2433333+00:00
TazKing 85 Reputation points
1 answer One of the answers was accepted by the question author.

Sometimes click something in The WebView2 Page will open a new Microsoft Edge Window,could we show it in the Webview2 replace open a new window?

With local file WebView2: var env = await CoreWebView2Environment.CreateAsync(WebViewRuntimeFolder, DataFolder, opt)); await webView.EnsureCoreWebView2Async(env); I want whatever you click in the WebView2,The requested showed in the WebView2 Element,…

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,818 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.
830 questions
asked 2021-10-27T02:51:14.067+00:00
GuoLearn 251 Reputation points
commented 2024-11-21T13:50:05.2633333+00:00
Rahul Khandelwal 0 Reputation points
1 answer

How to change tabbar style (font and size and ...)

i want change the style of tabbar menu item font and size and color how to do it ? AppShell <TabBar > <Tab Title="پروفایل" > <Tab.Icon> <FontImageSource FontFamily="MDReg"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,067 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,756 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
830 questions
asked 2024-11-14T05:09:08.0233333+00:00
Mahdi Elahi 31 Reputation points
answered 2024-11-21T08:59:23.61+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 47,686 Reputation points Microsoft Vendor
1 answer

Double tapping Editor control locks app when deployed to iOS

Double tapping the Editor locks the app when deployed to iOS. This occurs for both net 8 and 9. Entry control works well and does not lock up the app. I added Editor and Entry controls to the demo Maui app as below. Am I missing a setting? Any known…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 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.
830 questions
asked 2024-11-14T07:29:50.46+00:00
TazKing 85 Reputation points
answered 2024-11-21T08:20:58.96+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 34,951 Reputation points Microsoft Vendor
0 answers

How fix System.ArgumentNullException

L'erreur complet : System.ArgumentNullException HResult=0x80004003 Message=Value cannot be null. Arg_ParamName_Name Source=Microsoft.EntityFrameworkCore Arborescence des appels de procédure : à…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
774 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,067 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.
830 questions
asked 2024-10-28T16:59:54.3833333+00:00
Christian Nahbi 0 Reputation points
commented 2024-10-29T21:43:41.79+00:00
Christian Nahbi 0 Reputation points