47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
|
|
using SamplePre.UIWpf.BaseWindows;
|
|||
|
|
using SamplePreSystem.UI.BaseControls;
|
|||
|
|
using SamplePreSystem.UI.ViewModel.SampleManager;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.ComponentModel;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using System.Windows;
|
|||
|
|
using System.Windows.Controls;
|
|||
|
|
using System.Windows.Data;
|
|||
|
|
using System.Windows.Documents;
|
|||
|
|
using System.Windows.Input;
|
|||
|
|
using System.Windows.Media;
|
|||
|
|
using System.Windows.Media.Imaging;
|
|||
|
|
using System.Windows.Shapes;
|
|||
|
|
|
|||
|
|
namespace SamplePre.UIWpf.SampleManager.chirld
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// ActionShowWindow.xaml 的交互逻辑
|
|||
|
|
/// </summary>
|
|||
|
|
public partial class ActionShowWindow : BaseWindow
|
|||
|
|
{
|
|||
|
|
public ActionShowWindow(SampleExecViewModel viewModel)
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
|
|||
|
|
this.DataContext = viewModel;
|
|||
|
|
|
|||
|
|
viewModel.InitCmdData();
|
|||
|
|
|
|||
|
|
|
|||
|
|
ListCollectionView view = (ListCollectionView)CollectionViewSource.GetDefaultView(viewModel.ActionParmList);//获取数据视图
|
|||
|
|
|
|||
|
|
////分组
|
|||
|
|
//view.SortDescriptions.Add(new SortDescription("action_seqno", ListSortDirection.Ascending));
|
|||
|
|
view.GroupDescriptions.Clear();
|
|||
|
|
view.GroupDescriptions.Add(new PropertyGroupDescription("actionAndseqno"));
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|