3,147 questions with .NET MAUI tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Is it possible to use await in an event?

I tried to use await in this event: CrossMediaManager.Current.MediaItemFinished += (s, e) => { customDialog.Cancel(); await ResumeSong(7, TimespanIngamemenuPosition); }; public async Task<bool> ResumeSong(int resumesong,…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,828 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-27T13:16:09.2433333+00:00
Kim Strasser 811 Reputation points
accepted 2024-06-29T12:44:02.2+00:00
Kim Strasser 811 Reputation points
1 answer One of the answers was accepted by the question author.

Executable for Iphone

I use the below command to generate apk file for android . keytool -genkey -v -keystore bmicalc.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000 dotnet publish -f:net7.0-android -c:Release /p:AndroidSigningKeyPass=maui@23 …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-28T13:17:43.84+00:00
Anonymous
accepted 2024-06-29T07:32:00.4033333+00:00
Anonymous
1 answer

Problem with DependencyService in .NET MAUI for iOS: Cannot get an instance of IFileHelper, always return null

I'm working on a .NET MAUI application that uses DependencyService to get the local path to a file on iOS. Although I have followed the instructions to correctly register my IFileHelper implementation, I always get an exception stating that an…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-28T08:50:23.5133333+00:00
Gerson Jose Rodriguez Quintero 51 Reputation points
answered 2024-06-29T04:20:30.33+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Navigation help with .Net Maui app

I am trying to figure out a way to navigate. Right now I have the main page as a shell page with some content, from here I launch Tabbed Page sections, there are several and each page contains 5-6 tab pages. This does not work in Android as you can't…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 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.
10,579 questions
asked 2024-06-27T20:48:22.0333333+00:00
Phunction 226 Reputation points
accepted 2024-06-28T23:30:30.77+00:00
Phunction 226 Reputation points
1 answer

Deploying MAUI Android but getting iOS errors!

I am porting a project from XF to MAUI. I am trying to build a Signle Project Class Library that has TargetFrameworks of <TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks> I have Android and iOS specific files under…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,828 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-28T17:08:33.76+00:00
Pat Long 36 Reputation points
answered 2024-06-28T17:17:27.96+00:00
Bruce (SqlWork.com) 60,386 Reputation points
1 answer One of the answers was accepted by the question author.

publish app in mac

Hi, How do i publish my app in mac ? In windows i did: dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-05-29T07:47:18.4366667+00:00
Dani_S 3,206 Reputation points
commented 2024-06-28T13:30:35.76+00:00
Dani_S 3,206 Reputation points
1 answer

Other map than Google Maps

Hi I have a children app that is all about music and dancing for kindergarden kids. In one of the pages we ha a world map where we put out pins for opening songs and to show where they come from. I used the google maps plugin in Xamarin and it worked…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-27T09:41:00.17+00:00
Magnus Wallon 0 Reputation points
answered 2024-06-28T03:02:07.2133333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,456 Reputation points Microsoft Vendor
3 answers

Error CS0246: The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?)

Hi i am all of sudden getting this error message in my MAUI project after upgrading Visual Studio Mac.... How to fix it? Error CS0246: The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-02-16T10:26:31.4433333+00:00
SSB 111 Reputation points
commented 2024-06-27T23:08:25.6966667+00:00
EmDe 21 Reputation points
1 answer One of the answers was accepted by the question author.

How can I play a video from a folder in my iOS project with the native iOS AVPlayer?

I want to add a video file, for example an .mp4 file, to my iOS project. Can I create a folder named Resources in my iOS project, adding the .mp4 file into this folder and playing it with AVPlayer? How can I play a video from my iOS project instead of a…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,828 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-25T22:54:11.0433333+00:00
Kim Strasser 811 Reputation points
accepted 2024-06-27T22:01:15+00:00
Kim Strasser 811 Reputation points
1 answer One of the answers was accepted by the question author.

Open and close access to USB and Cdrome

Hi, I want to build client on Maui on windows that do the following things. In computer that has no antivirus. When client is loading it will close all the access to USB and Cdrome through registry. And when user insert USB or Cdrome the system identify…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-24T03:51:37.24+00:00
Dani_S 3,206 Reputation points
accepted 2024-06-27T17:20:41.0766667+00:00
Dani_S 3,206 Reputation points
0 answers

Binding Problems

So my project is devided into parts Service public class WeatherService(HttpClient client) : IWeatherService { public async Task<Root> GetWeatherDataByCoords(double lat, double lon) { var responseMessage = await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-26T20:32:33.0233333+00:00
Eduardo Gomez Romero 225 Reputation points
commented 2024-06-27T08:42:54.5766667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,596 Reputation points Microsoft Vendor
0 answers

No compatible code running on the thread

I know what is causing this, but the solution evades me, because many of the answers are "I upgraded to the next VS version", which is not helpful. What is causing this: I have a class (record) that overrides the AutomationId property of a UI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-21T14:09:08.9533333+00:00
Russell Hires 0 Reputation points
commented 2024-06-27T08:19:22.5+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,596 Reputation points Microsoft Vendor
0 answers

GoToAsync Failed With Java.Lang.IllegalStateException

In my ViewModel, I had a relaycommand to navigation another page: [RelayCommand] public async Task ReviewIt () { ... await Shell.Current.GoToAsync(nameof(ReviewItView), new Dictionary<string, object>{ ["key1"] = value1, …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-21T19:12:56.94+00:00
Fan Yang 0 Reputation points
commented 2024-06-27T07:06:02.2166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,596 Reputation points Microsoft Vendor
2 answers

Can we create native iOS XCFramework & Android jar files using c# maui code base?

Team, Our plan is to generate iOS XCFramework & Android jar files using c# maui code base to re-use the functionality written in c#. How to generate such libraries. When I tried to generate the library using VS for Mac, I got dll & pdb files,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
202 questions
asked 2024-06-06T06:15:17.2966667+00:00
Krishna Kishore Bandaru 0 Reputation points
commented 2024-06-27T06:02:24.3166667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,456 Reputation points Microsoft Vendor
1 answer

My app icon is not displayed correctly on iOS. But my app icons are in AppIcon.appiconset

I have added my app icons on my iMac to my iOS project in Assets.xcassets-->AppIcon.appiconset. After that I copied my iOS project to my Windows 11 laptop and then I paired Visual Studio with my iMac to debug the iOS project on my iPad. But the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-23T11:51:42.26+00:00
Kim Strasser 811 Reputation points
commented 2024-06-27T05:22:43.7633333+00:00
Liqun Shen (Shanghai Wicresoft Co Ltd) 160 Reputation points Microsoft Vendor
1 answer

Multiple apps in one project

Hi, is it possible to have one project with multiple apps inside that share most of the code? I have some educational apps wich have different content based on the api they call but they all have common code for excercises etc.. In Xamarin I had them…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-26T13:24:29.92+00:00
Magnus Wallon 0 Reputation points
answered 2024-06-27T02:59:04.7733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,456 Reputation points Microsoft Vendor
1 answer

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 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.
10,579 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 5 Reputation points
edited a comment 2024-06-26T18:22:21.07+00:00
Olen Kirkland 0 Reputation points
1 answer One of the answers was accepted by the question author.

.NET Maui: Can‘t access image from ContentView

Hello, i have trouble trying to access View (image) in C# code. .NET Maui is used, now migrating from Xamarin Forms. Maybe someone will be able to help me. So what I have done: 1.       Created root folder “MyTemplates” in my “AngryFish” project. 2.    …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-25T19:23:35.9966667+00:00
AAA BBB 21 Reputation points
commented 2024-06-26T14:09:10.1966667+00:00
AAA BBB 21 Reputation points
1 answer

Issues in running the MAUI app in Macbook

We created a MAUI app using version .Net8.0. We are trying to debug/run the app by connecting Visual Studio to Mac, but we are encountering issues debugging the app. The pipeline is functioning as expected. Specifically, we're facing an issue with…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 questions
asked 2024-06-25T05:57:13.5833333+00:00
Srilekha Chowdary 60 Reputation points
commented 2024-06-26T10:51:24.9133333+00:00
Patil, Sunil 0 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to make full screen splash in .NET MAUI

How can I make splash to display in full screen instead of just at the center of the mobile screen in .NET MAUI? I've tried different base sizes, but not working. Target android version up-to 13. <ItemGroup> <MauiSplashScreen…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,147 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.
10,579 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.
785 questions
asked 2024-06-11T04:27:11.4933333+00:00
Md Mosabbir Alam 20 Reputation points
commented 2024-06-26T09:50:54.4266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,596 Reputation points Microsoft Vendor