在面板wpf中订购usercontrols

时间:2018-06-02 12:39:30

标签: c# wpf user-controls

hi如何对插入面板的Usercontrol进行排序?

enter image description here

更新

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());

                }

0 个答案:

没有答案