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

Bind RadioButton default template root properties to RadioButton's pr… #12742

Merged
merged 2 commits into from
Nov 11, 2020

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Nov 5, 2020

Description of Change

Because the properties of the root frame in the default RadioButton template were not bound to the RadioButton's properties, two things were happening:

  • Properties such as RadioButton.BackgroundColor were not being applied when the default template was in use (e.g., on iOS)

  • Styling for the Frame control was also affecting RadioButton when the default template was in use (again, usually on iOS)

These changes bind the properties of the root Frame in the default template for RadioButton to the properties of the RadioButton itself, fixing the problems listed above.

Issues Resolved

API Changes

None

Platforms Affected

  • Core/XAML (all platforms)

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Automated unit tests

PR Checklist

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

@hartez hartez added this to the 5.0.0 milestone Nov 5, 2020
@hartez hartez added a/radiobutton 🔘 blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. p/iOS 🍎 labels Nov 5, 2020
@hartez
Copy link
Contributor Author

hartez commented Nov 5, 2020

iOS 13 UI Test failures are utterly unrelated to these changes.

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

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

Could we revert the changes in Xamarin.Forms.iOS.slnf and Xamarin.Forms.Platform.iOS.UnitTests.csproj?

@hartez
Copy link
Contributor Author

hartez commented Nov 7, 2020

Failing tests are the usual URI suspects.

@rmarinho rmarinho merged commit ebd6ac3 into 5.0.0 Nov 11, 2020
@rmarinho rmarinho deleted the fix-12345 branch November 11, 2020 12:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/radiobutton 🔘 blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. Core iOS 14 p/iOS 🍎 t/bug 🐛
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] iOS 14: Radio buttons gained unremovable one pixel border
4 participants