1.主要代码: using System; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using GalaSoft.MvvmLight.Command; namespace PaggingDataGrid.CustomCtrl { /// <summary>按照步骤 1a 或 1b 操作,然后执行步骤…