This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] VisualTreeChangeEventArgs, Parent is null when element is removed and VisualTreeChangeType is Add instead of Remove and ChildIndex is -1 #11334
Labels
external-hotreload
Non-Forms bugs that affect Hot Reload
in-progress
This issue has an associated pull request that may resolve it!
t/bug 🐛
Milestone
Description
Steps to Reproduce
XamarinTest.zip
Expected Behavior
VisualTreeChangeEventArgs Remove:
Parent:Xamarin.Forms.StackLayout: MainPage.xaml;assembly=XamarinTest:23:6-->
ChildIndex: 0: Child:Xamarin.Forms.Label: MainPage.xaml;assembly=XamarinTest:25:10
Actual Behavior
VisualTreeChangeEventArgs Add:
Parent:null: ::-->
ChildIndex: -1: Child:Xamarin.Forms.Label: MainPage.xaml;assembly=XamarinTest:25:10
Basic Information
The parent is null, this is not good. Also, the ChildIndex is -1 which is also not good.
Screenshots
Reproduction Link
Workaround
The text was updated successfully, but these errors were encountered: