Added SuperViewChangedEventArgs for Added/Removed to clarify situation

This commit is contained in:
tznind
2023-03-11 12:01:04 +00:00
parent 1491e01d6a
commit 02825d89ba
8 changed files with 64 additions and 25 deletions

View File

@@ -60,8 +60,11 @@ namespace UICatalog {
foreach (var sub in view.Subviews) {
RecordView (sub);
}
// TODO: BUG: Based on my new understanding of Added event I think this is wrong
// (and always was wrong). Parents don't get to be told when new views are added
// to them
view.Added += (s,e)=>RecordView(e.View);
view.Added += (s,e)=>RecordView(e.Child);
}
internal static void Initialize ()