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

[Android/iOS] Fixed issue resolving a Renderer from a TemplatedView #12658

Merged
merged 9 commits into from
Dec 19, 2020

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Fixed issue resolving a Renderer from a TemplatedView.

Issues Resolved

API Changes

None

Platforms Affected

  • iOS
  • Android

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Launch Core Gallery and navigate to the issue 12484. If the renderer OnElementChanged method is invoked, the test has passed.

PR Checklist

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

renderer = Registrar.Registered.GetHandlerForObject<IVisualElementRenderer>(element, context)
?? new DefaultRenderer(context);
}
IVisualElementRenderer renderer = Registrar.Registered.GetHandlerForObject<IVisualElementRenderer>(element, context)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This changed when added the Templated RadioButton. In the case of TemplatedView, DefaultRenderer was always used. I understand that the change was performance related. However, if the TemplatedView has an associated renderer registered it would stop working. @hartez Check the PR when you can ;)

@samhouts samhouts added ControlGallery a/customrenderer blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. labels Nov 2, 2020
@rmarinho rmarinho added this to To do in vNext+1 (5.0.0) via automation Dec 15, 2020
@rmarinho rmarinho added this to the 5.0.0 milestone Dec 15, 2020
@rmarinho rmarinho moved this from To do to In Review in vNext+1 (5.0.0) Dec 15, 2020
@rmarinho
Copy link
Member

Can we add a UITEst or Platform test for this ?

@jsuarezruiz
Copy link
Contributor Author

Sure, added UITest.
Captura de pantalla 2020-12-18 a las 13 57 15

@rmarinho
Copy link
Member

failing tests not related

@rmarinho rmarinho merged commit d5ef0d3 into 5.0.0 Dec 19, 2020
vNext+1 (5.0.0) automation moved this from In Review to Done Dec 19, 2020
@rmarinho rmarinho deleted the fix-12484 branch December 19, 2020 18:49
@MuneeshKumarG
Copy link

Is this fix moved in nuget.org?

@rmarinho
Copy link
Member

Yes pre6. you can try it .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/customrenderer blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. ControlGallery i/regression p/Android p/iOS 🍎 t/bug 🐛
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Unable to set ControlTemplate for TemplatedView in Xamarin.Forms version 5.0
6 participants