9,195 questions
12
votes
3
answers
16k
views
How to gracefully shutdown (or put to sleep) a .Net Maui App
The web has many articles (and videos) on starting a new Maui app. Microsoft's Maui documentation does discuss the MauiApp lifecycle and enumerates delegates to trigger the appropriate events for each ...
6
votes
1
answer
14k
views
.net MAUI: how to draw on canvas
I pretty new to c# and maui.
I want to understand how can i draw on canvas. I read the docs and find something online.
I want to draw simple line.
What I did is created class inside MauiProgram.cs
...
3
votes
1
answer
834
views
Maui publish error "The RuntimeIdentifier 'android-arm' is invalid."
I create new maui blazor project and try to publish it for android, but at the and of publish
a have error
The RuntimeIdentifier 'android-arm' is invalid.
I set targer "android-arm", and i ...
14
votes
8
answers
12k
views
How to display (Google) Maps on .Net Maui
I'm playing around with .Net Maui. I'd like to add a map to my demo app. Unfortunately it seems that the map control has not been migrated yet. Also it seems that the promised implementation of the ...
1
vote
1
answer
943
views
Maui framework doesn't display sliders correctly
I have been dipping my toes in the .NET Maui framework, but unfortunately so far it has been quite disappointing. There seem to be multiple errors related to Shell (title view not working properly) ...
0
votes
0
answers
595
views
How to make hybrid blazor NET MAUI installed on Android use *.razor files from a remote server
What I need to do to make a blazor hybrid app installed on Android work with a remote blazor components. Let say the UI runs on Android but server logic runs on Windows. The hybrid blazor app created ...
1
vote
1
answer
1k
views
How to Expand BlazorWebView to the phone size without specifying hard coded values in MAUI app
MAUI doesn't accept values like "auto" or "*" so I am kind of stuck how to make the webview expand to the all phone screen area.
<ContentPage xmlns="http://schemas....
0
votes
1
answer
609
views
MAUI Preview 12 iOS Debugging
After upgrading to VS2022 preview 3 and Maui Preview 12 I'm no longer able to debug iOS apps. Break point so get hit but no code is visible.
Appliation in break mode
I have tried this on a new ...
28
votes
6
answers
46k
views
VS 2022 Preview not showing the XAML designer
I've just installed VS 2022 preview to use Maui but there seems no way to see a designer view of the XAML, I want to drag and drop controls onto the page but all I get is an ancient looking XAML text ...
6
votes
3
answers
5k
views
Keyboard not hiding after push done or leave Entry
I am facing a problem with hiding the Keyboard after I am done using it or leave the Entry and touching the screen somewhere.
In Xamarin Forms, it is working normally, the Keyboard is hiding but in ...
7
votes
2
answers
6k
views
.NET Maui: Vector/SVG splashscreen not correctly resized
Testing to add a custom splash screen for a Maui app, I read some Microsoft docs that says
At build time, the splash screen image is resized to the correct size
for the target platform and device. ...
0
votes
1
answer
2k
views
Updating content in .Net Maui BlazorWebView
We are about to make a hybrid app of sorts of our current Web based app to enable offline usage along with some more usage of native app functionality in mobile devices. The app we are developing is ...
1
vote
1
answer
2k
views
Blazor + MAUI: How to use .net api controllers from Blazor server/.net app in MAUI desktop app?
I want to transfer an existing Blazor Server app to a MAUI Blazor Desktop application.
However, I am currently not able to transfer the web api controllers which are started with the blazor server app ...
1
vote
2
answers
815
views
Setting MauiSplashScreen tag on MyMauiProject.csproj with a mp4 file throw null exception from Resizetizer/SkiaSharpBitmapTools, looks hardcoded trash
Setting the MauiSplashScreen tag inside my net6.0 MyMauiProject.csproj pointing to a mp4 file makes it throw a null exception from Resizetizer/SkiaSharpBitmapTools. It looks like hardcoded trash from ...
5
votes
4
answers
20k
views
How do I add a toolbar item .net maui?
As the question states I am trying to add a toolbar item/button to shell for adding a database item.
Normally in Xamarin forms I was able to add a toolbar item with
<ContentPage.ToolbarItems>
...
10
votes
3
answers
16k
views
.NET Maui Get screen Y and X
I cant seem to find how to get the screen size of the screen.
I tried the Xamarin forms way:
mainDisplayInfo.Height;
Maui for windows doesnt work like this, anyone know how I can do this?
Thanks!
1
vote
0
answers
955
views
.NET MAUI Blazor Android build apk
I need to release .apk signed file. When I am trying to install my archived package, application is crashed right after loading BlazorMobileView on the device.
Deployment via release mode doesnt work ...
6
votes
1
answer
7k
views
Failed to update the advertising manifest
I was working on blazor over maui, vs2022 17.1 preview 2. Then it stopped working, running maui-check on power shell, I get some errors, I tried to fix them and then I get the following:
Failed to ...
0
votes
0
answers
36
views
Adding a SQLite database to .NET MAUI App crashes with error: DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies: [duplicate]
I'm adding a SQLite Database to a .NET MAUI application
When running the app I get an InnerException message
DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its
dependencies: The ...
0
votes
1
answer
715
views
Xamarin.Essentials DeviceDisplay class in .NET6 MAUI
Xamarin.Essentials' class DeviceDisplay.KeepScreenOn does not have an equivalent in .NET6 MAUI as yet.
Is this intentional? or should I be using something else to stop the screen timing out?
5
votes
4
answers
11k
views
CollectionView is not scrolling without setting the height property
In my .Net Maui project I'm using a CollectionView within a ControlTemplate. The implementation is looking like this:
<ContentView.ControlTemplate>
<ControlTemplate>
<Grid&...
1
vote
1
answer
724
views
"arg_targetinvocationexception" - how determine the cause?
enter image description here
private HttpClient CreateHttpClient(string UserToken = "")
{
HttpClientHandler handler = new HttpClientHandler();
...
1
vote
1
answer
423
views
Google API Key restriction on Xamarin MAUI iOS, Android ( Denied Bundle Identifier with Sha-1 )
We would like to restrict Google Api Keys in our Xamarin iOS, Android Apps.
When we restrict them from Google Cloud, the api denied our request
Why does it not work?