Questions tagged [maui]

.NET Multi-platform App UI (MAUI) lets you build native apps using a .NET cross-platform UI toolkit that targets the mobile and desktop form factors on Android, iOS, macOS, Windows, and Tizen. .NET MAUI is the successor of Xamarin.Forms and is now part of the .NET ecosystem, rather than a separate library.

.NET Multi-platform App UI (MAUI)

.NET MAUI is:

  • Multi-platform native UI
  • Deploy to multiple devices across mobile & desktop on Android, iOS, macOS, Windows and Tizen.
  • Using a single project, single codebase
  • Evolution of Xamarin.Forms

Goals

  • Improve app performance
  • Improve simplicity of control extensibility
  • Improve simplicity of contributing
  • Enable developer options to use Model-View-Update (MVU) and Blazor

Xamarin.Forms vs .NET MAUI

Xamarin.Forms .NET MAUI
Platforms
Android API 19+ API 21+
iOS 9-15 10+
Linux Community Community
macOS Community Microsoft
Tizen Samsung Samsung
Windows UWP Microsoft
WPF Community
Microsoft
Features
Renderers Tightly coupled to BindableObject Loosely coupled, no Xamarin.Forms dependencies
App Models MVVM MVVM
RxUI RxUI
MVU *
Blazor *
Single Project No Yes
Multi-targeting No Yes
Multi-window No Yes
Misc
.NET Xamarin.iOS, Xamarin.Android, Mono, .NET Framework, ... .NET 6+
XAML Hot Reload Experimental: SDK 4.x & Visual Studio 2019 prior to version 16.9
Feature Complete: SDK 5.x & Visual Studio 2019 version 16.9 or newer
Yes
.NET Hot Reload iOS/Android – No
UWP – Limited support for runtime edits using .NET “Edit & Continue”
Yes
Acquisition NuGet & Visual Studio Installer dotnet
Project System Franken-proj SDK Style
dotnet CLI No Yes
Tools
Visual Studio 2019 Yes Yes
Visual Studio 2019 for Mac Yes Yes
Visual Studio Code No Experimental**

* These app models are experimental.

** Visual Studio Code will work by virtue of .NET unification, however not all experiences that make .NET MAUI development delightful (intellisense for example) may be enabled at the time of .NET 6 release.

FAQs

Do you have questions? Do not worry, we have prepared a complete FAQ answering the most common questions.

How to Engage, Contribute, and Give Feedback

Some of the best ways to contribute are to try things out, file issues, join in design conversations, and make pull-requests. Proposals for changes specific to MAUI can be found too.

4576 questions
11
votes
2 answers

how to resolve Xamarin.Firebase.iOS.Core - 8.10.0.1 nuget installation error

Error Could not find a part of the path…
Vivek Scorp
  • 111
  • 1
  • 5
11
votes
4 answers

Logging on .net MAUI

.net MAUI recently removed logging in one of it's newest release. What is the alternative now and how should it be implemented? Have been going all over online, but couldn't find a single example of any logging architecture implemented. Tried…
11
votes
2 answers

.Net Maui XAML Input field component

I can't seem to find a simple text Input field to use in a .net maui xaml app. Looking at the docs in the User interface/Controls/Views section there is a a number of components handling user interaction/input such as checkbox and slider and even a…
Gustav
  • 3,408
  • 4
  • 24
  • 41
11
votes
6 answers

How to implement .NET MAUI localization

I'm unable to find any direction on implementing localization for a MAUI app. I've read some info about localizing Xamarin apps but am unable to translate it forward to MAUI even after extensive web searching. Can anyone point me to a reference…
Brad Taylor
  • 111
  • 1
  • 1
  • 5
10
votes
6 answers

Need a way to hide soft keyboard in MAUI's Editor / Entry fields

I found what seems to be useful in this link: A Keyboard disabled Entry control in Xamarin Forms But it seems that it only works in Xamarin Forms. I even used it in my MAUI app, but it simply has no effect ! The reason I am looking to do this is…
Wal.H
  • 111
  • 1
  • 5
10
votes
2 answers

.net Maui: How get Maui version number?

How do I know what version of Maui I'm on/using. I used the Visual Studio installer and tried checking, but I can't tell if I'm on preview 3 which I originally installed or have I managed to update to GA? Bizarre that I can't find this information…
gfmoore
  • 976
  • 18
  • 31
10
votes
2 answers

How to gracefully shutdown (or put to sleep) a .Net Maui App

The web has many articles (and videos) on starting a new Maui app. Microsoft's Maui documentation does discuss the MauiApp lifecycle and enumerates delegates to trigger the appropriate events for each of the supported platforms. I have been unable…
DP10234
  • 101
  • 1
  • 4
10
votes
5 answers

How to set window title for a MAUI Blazor App targeting Windows?

Ive created a small application from the MAUI Blazor app template in MAUI preview 10 and have it targeted and running on windows. I however wish to set the title of the application which I imagined would be done with the Title attribute in the…
olabacker
  • 1,232
  • 1
  • 16
  • 27
9
votes
6 answers

MAUI app not working in release mode but it works perfectly in debug mode

My MAUI App when running in Debug mode in a emulator is working good but it is not running when I run this in release mode ( does not work either in emulator or a physical device) it crashes. I am using the Mvvm architecture using a library called…
Reyneer Leon
  • 356
  • 2
  • 14
9
votes
4 answers

Login page for .NET MAUI

I have a simple .NET MAUI application and am trying to implement a login page. The goal is nothing more than to show the login page and when the user submits name and password it will go to a view model that will then pass the user along to…
Jesse Liberty
  • 1,314
  • 1
  • 11
  • 26
9
votes
2 answers

Handle event after .NET MAUI page has become visible

I have a ContentPage which requires some "heavy lifting" before its data can be shown. So, my idea was to have an ActivityIndicator on the page visible until the data is ready to be displayed. I'm trying to figure out a suitable event to use for…
Ted Nyberg
  • 7,001
  • 7
  • 41
  • 72
9
votes
1 answer

.NET MAUI error No parameterless constructor defined for this object

Occurs when binding my view to the view model. Error description: System.MissingMethodException: 'No parameterless constructor defined for type 'yournamespace.view.pagename'.'
bryanjez
  • 439
  • 4
  • 8
9
votes
5 answers

MAUI : Customize an Entry

I'm new to MAUI with basic knowledge on Xamarin.Forms I would like to add a bottom border (and border tickness) to an Entry control in MAUI. On Xamarin.Forms, we had to create a Custom Control and then a Renderer for each platforms. I did research…
Julien Guillot
  • 169
  • 1
  • 4
  • 9
9
votes
2 answers

Add Control programmatically, UI is not updating

I am just playing arround with .Net MAUI. I want to retrieve information from a Rest service and based on the result I want to add Buttons programmatically to a VerticalStackLayout. When I debug the solution the buttons are added to the…
Peter K.
  • 123
  • 1
  • 6
9
votes
4 answers

How to run MAUI Blazor App in a web browser?

How can I run a MAUI Blazor App in a web browser? I've used the VS MAUI with Blazor sample project
Daniel Ross
  • 95
  • 1
  • 3