Skip to content

ContentPresenter just rendering component string in .Net9 #25887

@DrJShoff

Description

@DrJShoff

Description

Im using ContentPresenter to redifine RadioButton appearance. This has stopped working on Android after upgrading to .Net9.

Steps to Reproduce

  1. Create new MAUI project.
  2. Follow this example to reproduce: https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/radiobutton?view=net-maui-9.0#redefine-radiobutton-appearance

Image

Expected behavior is to get the components rendered correctly

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

It renders correctly if targeting .Net8

Relevant log output

Metadata

Metadata

Assignees

Labels

area-controls-radiobuttonRadioButton, RadioButtonGroupfixed-in-9.0.21i/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.platform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions