You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
Initially the RadioButton had an API to use a custom image for the bullet. Upon further inspection this was only implemented on Android and missing on iOS, UWP and MacOS. To not block the next release and still have RadioButton, the API was removed for now and this issue is here to track the progress on (re)implementing the ButtonSource API.
public static readonly BindableProperty ButtonSourceProperty
public ImageSource ButtonSource { get; set; }
Intended Use Case
Being able to use a custom image for the RadioButton bullet. Through the VisualStateManager people are able to supply images for both the checked and unchecked state.
The text was updated successfully, but these errors were encountered:
Hey @jfversluis, do RadioButton need to inherit Button?
If you need Font, Text, and Border related properties, we'd better implement IFontElement, IBorderElement,IBorderElement instead.
Technically it doesn't have to. This was taken over from a community PR and implemented like this. Possibly before the mentioned interfaces were available back then.
I think the way CheckBox was implemented would also make more sense here.
Thanks for this suggestion! As Xamarin.Forms is now in maintenance mode, this will not happen anymore for Xamarin.Forms. We're only adding bugfixes and stability fixes.
If this is still important to you, make sure to check the .NET MAUI repo and see if it's already on the roadmap. If not, feel free to open a discussion to discuss a change first or open an issue with a detailed feature request. Thanks!
Summary
Initially the
RadioButton
had an API to use a custom image for the bullet. Upon further inspection this was only implemented on Android and missing on iOS, UWP and MacOS. To not block the next release and still haveRadioButton
, the API was removed for now and this issue is here to track the progress on (re)implementing the ButtonSource API.Related:
API Changes
Add/reenable this API in the
RadioButton
:public static readonly BindableProperty ButtonSourceProperty
public ImageSource ButtonSource { get; set; }
Intended Use Case
Being able to use a custom image for the
RadioButton
bullet. Through theVisualStateManager
people are able to supply images for both the checked and unchecked state.The text was updated successfully, but these errors were encountered: