//-------------------------------------------------------------------------------------------------------
        public static void AxesInfoChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ZedGraphChartControl zedGraphChart = d as ZedGraphChartControl;
            GraphPane            graphPane     = zedGraphChart.zedGraphControl.GraphPane;

            string fontFamily  = "Arial";
            bool   isBold      = false;
            bool   isItalic    = false;
            bool   isUnderLine = false;
            int    fontSize    = 10;

            System.Drawing.Color color = System.Drawing.Color.Black;

            AxesInfo axesInfo = ( AxesInfo )e.NewValue;

            graphPane.XAxis.Title =
                new AxisLabel(axesInfo.AxisTitleX, fontFamily, fontSize, color, isBold, isItalic, isUnderLine);
            graphPane.YAxis.Title =
                new AxisLabel(axesInfo.AxisTitleY, fontFamily, fontSize, color, isBold, isItalic, isUnderLine);

            graphPane.XAxis.Scale.FontSpec.Size = 8;
            graphPane.YAxis.Scale.FontSpec.Size = 8;
        }
        //-------------------------------------------------------------------------------------------------------
        private static void GraphInfoCollectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ZedGraphChartControl zedGraphChart = d as ZedGraphChartControl;

            GraphPane graphPane = zedGraphChart.zedGraphControl.GraphPane;

            graphPane.CurveList.Clear();
            ZedGraphChartControl.SetDefaultGraphPaneSettings(graphPane);

            IList <ZedGraphInfo> graphInfoCollection = (IList <ZedGraphInfo>)e.NewValue;

            if (graphInfoCollection == null)
            {
                return;
            }

            for (int index = 0; index < graphInfoCollection.Count; index++)
            {
                ZedGraphInfo graphInfo = graphInfoCollection[index];
                ZedGraphChartControl.DrawChart(graphInfo, graphPane);
            }

            zedGraphChart.zedGraphControl.AxisChange();
        }