Microsoft Q&A

.NET MAUI

885 questions

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

Browse all .NET tags

885 questions with .NET MAUI tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

How can I use WeakReferenceMessenger instead of MessagingCenter in my iOS project?

I get the following message when I use MessagingCenter in my .NET 7.0 iOS project: [deprecated] class Microsoft.Maui.Controls.MessagingCenter Associates a callback on subscribers with a specific message name. CS0618: 'MessagingCenter' is obsolete: 'We…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 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.
6,932 questions
asked 2023-01-29T16:30:19.28+00:00
Kim Strasser 341 Reputation points
commented 2023-01-30T12:25:32.74+00:00
Kim Strasser 341 Reputation points
1 answer

Net Maui How to show or hide ( collapsed ) content in stacklayout or grid ?

<StackLayout ZIndex="1" x:Name="Page" IsVisible="true" ></StackLayout> <StackLayout x:Name="Page2" IsVisible="false" ></StackLayout>

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-15T00:02:06.5266667+00:00
Sami 101 Reputation points
commented 2023-01-30T09:41:57.34+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
1 answer

Loop through Controls in ScrollView and Get the Data

Hi, In below XAML: <ScrollView x:Name="ScrollViewDetails" Grid.Row="1"> <VerticalStackLayout> <VerticalStackLayout x:Name="StackLayoutPhones"> <BindableLayout.ItemTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-20T21:11:41.77+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-01-30T09:30:43.07+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
0 answers

Empty listview items after down and up scrolling

Hi, iOS app, MVVM pardigm, I populate an ObservableCollection of a custom type and through BindingContext populate a ListView on the Page. that works fine. I can see the ListView items properly and can scroll it. What I constantly see is when I scroll…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-30T09:02:03.32+00:00
yaron kadman 81 Reputation points
1 answer

Intent Filter / DeepLink .Net MAUI

I want to implement an application that will be viewable in my application using Intent Filter. I added in the MainActivity.cs file Filter Intent [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.ActionView, Intent.CategoryDefault,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 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.
6,932 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
asked 2023-01-19T14:47:27.51+00:00
Влад Тигинян 0 Reputation points
commented 2023-01-30T08:47:31.04+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
0 answers

MauiSplash to fill the screen

Hi, Using: <ItemGroup> <MauiSplashScreen Include="Resources\Splash\splashscreen.svg" /> </ItemGroup> How can I make the splash image to fill the screen vertically and horizontally? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-25T21:51:19.36+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-01-30T08:46:06.15+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
0 answers

Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985} (8d59f552-5e3e-48c3-a91e-e50041b57719 id=0x2)

I am using Version VS 17.5.0 Preview 2.017.5.0 Preview 2.0. In this when I debug it with my mobile it gives me error Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985}…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-30T08:42:52.66+00:00
anil kumar 51 Reputation points
2 answers

Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page..

Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page.. any solution ? Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-19T02:40:42.8666667+00:00
Sami 101 Reputation points
answered 2023-01-30T08:38:44.5866667+00:00
Sami 101 Reputation points
1 answer

Shell Navigation and using a Dictionary to pass values.

I am trying to learn how to pass complex data types to a page using a Dictionary. As you can see in the example code below that Name was hardcoded, but I was wondering what is the best practice if I wanted to dynamically set the Name property in the view…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 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.
6,932 questions
asked 2023-01-27T15:01:59.6933333+00:00
Ronald Rex 506 Reputation points
answered 2023-01-30T08:15:55.4533333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Check if two frames are overlapping in .net maui

is it possible to detect it when two frames are overlapping (even when they don't have the same parent)? I need it for my .net maui project (A game in .net maui) this is how I have the hitboxes and players set up (the Frames will get added into…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
asked 2023-01-26T10:32:06.7033333+00:00
Mielesplayz 241 Reputation points
accepted 2023-01-30T07:53:20.1566667+00:00
Mielesplayz 241 Reputation points
0 answers

Attempting to create a slider that monitors / changes the position of a video.

I am wondering just how I can accomplish the above. I have an event which gets called as the video plays and provides the position of the video being played. I can bind the Ticks of the postion to the slider with no problem. The problem is that when…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-29T15:25:08.23+00:00
Lloyd Sheen 756 Reputation points
commented 2023-01-30T07:26:25.8266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
0 answers

Display mauiasset PDF in webview ERR_ACCESS_DENIED.

I have a VS2022 dotnet prog which runs on IOS and Android Simple requirement - Open mauiAsset pdf file and display it in webview. 1 page no manipulation simple Now I know Webview CAN display PDF - I can load it with a pdf on a webserver. How do I open…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-29T11:28:28.2+00:00
john murray 1 Reputation point
commented 2023-01-30T07:16:40.31+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
1 answer

APT2144 invalid file path

VS 2022 Preview... Trying to build and run "Notes" tutorial getting 2 APT2144 invalid file path error in file Xamarin.Android.Aapt2.targets. Error message gives a file path, which I can find using File Explorer. Help on error message says it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-28T21:39:20.0033333+00:00
Scott Phillips 0 Reputation points
answered 2023-01-30T06:47:02.67+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,061 Reputation points Microsoft Employee
1 answer

How to use MauiHotReloadHelper

I created a MAUI project with MainPage without Xaml code public class MainPage : ContentPage { public MainPage() { Content = new Label { Text = "Hello world!" }; } } I want to use Hot Reload from VSCode. For this I use Clancey's…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-29T10:55:24.72+00:00
Nikita Romanov 0 Reputation points
commented 2023-01-30T06:39:16.88+00:00
Nikita Romanov 0 Reputation points
1 answer

using FileSystem.OpenAppPackageFileAsyn to open and play mp3 files stored on Google Drive

Hi I am using VS 2022 and C# to develop a MAUI App which needs to be deployed for IOS/Android and Windows. I would like to play audio files that are stored on Google Drive using audioPlayer. Can I use FileSystem.OpenAppPackageFileAsyn to open the file,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 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.
6,932 questions
asked 2023-01-22T22:11:13.7033333+00:00
Riffy 206 Reputation points
commented 2023-01-30T05:30:46.5266667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,061 Reputation points Microsoft Employee
1 answer

What is the MAUI equivalent of .NET Core's `_Layout.cshtml`?

You see, there's this image which needs to show up on every page of my MAUI app, and if it were a .NET Core app, I'd simply add it in _Layout.cshtml. However, with MAUI, I don't see a way of doing that easily. How would I go about this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
asked 2023-01-29T15:01:10.3966667+00:00
Uchchay Dugal 1 Reputation point
answered 2023-01-30T02:20:52.5166667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,061 Reputation points Microsoft Employee
0 answers

Why does MAUI iOS not build with scaling factors in the project file?

Since the last upgrade of VS, the MAUI iOS project can't build if the second group of splash image scaling factors are present, e.g. ""Resources\Splash$placeholder$.scale-xxx", in the project file. VS version and extensions in use…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 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,396 questions
asked 2023-01-22T17:01:02.1966667+00:00
Marc George 61 Reputation points
commented 2023-01-30T01:48:21.52+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,061 Reputation points Microsoft Employee
1 answer

Failed to compile third-party dynamic libraries using AOT in the MAUI(Andriod) project?

Create a MAUI APP project with VS2022(Version 17.4.4) install TencentCloud.dll from nuget; direct publish project, it takes very long,long time; about three hours. finally compiler…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-30T01:36:17.93+00:00
晓宁 焦 0 Reputation points
answered 2023-01-30T01:37:38.85+00:00
晓宁 焦 0 Reputation points
1 answer

Connect programmatically to a wifi network

Hi, I'd to know how can I connect do a wifi network with hide ssid programmatically? Thanks. Renan Paiva

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-26T14:35:19.6533333+00:00
Renan Paiva 1 Reputation point
edited an answer 2023-01-30T01:17:58.8966667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,061 Reputation points Microsoft Employee
1 answer

How to configure Auto update in MAUI application ?

Hi, Consider we have developed a MAUI application, for deployment of this MAUI application in multiple machine we created a setup file / package following this link -…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-20T05:42:27.7633333+00:00
Sanket Vinod Solanki 0 Reputation points
commented 2023-01-30T01:11:20.75+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,061 Reputation points Microsoft Employee