修复自定义排序错误

This commit is contained in:
ZouJin 2024-04-12 22:59:04 +08:00
parent a298b79680
commit 5ad089a006

View File

@ -185,14 +185,16 @@ namespace VPet_Simulator.Windows
private void Send_Top_Click(object sender, RoutedEventArgs e)
{
((StackPanel)this.Parent).Children.Remove(this);
((StackPanel)this.Parent).Children.Insert(0, this);
var sp = ((StackPanel)this.Parent);
sp.Children.Remove(this);
sp.Children.Insert(0, this);
}
private void Send_Botton_Click(object sender, RoutedEventArgs e)
{
((StackPanel)this.Parent).Children.Remove(this);
((StackPanel)this.Parent).Children.Add(this);
var sp = ((StackPanel)this.Parent);
sp.Children.Remove(this);
sp.Children.Add(this);
}
}
}