Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Remove RadioButton.ButtonSource API #9967

Merged
merged 1 commit into from
Apr 3, 2020
Merged

Conversation

jfversluis
Copy link
Member

@jfversluis jfversluis commented Mar 16, 2020

Description of Change

Removes the RadioButton.ButtonSource API for now.

This functionality was only implemented on Android and needs implementation on iOS, UWP and MacOS.

Issues Resolved

API Changes

Removed:

  • public static readonly BindableProperty ButtonSourceProperty
  • public ImageSource ButtonSource { get; set; }

Platforms Affected

  • Core/XAML (all platforms)
  • Android

Behavioral/Visual Changes

Android users on the 4.6-pre1 version will lose the ability to use a custom image for the radiobutton. When already in use, there will be a compilation error since the API has been removed.

Before/After Screenshots

Not applicable

Testing Procedure

N/A

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@jfversluis jfversluis added blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. Core p/Android a/radiobutton 🔘 t/bug 🐛 labels Mar 16, 2020
@jfversluis jfversluis added this to the 4.6.0 milestone Mar 16, 2020
@jfversluis jfversluis added the API-change Heads-up to reviewers that this PR may contain an API change label Mar 16, 2020
@samhouts samhouts requested a review from kingces95 March 16, 2020 20:57
set { SetValue(ButtonSourceProperty, value); }
}
// TODO Needs implementations beyond Android
//public ImageSource ButtonSource
Copy link
Contributor

@PureWeen PureWeen Mar 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens right now if people use ImageSource?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s kind of a funny API anyway. You’re able to set a custom image for the checkbox, but you need it together with the VSM to dynamically set the checked state. See the example in the gallery I commented out.

If people use it on platforms where it’s not implemented, nothing happens right now.

@samhouts samhouts merged commit 77ab1db into 4.6.0 Apr 3, 2020
@samhouts samhouts deleted the radiobutton-buttonsource branch April 3, 2020 22:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/radiobutton 🔘 API-change Heads-up to reviewers that this PR may contain an API change blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. ControlGallery Core p/Android t/bug 🐛
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants