public static void OnTitleSizeChanged(DependencyObject dp, DependencyPropertyChangedEventArgs e)
        {
            HRVChartInfo hrv  = dp as HRVChartInfo;
            double       text = (double)e.NewValue;

            hrv.headerText.FontSize = text;
        }
        public static void OnChartXSizeChanged(DependencyObject dp, DependencyPropertyChangedEventArgs e)
        {
            HRVChartInfo hrv  = dp as HRVChartInfo;
            double       text = (double)e.NewValue;

            for (int i = 0; i < hrv.chart.AxesX.Count; i++)
            {
                hrv.chart.AxesX[i].AxisLabels.FontSize = text;
            }
        }
 private static void OnInputDataTableChange(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         HRVChartInfo hrv = d as HRVChartInfo;
         hrv.ReRenderdata();
     }
     catch (Exception ex)
     {
         SystemHelper.logger.LogError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name, ex.Message.ToString(), ex.ToString());
     }
 }
 private static void TextHeaderContentCallBack(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         if (e.NewValue != null)
         {
             HRVChartInfo hrv  = d as HRVChartInfo;
             string       text = (string)e.NewValue;
             hrv.headerText.Text = text;
         }
     }
     catch (Exception ex)
     {
         SystemHelper.logger.LogError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name, ex.Message.ToString(), ex.ToString());
     }
 }