Relative Content

Tag Archive for .netmaui

Dynamically add MenuFlyoutElement to contect menu in .NET 8 Maui

I am trying to learn Maui by creating a small application. Part of the application will be getting available comm ports and updating the context menu for selection. For now, I am only trying to add a string to an element and then add the element to the list.

Dynamically add MenuFlyoutElement to contect menu in .NET 8 Maui

I am trying to learn Maui by creating a small application. Part of the application will be getting available comm ports and updating the context menu for selection. For now, I am only trying to add a string to an element and then add the element to the list.

.Net MAUI mimic a Combo Box

I’m still trying to learn .Net Maui and I want to use the equivalent of a combobox. I found this on YouTube https://www.youtube.com/watch?v=gnKkUtBK23A that shows one way of making a combobox using Expander. The video was probably made for dotnet 6 and I’m using dotnet 8 so I have had to make some changes. I’m also using VS 17.10.4 on Windows 11. The basic idea is to have a list of items in an Expander. When the Expander is clicked, the list displays. Then, when an item is clicked, the item is supposed to show in the header and the list closes. This can then be repeated any number of times. My code works in so far as the item click is detected (message displays he selected item in DebugView) but the header label doesn’t update and the list remains open. I’ve checked my code but I still can’t work out why the bindings aren’t working. Here is my code:
MauiProgram.cs

Improving Location Accuracy in .NET MAUI User Tracking Application

I’m developing a user tracking application using .NET MAUI, but I’m encountering significant issues with location accuracy. The captured latitude and longitude often show incorrect positions, even when the user is stationary. I’m looking for ways to improve the accuracy and reliability of location data. Here are the details: