要画两个曲线图,就像示波器那种,带坐标,用什么控件?
我知道在winform里可以用graphpane,blend里面有没有类似的?控件画图WPF

解决方案 »

  1.   

    Path或PolyLine
    private void CreateAPolyline()
    {
        // Create a blue and a black Brush
        SolidColorBrush yellowBrush = new SolidColorBrush();
        yellowBrush.Color = Colors.Yellow;
        SolidColorBrush blackBrush = new SolidColorBrush();
        blackBrush.Color = Colors.Black;
     
        // Create a polyline
        Polyline yellowPolyline = new Polyline();
        yellowPolyline.Stroke = blackBrush;
        yellowPolyline.StrokeThickness = 4;
     
        // Create a collection of points for a polyline
        System.Windows.Point Point1 = new System.Windows.Point(10, 100);
        System.Windows.Point Point2 = new System.Windows.Point(100, 200);
        System.Windows.Point Point3 = new System.Windows.Point(200, 30);
        System.Windows.Point Point4 = new System.Windows.Point(250, 200);
        System.Windows.Point Point5 = new System.Windows.Point(200, 150);
        PointCollection polygonPoints = new PointCollection();
        polygonPoints.Add(Point1);
        polygonPoints.Add(Point2);
        polygonPoints.Add(Point3);
        polygonPoints.Add(Point4);
        polygonPoints.Add(Point5);
     
        // Set Polyline.Points properties
        yellowPolyline.Points = polygonPoints;
     
        // Add polyline to the page
        LayoutRoot.Children.Add(yellowPolyline);
    }
      

  2.   

    呃,WPF么?我怎么没找到你说的这两个控件?
      

  3.   

    呃,WPF么?我怎么没找到你说的这两个控件?你确认你问的是WPF?
      

  4.   


    呃,WPF么?我怎么没找到你说的这两个控件?你确认你问的是WPF?
    上图!不仅WPF里面没有,blend里面同样没有。
      

  5.   

    呃,WPF么?我怎么没找到你说的这两个控件?你确认你问的是WPF?上错图了
      

  6.   

    我只能告诉你我用的是blend4+vs2010,只能帮你到这了,再没有我无能为力
      

  7.   

    我的blend2+vs2008.。
    需要这么大的差别么。。
      

  8.   

    我的blend2+vs2008.。
    需要这么大的差别么。。blend3功能都很少,别说2了,升级吧,少年!
      

  9.   

    我的blend2+vs2008.。
    需要这么大的差别么。。blend3功能都很少,别说2了,升级吧,少年!
    移植代码好痛苦。。
      

  10.   

    我的blend2+vs2008.。
    需要这么大的差别么。。blend3功能都很少,别说2了,升级吧,少年!
    移植代码好痛苦。。这个谈得上移植吗?你直接用VS2010打开它就升级了啊
      

  11.   

    我的blend2+vs2008.。
    需要这么大的差别么。。blend3功能都很少,别说2了,升级吧,少年!
    移植代码好痛苦。。这个谈得上移植吗?你直接用VS2010打开它就升级了啊
    呃 我是要将winform程序移植到wpf中去太蛋疼了,各种控件、函数不兼容啊!
      

  12.   

    我的blend2+vs2008.。
    需要这么大的差别么。。blend3功能都很少,别说2了,升级吧,少年!
    移植代码好痛苦。。这个谈得上移植吗?你直接用VS2010打开它就升级了啊
    呃 我是要将winform程序移植到wpf中去太蛋疼了,各种控件、函数不兼容啊!