Microsoft Q&A

.NET MAUI

1,105 questions

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

Browse all .NET tags

1,105 questions with .NET MAUI tags

Sort by: Updated
2 answers

How to tie a Maui project to a specific version of Maui

With XF we have nuget packages and can build the right version every time in a more deterministic model (think CICD pipelines etc). With Maui, everything is workload based. How do we specify in the Maui projects what version of Maui to use?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-03T06:13:52.553+00:00
John Hair 371 Reputation points
commented 2022-09-11T10:03:31.907+00:00
John Hair 371 Reputation points
1 answer One of the answers was accepted by the question author.

Cannot debug my MAUI app using hot restart

I have a .Net MAUI app that I want to test and debug if needed on my iPhone without Mac. I found instructions on how this can be done here: https://learn.microsoft.com/en-us/dotnet/maui/deployment/hot-restart But on the second step I get the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-08-25T17:22:04.817+00:00
Dmitriy Reznik 211 Reputation points
accepted 2022-09-09T14:10:40.643+00:00
Dmitriy Reznik 211 Reputation points
1 answer

SecureStorage and Preference between Class and App

Hi, I have a MAUI Class Library where I set a SecureStorage value: SecureStorage.SetAsync("TempStorage", "My Name is Jassim"); but when I try to read it in my MAUI App: DisplayAlert("TempStorage",…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-08-30T13:55:58.07+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2022-09-08T09:14:40.223+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 44,311 Reputation points Microsoft Vendor
1 answer

DLL Not Found "libpsl-native" whilst attempting to create Powershell remote connection object (MAUI/BLAZOR/XAMARIN)

I wonder if anyone could help me with a problem I am experiencing in Visual Studio 2022 on the MAUI platform (although I have also tried Xamarin and Blazor platforms too). When I attempt to create a powershell remote connection object I receive the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,809 questions
asked 2022-09-06T13:12:28.637+00:00
Karl McNally 1 Reputation point
answered 2022-09-08T08:15:16.137+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,671 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Android emulators

Is there a way to use android emulators if your pc specs are too low?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-08-29T14:59:42.857+00:00
Mielesplayz 281 Reputation points
accepted 2022-09-08T06:39:51.12+00:00
Mielesplayz 281 Reputation points
1 answer One of the answers was accepted by the question author.

MAUI swipe recogniser not fier

This is my page the swipe recogniser not fier Please what I miss <?xml version="1.0" encoding="utf-8" ?> <ContentPage 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.
1,105 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.
7,614 questions
asked 2022-09-04T09:12:01.997+00:00
Haviv Elbsz 686 Reputation points
commented 2022-09-08T04:22:11.08+00:00
Haviv Elbsz 686 Reputation points
0 answers

MAUI app to run on Windows Start up

Hi! I'm currently trying out MAUI for Windows desktop and i noticed that i can't run the .exe which is on the published folder (later i noticed that it is specified in the Microsoft MAUI docs). So my question is the following: Is there any way i…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-06T15:24:36.863+00:00
Francisco Goñi 1 Reputation point
commented 2022-09-07T08:27:30.76+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,671 Reputation points Microsoft Vendor
1 answer

Restrictions on using ".NET MAUI"

We plan to develop using ".NET MAUI". ".NET MAUI" doesn't need "source code disclosure" or "copyright notice", right? ".NET MAUI" has no intellectual property related issues, right? My boss is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-06T10:03:19.51+00:00
takashi 21 Reputation points
answered 2022-09-07T03:32:47.037+00:00
Rob Caplan - MSFT 4,237 Reputation points Microsoft Employee
1 answer

How to bind to {Binding} and use converter

I need to use a converter in Maui, the problem I am having is the XAML to which I using the converter can bind individually to properties but when I try to use it with just {Binding , convertername ---- I get an XAML parsing error. The XAML that…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-06T14:14:45.283+00:00
Lloyd Sheen 936 Reputation points
answered 2022-09-06T14:23:38.36+00:00
Lloyd Sheen 936 Reputation points
1 answer One of the answers was accepted by the question author.

Is it possible to make a label update as soon as a variable changes?

I want to update the text on a label as soon as the variable connected to it updates. And if possible I want to avoid making loops to save resources. (For example: I have a string which shows your username on it, and when you change your username…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-05T09:15:58.25+00:00
Mielesplayz 281 Reputation points
commented 2022-09-06T10:25:59.687+00:00
Mielesplayz 281 Reputation points
1 answer

How to get a Layout object (such as Grid or StackPanel) from LayoutPanel object?

I am migrating Xamarin code to .NET MAUI. I am using PlatformEffect to capture the RightTapped event for WinUI. The equivalent is done for other platforms such as Android by using the SwipeView Control. Shown below are partial XAML code and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-05T14:21:50.677+00:00
dg2k 916 Reputation points
commented 2022-09-06T08:44:29.817+00:00
dg2k 916 Reputation points
1 answer

Maui, files go locked and even Resource Monitor cannot find what is locking it

Severity Code Description Project File Line Suppression State Error MAUI0000 System.IO.IOException: The process cannot access the file 'C:\Visual Stuido Stuff\Maui\DEVEXFullProject\obj\Debug\net6.0-android\resizetizer\r\drawable-xxxhdpi\nhllogo.png'…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-05T20:16:11.997+00:00
Lloyd Sheen 936 Reputation points
answered 2022-09-06T07:26:09.967+00:00
dg2k 916 Reputation points
3 answers

how to request permission of nearby device on Android

Bluetooth need permission nearby device on android 12 - API 31+ [create extending permissions for location, nearby device] [request extending permissions] This picture is what i did for request permission work with location…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 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.
7,614 questions
asked 2022-09-05T08:24:17+00:00
Jae 6 Reputation points
answered 2022-09-06T07:08:40.113+00:00
Jae 6 Reputation points
1 answer

How to get Content in MAUI Class Library?

Hi, I have below code in my MAUI Class Library but the name Content does not exists Kindly help.. namespace TempMAUIClass; using Microsoft.Maui.Controls; // All the code in this file is included in all platforms. public class…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-08-26T15:02:58.237+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2022-09-06T06:56:59.49+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,671 Reputation points Microsoft Vendor
1 answer

How can I add a context menu to UI element in MAUI?

The code below is not working, Error XLS0415 The attachable property 'ContextActions' was not found in type 'Grid' <Grid.ContextActions> <MenuItem Text="Test"/> <MenuItem Text="Test 2"/> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-08-26T03:12:34.843+00:00
Nikolay Kusch 1 Reputation point
commented 2022-09-06T06:53:08.027+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,671 Reputation points Microsoft Vendor
0 answers

How to add search functionality to dotnet maui application?

I'm creating a small notepad app by using dotnet MAUI. I already created CRUD functionality to the app. Now I want to add a search functionality to search notes. This is my code that I used to get notes. [ICommand] private async void GetNoteList() …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-08-24T14:30:44.273+00:00
Rivindhu Kudamage 1 Reputation point
commented 2022-09-06T06:50:03.963+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,671 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

disable top bar

Is there a way to get rid of this top bar?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-05T12:55:25.48+00:00
Mielesplayz 281 Reputation points
accepted 2022-09-06T06:37:28.98+00:00
Mielesplayz 281 Reputation points
1 answer One of the answers was accepted by the question author.

Remove the NavigationBar in MAUI

Hi, What is the alternative for this in MAUI? NavigationPage.SetHasNavigationBar(this, false); NavigationPage.SetBackButtonTitle(this, null); I tried: Shell.SetNavBarIsVisible(this, false); but did not work, although I already have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-03T12:53:33.207+00:00
Jassim Al Rahma 1,166 Reputation points
accepted 2022-09-05T10:52:35.447+00:00
Jassim Al Rahma 1,166 Reputation points
1 answer One of the answers was accepted by the question author.

Doble Tab to Exit in Microsoft MAUI

HI, How to integrate Double tab to exist in MAUI same as Xamarin forms. can anyone suggested me or share me some stuff. Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-03T03:18:53.95+00:00
Bhuwan 251 Reputation points
commented 2022-09-05T08:28:35.19+00:00
Bhuwan 251 Reputation points
0 answers

Exception when using System.IO.Ports

I am using SerialPort class to open a serial device on MacOS (Monterey), an exception occurs when I call Open function Example Code: SerialPort port = new SerialPort(); port.Open("/dev/cu.usbxxxx"); Exception:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,105 questions
asked 2022-09-02T10:30:39.023+00:00
Tam, Tran 1 Reputation point
commented 2022-09-05T08:23:13.217+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,671 Reputation points Microsoft Vendor