feat: add selection change event.

This commit is contained in:
rabbitism
2024-02-14 21:07:28 +08:00
parent 2918edbe0e
commit cfb728c9e9
3 changed files with 31 additions and 13 deletions

View File

@@ -10,8 +10,8 @@ public class OverflowStackPanel: StackPanel
var children = this.Children.ToList();
foreach (var child in children)
{
this.Children.Remove(child);
this.OverflowPanel?.Children.Add(child);
Children.Remove(child);
OverflowPanel?.Children.Add(child);
}
}
@@ -22,8 +22,8 @@ public class OverflowStackPanel: StackPanel
{
foreach (var child in children)
{
this.OverflowPanel?.Children.Remove(child);
this.Children.Add(child);
OverflowPanel?.Children.Remove(child);
Children.Add(child);
}
}
}