Microsoft Q&A

.NET MAUI

902 questions

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.

Browse all .NET tags

902 questions with .NET MAUI tags

Sort by: Updated
0 answers

How to set width of a FlyoutPage.Flyout?

In Shell we have the FlyoutWidth property but in FlyoutPage I cannot find anything similar. I tried WidthRequest on the FlyoutPage.Flyout page and some other fields but none of them worked.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-03T00:36:33.8733333+00:00
stcmz 0 Reputation points
commented 2023-02-04T21:37:46.99+00:00
stcmz 0 Reputation points
1 answer

'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)

I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 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.
7,001 questions
asked 2023-01-30T12:24:14.4933333+00:00
Kim Strasser 361 Reputation points
edited a comment 2023-02-04T17:38:07.9833333+00:00
Kim Strasser 361 Reputation points
1 answer One of the answers was accepted by the question author.

Layout design for mobile and desktop (width, height and density)

I want to display data tables in an application on mobile as well as in the web browser or on the desktop and I want it to look appropriate. My idea is to show or hide the table columns depending on the width of the screen ( Note: I can open the row…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 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.
7,001 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
asked 2023-02-02T19:10:53.21+00:00
perfect code 161 Reputation points
accepted 2023-02-04T14:39:08.6766667+00:00
perfect code 161 Reputation points
2 answers

Visual Studio Community 2022 (64-bit) v17.4.4 not showing any compile time errors for MAUI project.

Hi, I am using Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.4.4 for my MAUI projects but is not showing any compile time errors . is it any plugin missing?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,441 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
696 questions
asked 2023-01-24T09:18:11.29+00:00
Sachin 21 Reputation points
commented 2023-02-03T09:50:18.8966667+00:00
Anna Xiu-MSFT 11,201 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Help with CommunityToolkit.MVVM

Hi, I am trying to use the CommunityToolkit.MVVM but when setting the two values in my sample vcard and color it's not getting Binded later on. the Popup as you can clearly see in the sample. https://www.softnames.com/temp/MVVMApp.zip Kindly…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-02T22:53:31.4766667+00:00
Jassim Al Rahma 1,126 Reputation points
commented 2023-02-03T08:29:26.6333333+00:00
Jassim Al Rahma 1,126 Reputation points
1 answer One of the answers was accepted by the question author.

Call Windows open popup/alert/dialog platform specific code

Hi, I would like to open from platform specific code an alert in Windows. I know I can do it from await Application.Current.MainPage.DisplayAlert("dad", "dsadas", "cancel"); but I want it from platform specific. So…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-01T12:18:57.5133333+00:00
vanKraster 146 Reputation points
accepted 2023-02-03T07:20:18.5433333+00:00
vanKraster 146 Reputation points
1 answer One of the answers was accepted by the question author.

Why is Android is not automatically scroll ViewElement into view when keyboard appear?

In .net-Maui, When I add a ViewElement in a scrollView and the keyboard appear, the keyboard is hidding the ViewElement. If I remove the ScrollView it works fine, but then I can't scroll the content. On Xamarin, Android will automatically scroll the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-02T06:53:20.55+00:00
Severin Brinch Jørgensen 20 Reputation points
commented 2023-02-03T07:10:01.8+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

[iOS] Set color for Shell Tab item programmatically on page NavigatedTo

Can I manipulate a specific Tab by changing the color when I navigate to it? Or override on ContentPage the current defined styles for Shell in styles when navigating? Or even set a fixed color for Icon & Text specifically for iOS in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-09T08:55:21.287+00:00
Tumi Tladi 21 Reputation points
commented 2023-02-03T06:32:52.4466667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
1 answer

Publicly declare Contacts

Hi, How can I publicly declare the following: var contacts = await Microsoft.Maui.ApplicationModel.Communication.Contacts.GetAllAsync(); something like this: Contacts contacts; contacts = await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-19T22:42:25.9966667+00:00
Jassim Al Rahma 1,126 Reputation points
commented 2023-02-03T06:30:43.0166667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Is there a Event handler available on .Net / c++ /c# for Wireless profile added event and deleted event?

I want to register a Windows app for listening to Wireless profile changes (Addition or Deletion) performed on Windows settings or by executing netsh commands from CMD. Is there any event handler available for the same? If yes, how to register for the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 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.
438 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.
1,897 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
957 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
22 questions
asked 2023-02-01T15:48:01.6966667+00:00
Shivanand Rao A V 20 Reputation points
commented 2023-02-03T04:14:04.5166667+00:00
Shivanand Rao A V 20 Reputation points
1 answer One of the answers was accepted by the question author.

Loop through Controls in ScrollView and Get the Data

Hi, In below XAML: <ScrollView x:Name="ScrollViewDetails" Grid.Row="1"> <VerticalStackLayout> <VerticalStackLayout x:Name="StackLayoutPhones"> <BindableLayout.ItemTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-20T21:11:41.77+00:00
Jassim Al Rahma 1,126 Reputation points
commented 2023-02-03T02:38:43.87+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,666 Reputation points Microsoft Employee
1 answer

SideBar Nav Menu

Hello Friends. Has anyone ever used a side nav bar menu (kind of like a bootstrap Menu) in their .Net Maui windows app? Thanks !!!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-01T21:41:39.3+00:00
Ronald Rex 531 Reputation points
answered 2023-02-03T02:29:48.4266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,666 Reputation points Microsoft Employee
1 answer

APT2144 invalid file path

VS 2022 Preview... Trying to build and run "Notes" tutorial getting 2 APT2144 invalid file path error in file Xamarin.Android.Aapt2.targets. Error message gives a file path, which I can find using File Explorer. Help on error message says it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-28T21:39:20.0033333+00:00
Scott Phillips 0 Reputation points
commented 2023-02-03T02:02:32.74+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

getting errors while migrating to MAUI

I have tried migrating existing forms project to MAUI I have used .NET Upgrade Assistant dotnet tool and ran these commands dotnet tool update --global upgrade-assistant upgrade-assistant upgrade <path to sln or csproj> --non-interactive…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
631 questions
asked 2023-02-01T05:24:37.6933333+00:00
Satya 0 Reputation points
commented 2023-02-03T01:26:05.53+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
0 answers

iOS application getting crashed "Could not set up parent class, due to: Invalid generic instantiation"

In a .Net MAUI project app is getting crashed when I am deploying it on device. below is the exception I am getting Any idea why this is happening always?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-31T09:28:45.81+00:00
Suyash Sadh 0 Reputation points
commented 2023-02-02T10:38:51.27+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
1 answer

Image TapGestureRecognizer not working inside CollectionView .NET MAUI

i'm using MVVM pattern, i want to handle when user click on X icon, i'm using TapGestureRecognizer, but it isn't fired Does anyone has a solution for this? many thanks [RelayCommand] public void CloseBreadcrumbTapped(BreadCrumbViewModel selectedItem) { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-12T08:50:47.2133333+00:00
Nam Pham 1 Reputation point
commented 2023-02-02T09:08:46.5133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,666 Reputation points Microsoft Employee
1 answer

adding custom font in .net maui does nothing on android

Also my font is not showing on my label, that is 100% not a chewy font, however its in there like it is supposed to: public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 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.
559 questions
asked 2023-01-16T02:27:26.56+00:00
Kai Winters 0 Reputation points
commented 2023-02-02T09:06:47.7+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,666 Reputation points Microsoft Employee
1 answer

Shell Navigation and using a Dictionary to pass values.

I am trying to learn how to pass complex data types to a page using a Dictionary. As you can see in the example code below that Name was hardcoded, but I was wondering what is the best practice if I wanted to dynamically set the Name property in the view…

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.
7,001 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-27T15:01:59.6933333+00:00
Ronald Rex 531 Reputation points
commented 2023-02-02T09:00:12.73+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,666 Reputation points Microsoft Employee
0 answers

How do you clear all cookies before loading a site using WebView on Windows

I'm working on a .NET MAUI Application targeting .NET 6 and have a hard time clearing the cookies before using a WebView to load a site on Windows. How do you interface with underlying cookie manager in this scenario?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-01T11:22:28.9333333+00:00
Oliver Weichhold 0 Reputation points
commented 2023-02-02T08:51:07.7766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
1 answer

What is the MAUI equivalent of .NET Core's `_Layout.cshtml`?

You see, there's this image which needs to show up on every page of my MAUI app, and if it were a .NET Core app, I'd simply add it in _Layout.cshtml. However, with MAUI, I don't see a way of doing that easily. How would I go about this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
631 questions
asked 2023-01-29T15:01:10.3966667+00:00
Uchchay Dugal 21 Reputation points
commented 2023-02-02T08:46:33.39+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee