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: Created
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 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.

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
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

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
0 answers

The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?)

Seriously, Do you even test before release? It works, then stops. Restart computer, and it works again. Given that Micro$oft no longer values the developer/engineers, you can bet the stock is going the way of Yahoo!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-01T19:58:18.23+00:00
Mark Rooney 21 Reputation points
1 answer

Now that I have shell (working?) it does not respond to the back button

When I click the back button (Android) it does not go back a level it just goes back to the Android system. I put in the following code but a back button is not visible on the view that shows the hotdog icon so it just does not work. …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-01T18:09:43.72+00:00
Lloyd Sheen 781 Reputation points
answered 2023-02-01T20:31:23.5733333+00:00
Lloyd Sheen 781 Reputation points
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
2 answers

Will Xamarin Native be supported in MAUI world

Hello. I've found official end-of-support date for Xamarin: https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin But I've heard, tht Xamarin Native is technology behind MAUI, and it will continue to be supported after that date. It will be…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,818 questions
asked 2023-02-01T12:25:06.19+00:00
Сергей 0 Reputation points
answered 2023-02-01T20:35:10.55+00:00
Graham McKechnie 156 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
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

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

How to convert existing solution to use Shell

I have a solution that does not use Shell. I would like to change it so that it uses shell. I created a new solution and copied the AppShell.xaml and .cs. I changed the namespace to the correct namespace. I then changed the app.xaml.cs to: …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-31T14:51:43.6833333+00:00
Lloyd Sheen 781 Reputation points
commented 2023-02-02T06:51:22.3933333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,666 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
0 answers

There were deployment errors. Continue? (MAUI - Android Emulator Problem)

I am new to MAUI. when I run the android emulator this error popup. But with windows Machine, it works fine. I reinstall visual studio and it still shows this error. Please Help me to solve this problem or give alternative solutions.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-31T03:05:28.7+00:00
Chiranga Ranasinghe 0 Reputation points
edited the question 2023-02-02T01:49:01.31+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
0 answers

Failed to create release build in iOS due to bitcode issue of Plugin.Firebase in .net MAUI having dotnet 7.

Have implemented fcm push notification in MAUI having .net version 7 from the below link : https://cedricgabrang.medium.com/firebase-push-notifications-in-net-maui-ios-2f4388bf1ac. For testing , creating release build to test on…

.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
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
369 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
631 questions
asked 2023-01-30T18:27:08.49+00:00
Priya Baghel 1 Reputation point
commented 2023-01-31T04:31:09.7233333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
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

Empty listview items after down and up scrolling

Hi, iOS app, MVVM pardigm, I populate an ObservableCollection of a custom type and through BindingContext populate a ListView on the Page. that works fine. I can see the ListView items properly and can scroll it. What I constantly see is when I scroll…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-30T09:02:03.32+00:00
yaron kadman 81 Reputation points
commented 2023-02-01T01:02:00.07+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
0 answers

Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985} (8d59f552-5e3e-48c3-a91e-e50041b57719 id=0x2)

I am using Version VS 17.5.0 Preview 2.017.5.0 Preview 2.0. In this when I debug it with my mobile it gives me error Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985}…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-30T08:42:52.66+00:00
anil kumar 51 Reputation points
commented 2023-02-01T01:34:09.8666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
0 answers

Failed to compile third-party dynamic libraries using AOT in the MAUI(Andriod) project?

Create a MAUI APP project with VS2022(Version 17.4.4) install TencentCloud.dll from nuget; direct publish project, it takes very long,long time; about three hours. finally compiler…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-30T01:36:17.93+00:00
晓宁 焦 0 Reputation points
commented 2023-01-31T06:13:59.9633333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,666 Reputation points Microsoft Employee