dotnet / docs-maui

This repository contains documentation for .NET Multi-platform App UI (MAUI).
https://docs.microsoft.com/dotnet/maui
Creative Commons Attribution 4.0 International
221 stars 193 forks source link

|RadioButton|Warning - Android does not support View as the Content property of RadioButton; the return value of the ToString() method will be displayed instead. #2283

Open navya0422 opened 3 months ago

navya0422 commented 3 months ago

Type of issue

Missing information

Description

No information about the |RadioButton|Warning - Android does not support View as the Content property of RadioButton; the return value of the ToString() method will be displayed instead. This warning is coming up even after using a Control Template [Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/controltemplate?view=net-maui-8.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/controltemplate.md

Document Version Independent Id

d55cdb6d-0144-0c97-c373-8728b20664a9

Article author

@davidbritch

Metadata

davidbritch commented 3 months ago

@navya0422 That's explained in the RadioButton doc.

anchorit3 commented 3 months ago

@davidbritch I think @navya0422 means that warning is presented even if we are using ControlTemplate in RadioButton. In my opinion when we already adjusted our code with ControlTemplate to support features across all platforms the warning:

Microsoft.Maui.Controls.RadioButton: Warning: Warning - Android does not support View as the Content property of RadioButton; the return value of the ToString() method will be displayed instead.

shouldn't be displayed anymore or maybe we should have a way to suspend it (or maybe this is already possible but I dont know about it).