private static void OnPropsValueChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e) { HierarchyDrmRecordsCollectionView v = d as HierarchyDrmRecordsCollectionView; if (e.Property.Name == nameof(HierarchyDrmEntityCollectionInputData)) { v.SetHierarchyDrmEntityCollectionInputData((HierarchyDrmRecordCollectionInputData)e.NewValue); } }
public void SetRecords(HierarchyDrmRecordCollectionInputData data) { RecordsGrid.Children.Clear(); var view = new HierarchyDrmRecordsCollectionView() { HierarchyDrmEntityCollectionInputData = data, }; view.SelectedDataRow += View_SelectedDataRow; RecordsGrid.Children.Add(view); }