void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.rootGrid = ((System.Windows.Controls.Grid)(target));

            #line 6 "..\..\LagrangeInterpolation.xaml"
                this.rootGrid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.rootGrid_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.myChart = ((LineChartControl.LineChartControlLib)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        private static void OnPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            LineChartControlLib lcc = sender as LineChartControlLib;

            if (e.Property == XminProperty)
            {
                lcc.Xmin = (double)e.NewValue;
            }
            else if (e.Property == XmaxProperty)
            {
                lcc.Xmax = (double)e.NewValue;
            }
            else if (e.Property == YminProperty)
            {
                lcc.Ymin = (double)e.NewValue;
            }
            else if (e.Property == YmaxProperty)
            {
                lcc.Ymax = (double)e.NewValue;
            }
            else if (e.Property == XTickProperty)
            {
                lcc.XTick = (double)e.NewValue;
            }
            else if (e.Property == YTickProperty)
            {
                lcc.YTick = (double)e.NewValue;
            }
            else if (e.Property == GridlinePatternProperty)
            {
                lcc.GridlinePattern = (ChartStyleGridlines.GridlinePatternEnum)e.NewValue;
            }
            else if (e.Property == GridlineColorProperty)
            {
                lcc.GridlineColor = (Brush)e.NewValue;
            }
            else if (e.Property == TitleProperty)
            {
                lcc.Title = (string)e.NewValue;
            }
            else if (e.Property == XLabelProperty)
            {
                lcc.XLabel = (string)e.NewValue;
            }
            else if (e.Property == YLabelProperty)
            {
                lcc.YLabel = (string)e.NewValue;
            }
            else if (e.Property == IsXGridProperty)
            {
                lcc.IsXGrid = (bool)e.NewValue;
            }
            else if (e.Property == IsYGridProperty)
            {
                lcc.IsYGrid = (bool)e.NewValue;
            }
            else if (e.Property == IsLegendProperty)
            {
                lcc.IsLegend = (bool)e.NewValue;
            }
            else if (e.Property == LegendPositionProperty)
            {
                lcc.LegendPosition = (Legend.LegendPositionEnum)e.NewValue;
            }
        }
Esempio n. 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid1 = ((System.Windows.Controls.Grid)(target));

            #line 16 "..\..\MultipleLineCharts.xaml"
                this.grid1.SizeChanged += new System.Windows.SizeChangedEventHandler(this.grid1_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.myLineChart1 = ((LineChartControl.LineChartControlLib)(target));
                return;

            case 3:
                this.grid2 = ((System.Windows.Controls.Grid)(target));

            #line 21 "..\..\MultipleLineCharts.xaml"
                this.grid2.SizeChanged += new System.Windows.SizeChangedEventHandler(this.grid2_SizeChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.myLineChart2 = ((LineChartControl.LineChartControlLib)(target));
                return;

            case 5:
                this.grid3 = ((System.Windows.Controls.Grid)(target));

            #line 26 "..\..\MultipleLineCharts.xaml"
                this.grid3.SizeChanged += new System.Windows.SizeChangedEventHandler(this.grid3_SizeChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.myLineChart3 = ((LineChartControl.LineChartControlLib)(target));
                return;

            case 7:
                this.grid4 = ((System.Windows.Controls.Grid)(target));

            #line 31 "..\..\MultipleLineCharts.xaml"
                this.grid4.SizeChanged += new System.Windows.SizeChangedEventHandler(this.grid4_SizeChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.myLineChart4 = ((LineChartControl.LineChartControlLib)(target));
                return;
            }
            this._contentLoaded = true;
        }