hi如何对插入面板的Usercontrol进行排序?
更新
var parsedValues = doc.DocumentNode.SelectNodes("...").Skip(1)
.Select(r =>
{
...
}
).OrderByDescending(x => x.Row).ToList();
这就是我添加usercontrols的方式
waterfallFlow.Children.Clear();
MaterialCircular _addUser;
Control _currentUser;
foreach (var item in parsedValues)
{
Task.Delay(200).ContinueWith(ctx => {
_addUser = new MaterialCircular(item.Row, item.Title, ...);
_currentUser = _addUser;
waterfallFlow.Children.Add(_currentUser);
waterfallFlow.Refresh();
}, TaskScheduler.FromCurrentSynchronizationContext());
}