Mega Code Archive
Create a simple polyline, a closed polyline And a Sine curve in code
//File:Window.xaml.vb
Imports System
Imports System.Windows
Imports System.Windows.Media
Imports System.Windows.Shapes
Namespace WpfApplication1
Public Partial Class Polylines
Inherits Window
Public Sub New()
InitializeComponent()
For i As Integer = 0 To 69
Dim x As Double = i * Math.PI
Dim y As Double = 40 + 30 * Math.Sin(x / 10)
polyline1.Points.Add(New Point(x, y))
Next
End Sub
End Class
End Namespace