Relative Content

Tag Archive for xamlmaui

Changing background color of button alters other button styles in .NET MAUI

I just (finally) upgraded an application from Xamarin to MAUI. After doing the upgrade, I found that any background color (other than the default) applied to a button causes the button to grow in vertical size, as well as have an ugly white box around it with a box shadow. This is true throughout my entire application, but here’s an example:

MAUI ContentView that both exposes bindings and binds

If I inherit from ContentView to create a reusable control, I can make a control that binds its UI elements to it’s own view model, or I can make a control that exposes a BindableProperty to its parent. I haven’t figured out how to do both.

Maui radio button border color not visible in dark mode?

Trying to fix an issue I’m seeing on both Android & iOS in dark mode where the border of my radio button is not showing up. Once the button is pressed, the filled circle shows up for the checked selection, but I need both unchecked radio button circles to be there so the user knows the buttons are there. Anyone know how to get radio button formatting to work correctly in dark mode?

.net MAUI Grid in ListView not spacing columns properly

Im trying to make a list of items where each item has the same amount of columns containing a label. Since the text in each label is of different size I want the columns to be a percentage of the available width so they line up between the different list items. This is where I run into problems. Even tho I set the Grid column width to “*” they are not using the available width. I’m looking for a solution comparable to the WPF SharedSizeGroup.