This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Enhancement] RadioButton.ButtonSource: custom images for RadioButton #9968
Closed as not planned
Description
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 have RadioButton
, the API was removed for now and this issue is here to track the progress on (re)implementing the ButtonSource API.
Related:
- Original PR RadioButton Implementation #8910
- Bug [Bug] RadioButton.ButtonSource is only implemented on Android #9948
- Removal PR Remove RadioButton.ButtonSource API #9967
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 the VisualStateManager
people are able to supply images for both the checked and unchecked state.