Beispiel #1
0
        private static void OnCurrentChangeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PanelContentControl panelContentControl = (PanelContentControl)d;

            panelContentControl.IsChangePositive = (double)e.NewValue == 0 ? null : (bool?)((double)e.NewValue > 0);
        }
Beispiel #2
0
        private static void OnCurrentValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PanelContentControl panelContentControl = (PanelContentControl)d;

            panelContentControl.CurrentChange = Math.Round((double)e.NewValue - (double)e.OldValue, 3);
        }