【文件属性】:
文件名称:c#wpf 绘制sin曲线
文件大小:50KB
文件格式:RAR
更新时间:2018-02-16 06:08:49
c#wpf 绘制 sin曲线
c#wpf 绘制sin曲线
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public MainWindow()
{
InitializeComponent();
Polyline line = new Polyline();
line.VerticalAlignment = VerticalAlignment.Center;
line.Stroke = SystemColors.WindowTextBrush;
line.StrokeThickness = 2;
for (int i = 0; i < 2000; i++)
line.Points.Add(
new Point(i, 96 * (1 - Math.Sin(i * Math.PI / 192))));
grid1.Children.Add(line);
}
【文件预览】:
WpfSin
----WpfSin.suo(57KB)
----WpfSin()
--------bin()
--------App.xaml(317B)
--------obj()
--------WpfSin.csproj(4KB)
--------App.xaml.cs(302B)
--------MainWindow.xaml(292B)
--------Properties()
--------MainWindow.xaml.cs(1023B)
----WpfSin.sln(860B)