dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

[Android] Fix RadioButton using ContentPresenter not rendering #25947

Closed jsuarezruiz closed 2 hours ago

jsuarezruiz commented 2 days ago

Description of Change

Fix RadioButton using ContentPresenter not rendering on Android. Found the cause of the problem. The binding from ContentPresenter changed here https://github.com/dotnet/maui/commit/4c3a09c249f0b6a0980c99e160a9985749c761bb#diff-f01d408e1d2b3cd4a4c1bcf731586c215c9d57d4585d6815d5c89118a1ef3f44R20 (changes to allow trimming).

This PR apply changes to implement IContentView.Content in the RadioButton class.

Issues Fixed

Fixes #25887 The changes here, will also fix https://github.com/dotnet/maui/issues/24949

PureWeen commented 2 hours ago

/backport to release/9.0.1xx

github-actions[bot] commented 2 hours ago

Started backporting to release/9.0.1xx: https://github.com/dotnet/maui/actions/runs/11958376858