3,412 questions with .NET MAUI tags

Sort by: Updated
0 answers

OnEntryCompleted, how to close the virtual keyboard in .NET MAUI?

Hello, I am trying to figure out how to automatically close the virtual keyboard when an Entry is completed (A.K.A, the return key is pressed) and I figured .NET MAUI would do this automatically. The documentation out there is sparse. The keyboard will…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-06-04T22:48:25.79+00:00
Samuel 1 Reputation point
commented 2022-06-06T09:50:02.27+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,666 Reputation points Microsoft Vendor
0 answers

How to fix "GetAuthenticationStateAsync was called before SetAuthenticationState" in Blazor MAUI project ?

I already have a Blazor Server application with authentication type "individual accounts". Everything is working. Now i want to try out MAUI, so i created a razor class library in the solution and moved all logic from BlazorServer to the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,518 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.
1,556 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-06-05T21:34:52.537+00:00
Boot Dat 1 Reputation point
commented 2022-06-06T05:55:51.417+00:00
Zhi Lv - MSFT 32,146 Reputation points Microsoft Vendor
1 answer

If I l only want to develop android in c# what I need to use?

If I only want to develop android in c# or .net. user xamarin.android or xamarin.forms or .net maui?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,336 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-06-06T00:45:57.427+00:00
mc 4,436 Reputation points
commented 2022-06-06T03:43:20.9+00:00
mc 4,436 Reputation points
1 answer

Download Android device issue in MAUI project

I created the first project of MAUI and choose the Android Emulator. In the window of Android Device Manager, I failed to download the default device Pixel 5 - API 30 with bellow error: Network is not reachable. Please check your connection and try…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-06-03T09:40:33.597+00:00
TracyLiang 41 Reputation points
commented 2022-06-05T18:54:34.28+00:00
Rob Caplan - MSFT 5,442 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Maui.Net Graphics

Hi I want to move from Xamarin and Skai Sharp to Maui.Net. How to start with graphics in Maui.Net I tried to create simple graphics app but I dont know how to start. This is XAML code <?xml version="1.0" encoding="utf-8"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-06-02T09:01:30.747+00:00
Yusuf 791 Reputation points
accepted 2022-06-03T02:37:13.78+00:00
Yusuf 791 Reputation points
1 answer One of the answers was accepted by the question author.

VS 2022 for Mac. Which template to select to create a Mac OS and IOS App

I am just learning VS 2022 for MAC and wish to create a project whose app can run on an IPAD or possibly a MAC as well. It's not obvious which template I should select: (1) Web and Console or (2) Multiplatform or some other platform. Also, I wish to…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,336 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-27T14:41:56.89+00:00
Giacomo Raucci 341 Reputation points
accepted 2022-06-01T10:19:05.357+00:00
Giacomo Raucci 341 Reputation points
1 answer

Android Asset Delivery in Dotnet Maui

have a .NET MAUI Project with a lot of assets (images) in the Resources\Images directory that shall be deployed to the Google Play Store. This means that the size of the generated aab package is way beyond the Google Play Store limit of 150MB. (Message:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-31T14:10:16.777+00:00
A7md 6 Reputation points
answered 2022-06-01T08:12:15.683+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,491 Reputation points Microsoft Vendor
1 answer

Is there a way to draw pixel arrays dynamically on Image control in MAUI?

Hi! For every frame, I have a 4-bytes BGRA pixel array to update my Image control. However, I can't find a way to update it in MAUI frequently. Tens times per second. In WinUI3 I use an Image control with WriteableBitmap as a source. I update…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-31T10:33:24.757+00:00
YVKOMAR 11 Reputation points
answered 2022-06-01T07:50:31.307+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,666 Reputation points Microsoft Vendor
1 answer

Using Styles and Theming maui app in C#

I am developing a crossplatform app for iOS and Android using maui. The UI and Styles are written in C#. public static class AppStyles { static Color White = Color.FromArgb("#FFFFFF"); static Style<Label>…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 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,844 questions
asked 2022-05-19T06:46:53.05+00:00
paramjit 276 Reputation points
commented 2022-05-30T09:54:00.007+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,666 Reputation points Microsoft Vendor
1 answer

MAUI Project Issues

I have added the MAUI workload in Visual Studio 2022 v17.3.0 Preview 1.1 and I have the following set of errors after creating my project. I have done the maui-check and it always ends with the following:

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,556 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-30T00:07:20.157+00:00
Trevoir Williams 1 Reputation point
answered 2022-05-30T09:53:31.07+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,491 Reputation points Microsoft Vendor
1 answer

Nuget Errors on restoring packages for Maui project on M1 Mac (trying to restore wrong arch libs)

I think I somehow messed up my Macbook Air M1 while removing old dotnet versions. With everything installed on release version or even the last RC I can restore and build any other template types such as web but when I do: dotnet new maui -n “MauiProj”…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-24T13:38:49.347+00:00
Jin 1 Reputation point
commented 2022-05-30T09:44:25.057+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,666 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

The RuntimeIdentifier platform 'win10-x64' and the PlatformTarget 'x86' must be compatible Error in MAUI

When I run the MAUI UWP application I am getting below error "The RuntimeIdentifier platform 'win10-x64' and the PlatformTarget 'x86' must be compatible" I am setting configuration to x86 and I am using Visual Studio Pro…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-23T04:52:14.557+00:00
Devi Prasad 91 Reputation points
accepted 2022-05-27T04:50:26.92+00:00
Devi Prasad 91 Reputation points
1 answer One of the answers was accepted by the question author.

Google Sign-in

Can I use Google Sign-in with MAUI? I found this example for Xamarin.Android: https://video2.skills-academy.com/en-us/samples/xamarin/monodroid-samples/google-services-signinquickstart/

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-22T22:13:42.047+00:00
Mario Duarte 21 Reputation points
commented 2022-05-25T22:02:56.967+00:00
Mario Duarte 21 Reputation points
1 answer

Log4net set path

Hi, I used log4net for worker service and Maui app and I want to keep the log file near the exe, how is can be done ? Thanks in advance, <?xml version="1.0" encoding="utf-8" ?> <configuration> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,152 questions
asked 2022-05-11T06:45:02.067+00:00
Dani_S 3,746 Reputation points
commented 2022-05-25T08:09:21.817+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,491 Reputation points Microsoft Vendor
1 answer

How I set header and footer to FlyoutPage ?

Hi, How I set header and footer to FlyoutPage ? FlyoutPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FlyoutExample.Views.MyRootPage" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-22T05:11:37.97+00:00
Dani_S 3,746 Reputation points
commented 2022-05-24T09:30:30.543+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,666 Reputation points Microsoft Vendor
0 answers

macOS/iOS SecKeyChain

I'm trying to access the keychain to get the installed certificates, but it always returns null, I don't see the option to enable KeyChain Info.plist, I don't see the entitlements.plist file in net maui. I installed the pfx certificate on my macOS, but…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-12T11:08:50.787+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
commented 2022-05-24T08:56:20.967+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
0 answers

MSIX of MAUI app does not installed on Window server 2019

Hi, I search MSIX supported-platforms like following thread, it support on following versions of Windows: Windows 10, version 1709, and later. Windows Server 2019 LTSC and later. Windows Enterprise 2019 LTSC and later. …

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.
780 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-16T09:49:39.85+00:00
Dani_S 3,746 Reputation points
commented 2022-05-24T03:59:54.803+00:00
Rob Caplan - MSFT 5,442 Reputation points Microsoft Employee
1 answer

MAUI -LOG4 Net is cross platform ?

Hi. Is LOG4 Net is cross platform ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-16T09:51:52.587+00:00
Dani_S 3,746 Reputation points
answered 2022-05-24T03:57:12.017+00:00
Rob Caplan - MSFT 5,442 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

MAUI- Package version numbering

Hi, How I set the package version numbering for MAUI ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-11T12:01:08.763+00:00
Dani_S 3,746 Reputation points
commented 2022-05-24T01:58:24.753+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

MAUI - GA DATE

Hi, Can you please estimate when GA will be ? Is there another RC after RC3 or GA in front of us? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
asked 2022-05-23T18:20:29.383+00:00
Dani_S 3,746 Reputation points
accepted 2022-05-23T19:59:16.183+00:00
Dani_S 3,746 Reputation points