Microsoft Q&A

.NET MAUI

1,090 questions

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

Browse all .NET tags

1,090 questions with .NET MAUI tags

Sort by: Answers
16 answers

Maui navigation and TitleView is very confusing

I am trying to customize the TitleView in a Maui app. 1st - I am trying to get the page title but this is not happening. The property CurrentPage does not seem to get updated and this means that the Title prop of the CurrentPage is not accessable. 2nd…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2023-02-12T18:10:32.7866667+00:00
Lloyd Sheen 936 Reputation points
commented 2023-03-16T09:46:32.6966667+00:00
Cuong 1 Reputation point
8 answers One of the answers was accepted by the question author.

'App' does not implement inherited abstract member 'MauiWinUIApplication.CreateMauiApp()'

Error CS0534 'App' does not implement inherited abstract member 'MauiWinUIApplication.CreateMauiApp()' MyProject (net6.0-android) C:\Git\MyProject\obj\Debug\net6.0-windows10.0.19041.0\win10-x64\Platforms\Windows\App.g.i.cs 40 Active AFAIK I have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2022-05-17T13:10:56.937+00:00
Sam Wheat 326 Reputation points
commented 2022-06-26T15:09:35.037+00:00
II ARROWS 6 Reputation points
7 answers

Why are padding and margin not showing in properties tab of VS 2022

In keeping with the poor QA of VS now the properties window when selecting an XAML element no longer shows the padding or magins. If I were to publish the full list of problems I see in VS 2022 I would not get anything done. Check out the image to see…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,800 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2023-01-29T15:20:15.2933333+00:00
Lloyd Sheen 936 Reputation points
answered 2023-01-29T18:51:56.8766667+00:00
Lloyd Sheen 936 Reputation points
6 answers

Does MAUI support push notification

Does MAUI preview 6 have option to support or handle push notifications using FCM.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2022-08-04T08:30:59.637+00:00
Anjana Jois 1 Reputation point
commented 2023-03-28T07:10:51.1633333+00:00
Evasco, Jerome Marvin 6 Reputation points
5 answers

VS2022 - Unable to optimize assemblies for performance

I Have Maui class libraries that compile with no error when the following configuration manager (Debug, Any CPU). When I build the solution with this configuration manager setting Release, AnyCPU I get the following error on all projects. Error…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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,800 questions
asked 2023-01-01T13:55:26.72+00:00
Jean-Marc Flamand 31 Reputation points
answered 2023-02-27T10:23:38.92+00:00
Esteban Vidal 0 Reputation points
4 answers

XML parsing errors when manually converting app from Xamarin to Maui

I am manually converting my Xamarin app to Maui. After fixing all the conversion errors, I am left with these 16 errors that I do not know how to resolve. Severity Code Description Project File Line Suppression State Error MAUIG1001 An error occured…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2022-05-29T16:06:12.627+00:00
Willie 21 Reputation points
answered 2023-03-14T03:50:04.4533333+00:00
GKG4 Programmers 0 Reputation points
4 answers

Why does Live Preview not work on my VS 2022 maui project

Hi, I am using VS 2022 and have a .NET MAUI project. The issue is that Live Preview doesn't seem to work. I watched the video here: https://www.youtube.com/watch?v=nEOvX3YKw_E However, I get the error shown below and I don't have the debug…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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.
724 questions
asked 2023-01-10T00:28:12.443+00:00
CFos 41 Reputation points
answered 2023-03-12T00:55:26.7766667+00:00
baraa jebali 0 Reputation points
4 answers One of the answers was accepted by the question author.

Issue with ObservableCollection in .net MAUI

When I open the app it reads the sqlite database and populates the ListView however when I add a new entry to the address book (by going to the "new address page") it doesn't refresh the ListView until I exit the app and come back in. …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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,587 questions
asked 2022-07-13T19:49:26.597+00:00
Heinz Deubler 171 Reputation points
answered 2023-02-20T20:03:35.8633333+00:00
Christian Campos 1 Reputation point
4 answers

Mobile Application using Blazor

I was trying to build mobile application using Blazor and then I came across this article https://learn.microsoft.com/en-us/mobile-blazor-bindings/ it uses Xamarin and some razor page to create mobile application. My main concern is can I use it to make…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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.
885 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,928 questions
asked 2022-08-30T06:05:42.04+00:00
Mohammad Arsalan 1 Reputation point
commented 2022-12-07T22:04:27.357+00:00
AlexChow 11 Reputation points MVP
3 answers One of the answers was accepted by the question author.

Change font in MAUI Blazor?

I have downloaded the font Comfortaa and saved it in the directory wwwroot/css/open-iconic/font/. In the file index.html I loaded the font under <style>: I also specified the alternative font "courier new". As you can see, it seems…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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.
885 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,587 questions
asked 2023-03-27T19:09:16.13+00:00
perfect code 271 Reputation points
accepted 2023-03-28T13:07:24.1633333+00:00
perfect code 271 Reputation points
3 answers One of the answers was accepted by the question author.

Assembly References Getting Added to Every Platform in .NET MAUI

If you add an assembly reference to one Platform , it gets added to every Platform. Steps to Reproduce Right click on Windows Dependencies Add a new assembly reference (a local DLL, not a NuGet package) Observe the assembly was also added to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2022-05-25T06:13:31.5+00:00
Devi Prasad 86 Reputation points
edited an answer 2023-03-24T04:53:57.7533333+00:00
Dewangan, Khagesh 0 Reputation points
3 answers

Once again when will MS fix VS 2022

So I have now spent another couple of hours trying , pleading with Visual Studio to get it together. Notice the status msg, "All Succeeded" meaning no errors but VS shows errors and I have not been able to get rid of them. Clean, Rebuild,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2023-03-14T15:46:18.4+00:00
Lloyd Sheen 936 Reputation points
edited an answer 2023-03-21T23:03:56.09+00:00
Rob Caplan - MSFT 4,237 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

How to change screen orientation in Maui?

In Xamarin there was a class called DeviceInfo with a settable CurrentOrientation property. This class appears to not exist for Maui. I can't figure out how you can change the screen orientation and I can't find an example that can show how's it's…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2022-06-07T00:25:30.037+00:00
chrissolutions 21 Reputation points
commented 2023-03-15T09:03:04.19+00:00
Nam Pham 41 Reputation points
3 answers

MUAI Blazor App: A Blank "Screen" between splash page and login page.

Hi - We are using MAUI+ Blazor to develop our mobile App. One thing we notice is that as the app is starting, the splash screen shows, then it hides, then a very fast white flash shows right before the login page (or index page), because we are…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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.
885 questions
asked 2023-01-06T18:14:57.55+00:00
Bianyu Wang 1 Reputation point
edited a comment 2023-03-11T21:47:16.8033333+00:00
The Blazor Engineer 0 Reputation points
3 answers One of the answers was accepted by the question author.

How to hide Cancel button for .Net MAUI SearchBar control for iOS using MAUI handlers?

In .Net MAUI using handlers how can I hide "Cancel button" for SearchBar control when user enters text in SearchBar for iOS? In Xamarin forms this we had implemented using custom renderer like below: protected override void…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2023-03-06T09:45:07.69+00:00
Muffadal Khopoliwala 31 Reputation points
commented 2023-03-09T09:32:44.6766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,441 Reputation points Microsoft Vendor
3 answers

Is there a way to prevent a user from switching Tabs in a TabBar? (Windows)

I have a TabBar and several Shell tabs. It's a desktop application running on Windows 10. On some of the tabs the user can start a long running file process operation asynchronously and I need to be able to prevent the user from switching to other tabs…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,699 questions
asked 2023-02-25T20:02:16.3866667+00:00
TerryH 40 Reputation points
answered 2023-02-27T12:44:05.05+00:00
Limitless Technology 16,826 Reputation points
3 answers

.net Maui Deploy to Android in release produces "module is unusable (GUID of dependent assembly Microsoft.EntityFrameworkCore.Sqlite doesn't match"

I am building a .net Maui Android app. I have no problem deploying my app to an Android emulator or real device when in Debug mode. However if I deploy in Release mode, the app crashes on load. The android device log, shows the following error, …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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.
9,129 questions
asked 2022-09-27T14:23:26.303+00:00
Julian Dormon 6 Reputation points
answered 2023-02-19T18:54:07.3333333+00:00
Elmar Beck 0 Reputation points
3 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.
1,090 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,800 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.
724 questions
asked 2023-01-24T09:18:11.29+00:00
Sachin 21 Reputation points
answered 2023-02-14T15:55:08.75+00:00
Neil McQuillan 0 Reputation points
3 answers

how to close .net maui app on iOS

i want to close .NET MAUI App from code behind i'm using Application.Current.Quit(); it works on Android but on iOS it doesn't work Does anyone know how to close the app on iOS many thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 questions
asked 2022-12-27T06:37:22.98+00:00
Nam Pham 41 Reputation points
commented 2023-01-11T12:49:52.7666667+00:00
Luiz Carlos Kolodziey 0 Reputation points
3 answers

Unable to debug Mac Catalyst on windows in .Net MAUI app

I am developing a desktop application targeting Windows Machine and Mac OS. I was able to debug for windows machine. However, I am unable to debug for windows and I keep getting this message.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,090 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.
724 questions
asked 2022-09-12T14:25:34.65+00:00
Joao, Garcia 11 Reputation points
answered 2022-12-15T18:53:39.127+00:00
Steve Johnson 1 Reputation point