2,926 questions with .NET MAUI tags

Sort by: Updated
0 answers

How to hide the titlebar of Shell?

Hi, It's almost perfect to use the shell flyout. At the same time, I would like to know how to hide the tile bar which the hamburger icon located. Is it possible to do it? Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-12T09:20:51.547+00:00
Yuan Jeffers 1 Reputation point
commented 2022-08-15T03:41:34.273+00:00
Amy Peng-MSFT 231 Reputation points Microsoft Employee
0 answers

Type x:String not found

Hi, Why I am getting below error in MAUI? Here is my code: <?xml version = "1.0" encoding = "UTF-8" ?> <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-10T22:27:20.087+00:00
Jassim Al Rahma 1,526 Reputation points
commented 2022-08-12T06:21:31.723+00:00
Amy Peng-MSFT 231 Reputation points Microsoft Employee
0 answers

Maui GraphicsView Y axes top

hi in .net maui how to make GraphicsView control y axis +ve up as normal coordinate system.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-11T12:01:17.63+00:00
essamce 621 Reputation points
commented 2022-08-12T06:02:01.917+00:00
Amy Peng-MSFT 231 Reputation points Microsoft Employee
1 answer

How to make a small clickable framed graph in maui

I have a model that has a list of trapezoid shapes defined as integer duration1,2,3 , amplitude, and period. Does anybody have a suggestion to make list of little icon type graphs that look like the particular shape, that can be clicked on to go to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-11T17:49:31.093+00:00
Dave M 21 Reputation points
commented 2022-08-12T05:32:15.257+00:00
Amy Peng-MSFT 231 Reputation points Microsoft Employee
0 answers

Topmost window in .net maui

Hi how to make .net maui main window topmost?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-11T09:48:44.83+00:00
essamce 621 Reputation points
commented 2022-08-12T03:49:32.437+00:00
Amy Peng-MSFT 231 Reputation points Microsoft Employee
0 answers

CJK for Android in DotNet MAUI

I am new to DotNet MAUI. Having using Xamarin for sometime. The question is concerning the Android Options -> Additional supported encodings. I normally select CJK . I am wondering how does Dotnet MAUI handle this ? Appreciate any…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-10T07:25:08.863+00:00
PeterK 1 Reputation point
commented 2022-08-11T05:24:54.253+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,901 Reputation points Microsoft Vendor
2 answers

When MAUI is to be released in normal Visual Studio 2022?

When MAUI is to be released in normal Visual Studio 2022? I can only see it in VS 2022 Preview, but the Internet says, that MAUI has already been released in August, which would normally mean it should be in normal Visual Studio 2022 (not Preview). …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,644 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-07-04T18:30:10.707+00:00
Magomed Rabadanov 6 Reputation points
answered 2022-08-10T22:55:25.783+00:00
Maira Wenzel 1 Reputation point Microsoft Employee
1 answer One of the answers was accepted by the question author.

Using Flyoutitem and shellcontent the individual tab are not refreshing

So i have an app that i use flyout item to show the hamburger menu and once clicked it will pretty much open the tab with all the shellcontent. The issue am having is once you are clicking on the different shellcontent, it will load the page only once…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-05T22:14:36.607+00:00
Okorie, Josh 21 Reputation points
commented 2022-08-10T13:57:05.06+00:00
Okorie, Josh 21 Reputation points
1 answer

How to implement Fluid Design colors/tokens in XAML in Maui target Windows

I'm thinking how to add color codes/tokens for Fluent Design to a Maui application when it targets WinUI 3 (Windows 10 and 11). Specifically I think it would helpful to have a list of tokens for colors like at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-05T20:12:04.673+00:00
Veikko Eeva 1 Reputation point
commented 2022-08-09T06:56:46.407+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,231 Reputation points Microsoft Vendor
0 answers

.NET Maui Canvas moves content on window resize

Hi, I'm having troubles with canvas drawing for a MAUI app. When I draw something on the canvas and resize the parent window, everything get moved from their initial position. This is the position of the object before the resize …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-08T10:32:28.223+00:00
Giacomo Matteucci 1 Reputation point
commented 2022-08-09T05:51:42.23+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,231 Reputation points Microsoft Vendor
0 answers

VerticalScrollBarVisibility property not working in ListView in .NET MAUI

Hi, I have created a ListView in which i am showing some items, I have observed that VerticalScrollBarVisibility property not working in ListView in .NET MAUI.Unable to find out the cause behind it. Right now i am using Version 17.3.0 Preview 6.0 of…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-03T14:49:15.707+00:00
Sanjay Kumar Jha 151 Reputation points
commented 2022-08-09T01:06:48.047+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,231 Reputation points Microsoft Vendor
0 answers

.Net Maui spacing within collection view

I am having some trouble formatting items in a collection view. How do I set the spacing between elements in a collection view (see the attached file for the XAML) ? I always seem to end up with double spacing. Also how do I get the new items…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-03T08:04:37.587+00:00
Brenden Jacobson 6 Reputation points
commented 2022-08-08T08:52:42.97+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,901 Reputation points Microsoft Vendor
1 answer

Sporadic System.Runtime.InteropServices.COMException while attempting to get WinUI AppWindow

I am using a widely used C# snippet (for instance here, also same code suggested as an answer to my earlier question) to get a WinUI AppWindow for setting start-up window dimensions. Lately I'm getting System.Runtime.InteropServices.COMException…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-07-20T14:21:43.21+00:00
dg2k 1,386 Reputation points
commented 2022-08-08T05:40:53.443+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,751 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

WebViewRenderer is deprecated from .NET MAUI; Doesn't suggest alternative

I'm migrating Xamarin project to MAUI and migrated most of my code. However, Microsoft.Maui.Controls.Compatibility.Platform.Android.WebViewRenderer is giving a warning that it's deprecated with the following message: 'WebViewRenderer' is obsolete: This…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,926 questions
asked 2022-08-03T04:49:41.147+00:00
Daniel Chang 21 Reputation points
accepted 2022-08-07T18:04:54.427+00:00
Daniel Chang 21 Reputation points
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.
2,926 questions
asked 2022-07-02T15:56:22.827+00:00
john murray 11 Reputation points
commented 2022-08-07T12:13:35.463+00:00
john murray 11 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.
2,926 questions
asked 2022-08-05T13:15:24.333+00:00
dg2k 1,386 Reputation points
accepted 2022-08-06T06:20:38.067+00:00
dg2k 1,386 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.
2,926 questions
asked 2022-08-03T21:23:39.927+00:00
dg2k 1,386 Reputation points
commented 2022-08-06T05:37:00.673+00:00
dg2k 1,386 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.
2,926 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.
2,926 questions
asked 2022-08-04T21:11:44.373+00:00
dg2k 1,386 Reputation points
accepted 2022-08-04T22:13:23.07+00:00
dg2k 1,386 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.
2,926 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.) 26,751 Reputation points Microsoft Vendor