private static void OnCurrentValueListChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StateIndicatorProcessBar cpb = d as StateIndicatorProcessBar; List <double> valueList = (List <double>)e.NewValue; cpb.testRunProcess.CurrentValueList = valueList; }
private static void OnLabelContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { //Get access to the instance of CircularGaugeConrol whose property value changed StateIndicatorProcessBar depObj = d as StateIndicatorProcessBar; depObj.lbIndicator.Content = e.NewValue; }
private static void OnCurrentValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StateIndicatorProcessBar cpb = d as StateIndicatorProcessBar; double percentValue = (double)e.NewValue; cpb.testRunProcess.CurrentValue = percentValue; }