本文整理汇总了C#中System.Windows.Data.PagedCollectionView.MoveCurrentTo方法的典型用法代码示例。如果您正苦于以下问题:C# PagedCollectionView.MoveCurrentTo方法的具体用法?C# PagedCollectionView.MoveCurrentTo怎么用?C# PagedCollectionView.MoveCurrentTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Data.PagedCollectionView
的用法示例。
在下文中一共展示了PagedCollectionView.MoveCurrentTo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetFrames
public void GetFrames(IList studyList)
{
int[] studyIdArray = (from object study in studyList select ((Vysetrenie)study).IdVysetrenia).ToArray();
_laboratoryDomainContext.Load(_laboratoryDomainContext.GetFramesByStudiesQuery(studyIdArray), true).Completed += (sender, args) =>
{
var pagedCollectionView = new PagedCollectionView(((LoadOperation<DicomFrameDto>)sender).Entities);
pagedCollectionView.GroupDescriptions.Add(new PropertyGroupDescription("DicomFile.Vysetrenie.IdentifikacneUdaje.RodCislo"));
pagedCollectionView.MoveCurrentTo(null);
Frames = pagedCollectionView;
NotifyOfPropertyChange("Frames");
};
}
示例2: GetStudies
public void GetStudies(IList patientList)
{
int[] patientIdArray = (from object patient in patientList select ((IdentifikacneUdaje)patient).OsCislo).ToArray();
_laboratoryDomainContext.Load(_laboratoryDomainContext.GetStudiesByPatientsQuery(patientIdArray), true).Completed += (sender, args) =>
{
var pagedCollectionView = new PagedCollectionView(((LoadOperation<Vysetrenie>)sender).Entities);
pagedCollectionView.GroupDescriptions.Add(new PropertyGroupDescription("IdentifikacneUdaje.RodCislo"));
pagedCollectionView.MoveCurrentTo(null);
Studies = pagedCollectionView;
NotifyOfPropertyChange("Studies");
};
}