Exemplo n.º 1
0
        private static void OnBoolChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            Chart3DControlLib cc = sender as Chart3DControlLib;

            if (e.Property == IsXGridProperty)
            {
                cc.IsXGrid = (bool)e.NewValue;
            }
            else if (e.Property == IsYGridProperty)
            {
                cc.IsYGrid = (bool)e.NewValue;
            }
            else if (e.Property == IsZGridProperty)
            {
                cc.IsZGrid = (bool)e.NewValue;
            }
            else if (e.Property == IsHiddenLineProperty)
            {
                cc.IsHiddenLine = (bool)e.NewValue;
            }
            else if (e.Property == IsColorBarProperty)
            {
                cc.IsColorBar = (bool)e.NewValue;
            }
            else if (e.Property == IsColormapProperty)
            {
                cc.IsColormap = (bool)e.NewValue;
            }
        }
Exemplo n.º 2
0
        private static void OnDoubleChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            Chart3DControlLib cc = sender as Chart3DControlLib;

            if (e.Property == XminProperty)
            {
                cc.Xmin = (double)e.NewValue;
            }
            else if (e.Property == XmaxProperty)
            {
                cc.Xmax = (double)e.NewValue;
            }
            else if (e.Property == YminProperty)
            {
                cc.Ymin = (double)e.NewValue;
            }
            else if (e.Property == YmaxProperty)
            {
                cc.Ymax = (double)e.NewValue;
            }
            else if (e.Property == ZminProperty)
            {
                cc.Zmin = (double)e.NewValue;
            }
            else if (e.Property == ZmaxProperty)
            {
                cc.Zmax = (double)e.NewValue;
            }
            else if (e.Property == XTickProperty)
            {
                cc.XTick = (double)e.NewValue;
            }
            else if (e.Property == YTickProperty)
            {
                cc.YTick = (double)e.NewValue;
            }
            else if (e.Property == ZTickProperty)
            {
                cc.ZTick = (double)e.NewValue;
            }
            else if (e.Property == GridlineThicknessProperty)
            {
                cc.GridlineThickness = (double)e.NewValue;
            }
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.rootGrid = ((System.Windows.Controls.Grid)(target));

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

            #line default
            #line hidden
                return;

            case 2:
                this.myChart3D = ((Chart3DControl.Chart3DControlLib)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 4
0
        private static void OnStringChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            Chart3DControlLib cc = sender as Chart3DControlLib;

            if (e.Property == TitleProperty)
            {
                cc.Title = (string)e.NewValue;
            }
            else if (e.Property == XLabelProperty)
            {
                cc.XLabel = (string)e.NewValue;
            }
            else if (e.Property == YLabelProperty)
            {
                cc.YLabel = (string)e.NewValue;
            }
            else if (e.Property == ZLabelProperty)
            {
                cc.ZLabel = (string)e.NewValue;
            }
        }
Exemplo n.º 5
0
        private static void OnColorChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            Chart3DControlLib cc = sender as Chart3DControlLib;

            cc.GridlineColor = (Brush)e.NewValue;
        }
Exemplo n.º 6
0
        private static void OnGridlinePatternChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            Chart3DControlLib cc = sender as Chart3DControlLib;

            cc.GridlinePattern = (ChartStyle2D.GridlinePatternEnum)e.NewValue;
        }