Relative Content

Tag Archive for .netmaui

.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:

.net MAUI dynamic picker not showing data

I trying to show data in dynamically created pickers. This is my code.This data is loading in viewmodel but its not visible in my picker. When user enter No Of Nights as 2 then 2 pickers are generating. I can’t found any issues here data also loading, Only issue is not visible. Anyone have idea to fix this. Please help.