This tag is redundant. For now, use "maui" instead, because most such questions are there. While ".net-maui" is a superior tag, because more explicit, its been over six months since it was requested that the two tags be merged.
Questions tagged [.net-maui]
548 questions
15
votes
2 answers
Injecting services into view models in .NET MAUI app
I'm trying to understand how to implement dependecy injection in a .NET MAUI app.
I have a service class -- and its interface -- that handle my REST calls that looks like this:
public class MyRestApiService : IMyRestApiService
{
public async…

Sam
- 26,817
- 58
- 206
- 383
15
votes
2 answers
Is there a dialog for saving files in .NET MAUI?
.NET MAUI provides a FilePicker to show a native Dialog where you can pick a file from the device.
Is there a way to show a dialog for saving files? (where you can select a path and enter an filename, ...).
I didn't find anything in the .NET MAUI…

Daniel
- 243
- 3
- 8
14
votes
1 answer
Create bindings to native libraries .net Maui
Is there any way to bind native libraries like in Xamarin?
I have tried to do some native implementations in the new .NET Maui and haven't had success on it. I would really appreciate if someone has some information about it.

jaesjulio
- 163
- 2
- 6
12
votes
2 answers
Entity Framework Core in .NET MAUI/Xamarin.Forms
I finished coding my .NET MAUI application and everything was working fine in debug mode. All my data persistence needs were being met by Entity Framework Core for Xamarin, even though I am using it on .NET MAUI.
I have made the apk file and was…

Tanaka Mawere
- 683
- 1
- 9
- 22
12
votes
3 answers
create normal windows desktop application using .net maui?
I'm planing to create a cross platform application. Minimal supported platforms should be android and windows. I'd like to end up with a classical windows executable, not a UWP app. The new maui platform looks like it might fit.
I've already…

mugu90
- 121
- 1
- 5
11
votes
3 answers
Missing maui_colors.xml and maui_splash_image.xml
I've been developing a .NET MAUI app on my Windows 11 machine which works perfectly.
When I try to compile and run it on a Mac, running the latest version of Visual Studio for Mac - 17.3 Preview build 1038, I get two errors -- see below:
Source file…

Sam
- 26,817
- 58
- 206
- 383
11
votes
1 answer
Show Google Ads/AdMob in .NET MAUI
I am quite aware that .NET MAUI is just the next generation implementation of Xamarin.Forms, so most Xamarin.Forms guides should work on .NET MAUI (I guess).
Has anyone got Admob to work in .NET MAUI, and if so, how?
I just need pointing in the…

Tanaka Mawere
- 683
- 1
- 9
- 22
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
How to update a plain Xamarin.iOS solution (without Xamarin Forms) to .net 6 (without MAUI) to run on iOS and Mac Catalyst?
I have a Xamarin.iOS solution that includes a library project and an executable. The solution does not use Xamarin Forms, i.e., it is a so-called "Xamarin Native" solution.
I'd like to upgrade this to a .net 6 solution. Unfortunately, all the…

bright
- 4,700
- 1
- 34
- 59
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
8
votes
1 answer
.net maui publishing android app fails due to issue during linking
I have an .net maui application using .net 7 preview 2 that I want to publish for Android.
My publish command: dotnet publish ${{env.UI_PROJECT_PATH}} -f net7.0-android -c Release
This gives me this error:
C:\Program…

NPadrutt
- 3,619
- 5
- 24
- 60
7
votes
3 answers
How to resize Splash Screen Image in MAUI?
I'm trying to add an image on Splash Screen and the image size is 512x512 but it is not showing correctly on the splash screen. So, is there a way to resize the splash screen image?

Prãshant Saraswat
- 326
- 2
- 14
7
votes
1 answer
How to include existing C++ libraries per platform in MAUI project?
We have a C++ library that is built per platform i.e. .dll for Windows, .so for Android & .a for iOS.
Tried the following to include the .so file in MAUI app for Android. (Other platforms are pending) -
Platforms -> Android -> lib -> arm64-v8a…

nihar
- 93
- 6