Skip to content

Commit

Permalink
fix(radiobuttons): Finalizer shouldn't access a DP
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Nov 28, 2023
1 parent 09b2490 commit a4b2275
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ ItemsRepeater GetRepeater()
repeater.ElementClearing += OnRepeaterElementClearing;
repeater.ElementIndexChanged += OnRepeaterElementIndexChanged;
repeater.Loaded += OnRepeaterLoaded;
repeater.Unloaded += OnRepeaterUnloaded;
return repeater;
}
return null;
Expand Down Expand Up @@ -664,7 +665,7 @@ internal void SetTestHooksEnabled(bool enabled)
}
}

~RadioButtons()
private void OnRepeaterUnloaded(object sender, RoutedEventArgs args)
{
var layout = GetLayout();
if (layout != null)
Expand Down

0 comments on commit a4b2275

Please sign in to comment.