Microsoft Q&A

.NET MAUI

1,780 questions

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.

Browse all .NET tags

1,780 questions with .NET MAUI tags

Sort by: Updated
2 answers

I am using Sqlite and Dapper. I need to bypass an exception error and return an empty row when there are no records in the Table or the Database File or Table does not exist.

Hi all Friends, I am returning rows from a Sqlite/Dapper transaction. And if I run into an exception instead of the application crashing, I would like to return an empty row. Thanks !

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 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.
8,837 questions
asked 2023-09-06T19:45:21.7633333+00:00
Ronald Rex 1,211 Reputation points
answered 2023-09-07T15:51:58.9033333+00:00
Karen Payne MVP 32,511 Reputation points
2 answers One of the answers was accepted by the question author.

Why does a .NET MAUI app, for Windows 10, require the "runFullTrust" capability?

Using Visual Studio 2022 Enterprise 64-bit v17.4.2 on Windows 10 v22H2 64-bit Repro steps. Create a new project, ".NET MAUI App", with the default .NET 6.0 selected as part of the new project wizard Click the run button from the…

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.
584 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
729 questions
asked 2022-12-04T14:13:40.687+00:00
Dave Calkins 51 Reputation points
commented 2023-09-07T15:25:12.62+00:00
Natashja Singleton 0 Reputation points
0 answers

Can't Compile MAUI Android on .Net 7.0.400

I can't compile a release version of my android app using the latest SDK, i can compile a debug but this is the error i get: 1>C:\Program Files\dotnet\sdk\7.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(470,5): error : Error:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-06T04:17:57.6666667+00:00
Julian Mustatea 0 Reputation points
edited a comment 2023-09-07T14:01:55.22+00:00
Julian Mustatea 0 Reputation points
2 answers

Maui for android NavigationBar backgroundColor

Hello all. Please how do I change NavigationBar backgroundColor to color "#ECE5DD" Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-06T20:25:25.14+00:00
Haviv Elbsz 1,126 Reputation points
commented 2023-09-07T13:11:46.0166667+00:00
Haviv Elbsz 1,126 Reputation points
0 answers

Missing class android.window.OnBackInvokedCallback (referenced from: android.window.OnBackInvokedCallback androidx.activity.OnBackPressedDispatcher.mOnBackInvokedCallback and 4 other contexts)

Hello! I am new with dotnet MAUI, still learning while working. I am trying to build my Android Application, I use my physical Device (Android 6.0 API 23). If I Debug or make Release the app is compiling and building without any errors and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 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.
825 questions
asked 2022-12-31T15:05:20.33+00:00
YouBT 1 Reputation point
commented 2023-09-07T12:52:28.21+00:00
George Findulov 0 Reputation points
0 answers

Maui - how to run wpf app with process in mac

Hi, It possible to run WPF app using PROCESS in MAUI under MAC ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T12:06:28.2133333+00:00
דני שטרית 1,061 Reputation points
0 answers

Maui - Bit locker in MAC

Hi, I used this code to check if USB is bit locker , how is done in MAC ? Thanks, #if WINDOWS using Microsoft.WindowsAPICodePack.Shell.PropertySystem; using Microsoft.WindowsAPICodePack.Shell; namespace GssdDesktopClient.Maui.Helpers { public class…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T12:02:51.3566667+00:00
דני שטרית 1,061 Reputation points
0 answers

Maui - impersonation in MAC

Hi, How i implement in MAC impersonation ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T11:59:30.3666667+00:00
דני שטרית 1,061 Reputation points
0 answers

Running MAUI app in MAC

Hi, I have Maui app , i want to run on mac. How is can be done ? There is online machine to run this app. Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T11:56:57.27+00:00
דני שטרית 1,061 Reputation points
1 answer

.Net MAUI app unable to run on Windows server 2016 machine

Hi Team, I am working on Visual Studio 2022 on windows server 2016 machine. I have created a new .Net MAUI project, while running it( by selecting windows machine), getting below error - dep0600: deployment failed. entrypointnotfoundexception - unable…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,694 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-06T17:59:50.5266667+00:00
salilsingh-9961 221 Reputation points
answered 2023-09-07T09:02:17.3333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 52,776 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Why does OpenWindow on button click lead to an empty page?

Hello, The default text of my "second page": "Welcome to .NET MAUI!" does not show. Instead, I see a page that is completely empty. What must I do for the default text to show? Here is my code: private void ClkSecond (object sender,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,694 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 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.
8,837 questions
asked 2023-09-06T21:57:27.16+00:00
Regentesse.x 0 Reputation points
accepted 2023-09-07T09:00:35.97+00:00
Regentesse.x 0 Reputation points
0 answers

Future of .NET for Android and .NET for iOS

We've been using Xamarin native (Xamarin.iOS and Xamarin.Android) for about 8 years to build a cross-platform mobile application. With the gradual shift towards .NET for iOS and .NET for Android as replacements for Xamarin.iOS and Xamarin.Android, we're…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T08:33:59.1333333+00:00
Florian Sey 0 Reputation points
0 answers

App Crashes when I am taking pictures on Android devices(Samsung tab and mobile)

Media Picker Interface For Maui Followed these steps to capture image in my android device(Samsung tablet and Samsung mobile phone with latest API).The app crashes frequently once you capture the image. Tried debugging but no information is retrieved…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-01T05:03:40.6566667+00:00
Albin Lukose 0 Reputation points
commented 2023-09-07T05:51:27.4633333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 20,496 Reputation points Microsoft Vendor
2 answers

Errors MSB3027 and MSB3021, cannot copy file

Hi Visual Studio 2022. Created my first MAUI solution using DevExpress MAUI template. Compiling the solution I get errors given below at the end. I tried several thing, permissions on temp folder, changing temp folder to a different folder/drive. Nothing…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,694 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-07-20T17:14:41.0033333+00:00
-- -- 771 Reputation points
answered 2023-09-07T03:21:27.26+00:00
John Rutterford 0 Reputation points
0 answers

Maui tells me I have a problem but surely it could narrow it down

In my Maui app, I get the message: [0:] Microsoft.Maui.Controls.Element: Warning: Microsoft.Maui.Controls.Label is already a child of Microsoft.Maui.Controls.Grid. Remove Microsoft.Maui.Controls.Label from Microsoft.Maui.Controls.Grid before adding to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-05T17:23:09.5+00:00
WillAutioItrax 196 Reputation points
commented 2023-09-07T02:00:24.21+00:00
Will Autio 0 Reputation points
0 answers

How to distribute MSIX package in Company Portal using Microsoft Intune?

We have developed a .NET MAUI windows application. We have also published the MSIX package from visual studio which also generates certificate and PowerShell scripts. Now we want to distribute that application to the user using company portal. Microsoft…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
3,219 questions
asked 2023-09-06T05:11:55.19+00:00
Lohith K K 60 Reputation points
commented 2023-09-07T01:31:36.2966667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 20,496 Reputation points Microsoft Vendor
1 answer

.NET Maui: how do you process low memory notifications from iOS

iOS sends warnings to an app when it approaches its memory limit. How do you process those warnings in a .NET Maui app? (I see that for Android, .NET Maui supports delegates OnApplicationLowMemory and OnApplicationTrimMemory, but I do not see any such…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-06T02:48:46.1+00:00
Kurt K 96 Reputation points
edited an answer 2023-09-07T00:46:51.69+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,071 Reputation points Microsoft Vendor
1 answer

System.IO.FileNotFoundException: '' when running app after deployment to Android device

Hi I have suddenly started getting 'System.IO.FileNotFoundException: ''' error. Have deleted bin and obj folders and ran Clean but no luck. How can I fix this please? Thanks Regards

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-06T16:47:44.3733333+00:00
-- -- 771 Reputation points
answered 2023-09-06T18:38:21.9833333+00:00
-- -- 771 Reputation points
0 answers

No compatible code running on the thread

I hit F5 and receive error "No compatible code running on the thread" https://github.com/proficad/MauiApp2.App

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-08-19T14:49:38.8+00:00
Vaclav Jedlicka 41 Reputation points
commented 2023-09-06T14:39:28.6333333+00:00
Vaclav Jedlicka 41 Reputation points
1 answer One of the answers was accepted by the question author.

Can we able to modify the design of toggle switch in maui ?

Need to increase the Black dot size

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-05-04T04:52:36.3566667+00:00
Sowndarrajan Vijayaragavan 250 Reputation points
edited a comment 2023-09-06T13:07:06.4233333+00:00
GV 0 Reputation points