private static void OnPropsValueChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e) { HierarchyDrmRecordView v = d as HierarchyDrmRecordView; if (e.Property.Name == nameof(HierarchyRecordInputData)) { v.SetHierarchyRecordInputData((HierarchyDrmRecordInputData)e.NewValue); } }
public void SetViewRecordData(HierarchyDrmRecordInputData data) { RecordGrid.Children.Clear(); var view = new HierarchyDrmRecordView() { HierarchyRecordInputData = data, }; view.SelectedDataRow += View_SelectedDataRow; RecordGrid.Children.Add(view); }