mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复自定义排序错误
This commit is contained in:
parent
a298b79680
commit
5ad089a006
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user