コード例 #1
0
        private static void OnPropsValueChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HierarchyDrmRecordView v = d as HierarchyDrmRecordView;

            if (e.Property.Name == nameof(HierarchyRecordInputData))
            {
                v.SetHierarchyRecordInputData((HierarchyDrmRecordInputData)e.NewValue);
            }
        }
コード例 #2
0
        public void SetViewRecordData(HierarchyDrmRecordInputData data)
        {
            RecordGrid.Children.Clear();
            var view = new HierarchyDrmRecordView()
            {
                HierarchyRecordInputData = data,
            };

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