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

[Bug] Element.ChildRemoved event is passing the removed child as "sender" #15818

Closed
Lalalalala05 opened this issue Sep 14, 2023 · 1 comment
Closed
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@Lalalalala05
Copy link

Description

The "OnChildRemoved" method of the "Xamarin.Forms.Element" class is firing the "ChildRemove" event giving the child as the first argument (sender) instead of itself.
I'm assuming this isn't intentional, especially considering that for the "ChildAdded" event the element does give itself as the sender.

@Lalalalala05 Lalalalala05 added s/unverified New report that has yet to be verified t/bug 🐛 labels Sep 14, 2023
@jfversluis
Copy link
Member

While that does seem odd, it has probably been this way for a long time and would be a breaking change right now. Considering the Xamarin.Forms lifespan we have left, I don't think we will be changing this behavior anymore at this time.

Thank you!

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants