Relative Content

Tag Archive for xamlmvvmmauimaui-community-toolkit

How to bind a label text to a method in maui?

I have two models, Unit and Building. In Unit, there is a BuildingId (a foreign key) field which ties to a Building object. I am writing a collection view to display all the Units. I also have a service method to get a building object based on its Id. I can display the BuildingId for each Unit in a label in the collection view. However, i don’t know how to display the Building.Name instead.

Crashing Issue When Toggling Recording Animation in .NET MAUI Project

“I’m currently working on a .NET MAUI project. Let’s say a user can start and stop recording using the same button. I’d like to have a continuous animation while recording, and when the button is stopped, the animation should stop as well. This functionality works, but when I click the button multiple times quickly in succession, the app crashes and stops functioning. Any advice on how to address this issue would be greatly appreciated?