3,369 questions with .NET MAUI tags

Sort by: Updated
0 answers

how to delete files on internal or external storage in Maui:Andorid

I have seen a couple of posts related to this and it happens on Xamarin Forms similarly 1) open a file picker 2) read file process data 3) delete file var res = await PickAndShowAsync(opt); if (res == "") //user cancelled…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-02T15:56:22.827+00:00
john murray 16 Reputation points
commented 2022-08-07T12:13:35.463+00:00
john murray 16 Reputation points
1 answer One of the answers was accepted by the question author.

Why does MainActivity base.OnCreate() fail for Android when a Custom Renderer is enabled with UseMauiCompatibility() in MauiProgram.cs?

I am migrating Xamarin code to .NET MAUI and I followed @Anonymous Wiki on Custom Renderers as described here. The custom renderer is for the Shellcontrol and whenUseMauiCompatibility()is activated in MauiProgram.cs, anInvalidCastExceptionis…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-08-05T13:15:24.333+00:00
dg2k 1,391 Reputation points
accepted 2022-08-06T06:20:38.067+00:00
dg2k 1,391 Reputation points
1 answer One of the answers was accepted by the question author.

Is the Clearing of Microsoft.Maui.Storage.Preferences a bug when updating to Maui 6.0.486?

I noticed all persisted app settings implemented by Microsoft.Maui.Storage.Preferences were cleared when I updated Visual Studio to Version 17.3.0 Preview 6.0 (Maui version 6.0.486). The Preferences Clear() method was never directly used, but after the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-08-03T21:23:39.927+00:00
dg2k 1,391 Reputation points
commented 2022-08-06T05:37:00.673+00:00
dg2k 1,391 Reputation points
1 answer One of the answers was accepted by the question author.

MAUI Android Emulator networking exception - can't resolve hostname

So I have a MAUI application that I'm trying to debug using an Android Pixel 5 emulator. It contains a call to an external URL (https://ts-restapi-dev.greatideaz.com) that it claims that it can't resolve to its IP address (20.116.90.125) I run…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-08-03T21:46:19.827+00:00
Tony Nicholls 26 Reputation points
accepted 2022-08-05T16:01:45.587+00:00
Tony Nicholls 26 Reputation points
1 answer One of the answers was accepted by the question author.

Can Sync Support to Maui SecureStorage be Added, Please?

I can see a plea to @Anonymous for sync SecureStorage to be added from as far back as over 3 years ago (then under Xamarin.Essentials, now Microsoft.Maui.Storage namespace), for example as posted here. As someone commented in that plea, I also find it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-08-04T21:11:44.373+00:00
dg2k 1,391 Reputation points
accepted 2022-08-04T22:13:23.07+00:00
dg2k 1,391 Reputation points
0 answers

Pair to Mac fail with Error: Could not find ‘.NET Core SDK ‘ with version = 6.0.400-preview.22301.10

Windows VS 2022-17.3.0-Preview-2.0, connect to Mac OS 12.4. When connecting , VS passed SSH to initialize dotnet SDK , I received the message ' --install -dir /User/myMac/Library/Caches/Xamarin/XMA/SDKs/dotnet --version 6.0.400-preview.22301.10…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-08-03T02:02:48.01+00:00
Gordon Mars 1 Reputation point
commented 2022-08-04T09:04:45.49+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,416 Reputation points Microsoft Vendor
1 answer

AppShell render issue in .net maui

I have an application where I have files and folders listed and I can navigate through the folders. I'm trying to moving this app to .net maui now. For now, I haven't done the listing of files and folders, but I'm trying to prepare the AppShell…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-27T11:04:21.207+00:00
Pelin Konaray 291 Reputation points
answered 2022-08-04T08:31:01.94+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,416 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

What do I need to do to migrate Xamarin-based EventToCommandBehavior command binding to work for .NET MAUI?

I have Xamarin-based reusable controls based on ContentView. One use case is for password input and encryption key input built around a flexible custom control that can be configured for user screen lock password enable/change/disable as well as data…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-28T20:58:10.167+00:00
dg2k 1,391 Reputation points
accepted 2022-08-03T13:12:16.33+00:00
dg2k 1,391 Reputation points
1 answer

.NET MAUI Landscape and portraint layouts

Is it possible to have specific layouts for landscape (typically a Windows app) and portrait (Android/IOS app) pages in .Net MAUI? I have found that a page that looks good (and usable) on Android becomes totally unusable on Windows.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-31T11:57:20.9+00:00
Brenden Jacobson 6 Reputation points
commented 2022-08-03T02:01:41.417+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 41,601 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Runtime Error in Net Maui Graphics

I am trying to apply Maui Graphics but it's not as easy as Skiasharp and System.Drawing, because the drawing class is separate, and my skills in object programming are low. I've been trying for days to create the simplest example that displays…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-08-02T00:15:56.257+00:00
Yusuf 791 Reputation points
accepted 2022-08-02T13:12:54.75+00:00
Yusuf 791 Reputation points
1 answer

.NET Maui File Locations

I've used code that is similar to the following in my UWP programs: string filename = "Northwind.db"; bool isExisting = false; try { StorageFile storage = await…

Universal Windows Platform (UWP)
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,627 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-22T14:42:03.13+00:00
Fritz Switzer 261 Reputation points
commented 2022-08-02T07:35:03.147+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 41,601 Reputation points Microsoft Vendor
1 answer

MAUI B2C Blank Page

I'm using B2C for my MAUI app and the login process works as expected until we after we log in. A blank page is displayed right after log in. The App name is also displayed as the page title so it looks to redirecting back to the app but to a blank…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,837 questions
asked 2022-07-09T13:38:32.827+00:00
phil ciraolo 86 Reputation points
commented 2022-08-02T02:09:50.12+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,416 Reputation points Microsoft Vendor
1 answer

.Net Maui Windows ListView

Hey Guys! I am currently working on an Windows Application in Maui (i know overkill but nevermind) and would like to change the color of the Selected Item Template (Windows has this little line next to the item). I would like to change that for…

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.
777 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-28T19:04:30.167+00:00
Moser Benjamin 1 Reputation point
commented 2022-08-01T09:51:36.37+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,081 Reputation points Microsoft Vendor
1 answer

i need to link the ispresented property of the flyoutpage with a command in a viewmodel any suggestions please as i think the property is failing

i need to link the property ispresented from flyoutpage with viewmodel; the code I have is: in the view i have: <ImageButton.GestureRecognizers> <TapGestureRecognizer Command="{Binding…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-28T21:33:58.743+00:00
ruben dario rueda pineda 1 Reputation point
commented 2022-08-01T09:51:04.57+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,081 Reputation points Microsoft Vendor
0 answers

How do I get .NET MAUI service releases?

I can see that .NET MAUI has multiple service releases. Currently, Service release 3 is available (v6.0.419). When I list the workloads that I have installed on my development machine I see the following: Installed Workload Ids Manifest…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-29T15:53:46.567+00:00
TheHunsra 1 Reputation point
commented 2022-08-01T08:50:20.393+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,081 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

User interface .net maui

If possible could we get some videos and lessons on user interface and user expierence on net.maui. From creation of ui on say figma to implementation on c# and does .net have a similar ui site like google material.io just moving from google ecosystem…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-31T08:45:36.213+00:00
Vault tech industries 46 Reputation points
commented 2022-08-01T08:34:41.35+00:00
Vault tech industries 46 Reputation points
0 answers

MAUI Android App Throwing SIGSEGV errors

My app when deployed to emulator after first deployed will throw the error in build output in VisualStrudio: [libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x78 in tid 5184 (WM.task-1), pid 5156 If I delete the app and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 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.
987 questions
asked 2022-07-31T00:39:54.023+00:00
Steven Frame 6 Reputation points
commented 2022-08-01T06:06:43.08+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 41,601 Reputation points Microsoft Vendor
1 answer

Shell Flyout Menu not showing all the Menu Items All the time in .NET MAUI Windows

I am working with App Shell Menu Flyout to display menu items, but the menu item all are not showing all the times. Steps to Reproduce Step 1 : Created .NET MAUI application and Create page with Shell to display menu flyout below is the code. …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 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,818 questions
asked 2022-07-25T07:07:20.873+00:00
Devi Prasad 91 Reputation points
commented 2022-08-01T05:42:30.097+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,416 Reputation points Microsoft Vendor
2 answers

Setting cuookie user preferences in Android/iOS in ifame in MAUI BlazorWebView

I am building a MAUI Blazor app (using BlazorWebView) and have the need to use an iframe on a Blazor page to embed a page from a website. I have control of the site in the iframe and have set the cookie settings for SameSite set to none and Secure to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-24T18:26:53.703+00:00
Kevin Greer 21 Reputation points
commented 2022-08-01T05:39:38.047+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,416 Reputation points Microsoft Vendor
0 answers

MAUI - Navigating from One Shell to Another Shell in ClickEvent

I am trying to navigate from one shell to another different shell in the same MAUI Application. Navigating inside a click event and without using MVVM

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,369 questions
asked 2022-07-31T14:31:19.257+00:00
Njoro007 1 Reputation point
commented 2022-08-01T02:48:34.227+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,081 Reputation points Microsoft Vendor