void OperationModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { OperationModel operationModel = ((OperationViewModel)DataContext).OperationModel; if (operationModel is HistogramOperationModel) { var histogramOpertionModel = (HistogramOperationModel)operationModel; if (e.PropertyName == histogramOpertionModel.GetPropertyName(() => histogramOpertionModel.VisualizationType)) { operationTypeUpdated(); } } if (e.PropertyName == operationModel.GetPropertyName(() => operationModel.Result)) { updateProgressAndNullVisualization(); } }