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

            view.SelectedDataRow += View_SelectedDataRow;
            RecordsGrid.Children.Add(view);
        }