4,003 questions with .NET MAUI tags

Sort by: Updated
5 answers

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 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.
11,338 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 25 Reputation points
answered 2025-03-13T11:51:28.4433333+00:00
Max Borrmann 5 Reputation points
1 answer One of the answers was accepted by the question author.

Fonts become italic

Hi, In Maui template we have: fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); Later I publish the app as exe. When I create setup with…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-10T15:23:18.23+00:00
Dani_S 4,191 Reputation points
commented 2025-03-13T10:38:18.28+00:00
Dani_S 4,191 Reputation points
0 answers

Error loading font 'Assets/Fonts/Segoe UI.ttf'. on log

Hi, I have this error when running the MAUI as exe. I do not have this fonts on my app in RESOURCES/FONTS and not resister it. 2025-03-13 11:57:26,921 [1] ERROR Microsoft.Maui.FontManager - Error loading font 'Assets/Fonts/Segoe…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-13T10:01:37.4166667+00:00
Dani_S 4,191 Reputation points
0 answers

Highlighting text within a editor

Hi, I'm using .Net 9 with MAUI. Highlighting text within a editor. The highlight is not released. Remains highlighted even after selecting other text. <telerik:RadBorder Grid.Row="2" Grid.Column ="0" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-12T11:20:07.41+00:00
Dani_S 4,191 Reputation points
commented 2025-03-13T09:49:58.2966667+00:00
Dani_S 4,191 Reputation points
0 answers

Dirty log in login

Hi, I used log4net. When login I got this errors in the log, what it come from? Thanks. 2025-03-12 15:25:00,516 [1] ERROR GssdDesktopClient.Maui.ViewModels.LoginViewModel - LoginCommand System.InvalidOperationException: PlatformView cannot be null here …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-12T13:28:18.6933333+00:00
Dani_S 4,191 Reputation points
commented 2025-03-13T09:49:00.31+00:00
Dani_S 4,191 Reputation points
0 answers

Unable to debug in Mac in Code

I have a Macbook with OS Sequoria. Xcode version 16.2. When I tried installing MAUI .NET 9.0.200 and tried debugging in VS Code. I got the below error: System.UnauthorizedAccessException: Access to the path…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-13T09:00:35.2933333+00:00
Chinmay Dole 225 Reputation points
1 answer

flipping card update

I have my card using CommunityToolkit.Mvvm.Messaging; using System.Diagnostics; namespace LiveTileControl.Controls { public partial class LiveTileControl : ContentView { private bool _isFlipping; private bool _isDataAvailable; //…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-12T23:15:05.47+00:00
Eduardo Gomez Romero 1,335 Reputation points
edited an answer 2025-03-13T07:53:53.2533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,166 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Flyout IsPresented is property is not working as expected

I tried to determine whether the Flyout is presented using this approach: https://learn.microsoft.com/en-us/answers/questions/2200916/how-to-detect-the-flyout-open-and-close-in-maui It works fine in most cases, but I encountered an issue in a specific…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-10T17:24:12.1933333+00:00
Vaibhav Methuku 100 Reputation points
accepted 2025-03-13T07:44:45.3733333+00:00
Vaibhav Methuku 100 Reputation points
0 answers

Picker.Focus() Not working in Windows - MAUI

Hello, I had a layout, Basically on tapping on that layout, I want to focus my picker. Unfortunately. picker.focus() is not working. Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-13T07:31:30.59+00:00
Vaibhav Methuku 100 Reputation points
1 answer One of the answers was accepted by the question author.

Android-specific code on MAUI: Trouble with Android.Resource

What I am trying to achieve right now is something I've done before in other prototypes where I work, but I haven't run into this problem so far. I will give as much context as possible without making this question too long. Our app will use ARCore on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-11T17:26:09.4233333+00:00
Kleber Ferreira 20 Reputation points
commented 2025-03-13T02:44:43.3066667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,691 Reputation points Microsoft External Staff
0 answers

ANDROID REDIRECT URI

I am trying to test the sample https://github.com/Azure-Samples/ms-identity-dotnetcore-maui/tree/main/MauiAppWithBrokerTo run in Android, it requires that "AndroidRedirectUri" be defined. The Entra ID portal requires a hash key that has to be…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-11T11:29:25.92+00:00
Giorgio Sfiligoi 326 Reputation points
commented 2025-03-13T02:42:15.0633333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,211 Reputation points Microsoft External Staff
0 answers

how to draw this in .net.android

there is two points to one circle how to draw it? I am using canvas in OnDraw points:(p0x,p0y)and (p1x,p1y) and the center of the circle is (x,y) how to draw the line and the circle? I know how to draw circle but I do not want to draw the rest of the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-12T14:29:45.3+00:00
mc 5,186 Reputation points
commented 2025-03-13T02:32:06.6066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,211 Reputation points Microsoft External Staff
0 answers

pick appropriate .json data in Tab (ShellContext)

As a senior+ hobby developer I'm stuck. I know - whoever helps - this is not what this GitHub forum is for and, I know, this is an imposition! Anyway, hopefully somebody has some time and is willing to help, thank you. my APP:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-12T09:25:58.7233333+00:00
Eduard Kaufmann 291 Reputation points
commented 2025-03-13T02:26:05.2533333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,211 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

flipping card update

I create a live tile using System.Diagnostics; namespace LiveTileControl.Controls; public partial class LiveTileControl : ContentView { private bool _isFlipping; public LiveTileControl() { InitializeComponent(); …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-05T23:41:45.6166667+00:00
Eduardo Gomez Romero 1,335 Reputation points
accepted 2025-03-12T23:04:29.62+00:00
Eduardo Gomez Romero 1,335 Reputation points
1 answer One of the answers was accepted by the question author.

Flyout Navigation - Mouse hover

Hi, In continue to https://learn.microsoft.com/en-us/answers/questions/2202802/flyout-navigation-improvements?page=1#answer-1989782 How I support mouse hover when navigation on collection view ? I want Custom Cursor hand when hovering over an item in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-10T09:39:24.4233333+00:00
Dani_S 4,191 Reputation points
commented 2025-03-12T18:34:40.49+00:00
Dani_S 4,191 Reputation points
1 answer

MAUI: How to increase the slider height

I have a slider like below: <Slider x:Name="audioSlider" Grid.Row="0" Minimum="0" VerticalOptions="Center" HorizontalOptions="Fill" ThumbColor="Transparent" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-06T15:44:01.99+00:00
Sreejith Sreenivasan 961 Reputation points
commented 2025-03-12T15:22:07.75+00:00
Sreejith Sreenivasan 961 Reputation points
1 answer

How to create Custom Themed Toggle Switch [Switch Class] (Microsoft.Maui.Controls)?

How can we design a custom themed toggle switch in .NET Maui with .NET 9; As we know we can do it using C# to design the switch and call it in XAML If somebody knows, please share your thoughts on this topic. For reference I have shared two links of…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-12T15:18:36.0533333+00:00
Soumyadip Majumder 100 Reputation points
answered 2025-03-12T15:18:36.0666667+00:00
Q&A Assist
2 answers 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.
4,003 questions
asked 2023-05-04T04:52:36.3566667+00:00
Sowndarrajan Vijayaragavan 450 Reputation points
answered 2025-03-12T15:11:23.4233333+00:00
Soumyadip Majumder 100 Reputation points
1 answer

Issue Populating CollectionView with ObservableCollection in .NET MAUI

Hi, I am facing an issue in my .NET MAUI application where I am trying to populate a CollectionView using an ObservableCollection<LeaveSummary> in my ViewModel. The data is correctly fetched, and I can see the ObservableCollection.Count in a Label,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-06T18:02:38.5266667+00:00
Arnab Mukherjee 80 Reputation points
commented 2025-03-12T14:25:06.8666667+00:00
Arnab Mukherjee 80 Reputation points
1 answer

How to detect the flyout Open and Close in MAUI

I would like to detect the flyout open and closing event

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,003 questions
asked 2025-03-04T16:58:37.46+00:00
Vaibhav Methuku 100 Reputation points
commented 2025-03-12T07:12:14.5866667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,166 Reputation points Microsoft External Staff