"Charts" are in the Toolbox in the C# tutorial that uses Forms => www.youtube.com/watch?v=DqQlNoQW00w. I do not see "Charts" in the WPF Toolbox.
<Canvas x:Name="gCanvasPlot0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Margin="0,0,0,0"
Width="500"
Height="150" />
//------------------------------
private void AddPlot()
{
double dPI = Math.PI;
Polyline poXY = new Polyline {
Stroke = Brushes.Red
};
int iNumOfCycles = 3;
double dDeltaX = 0.01;
int iNumOfPoints0 = (int)(iNumOfCycles / dDeltaX);
for (int ii = 0; ii < iNumOfPoints0; ii++) {
double dX = ii * dDeltaX;
double dY = Math.Sin(2 * dPI * dX);
poXY.Points.Add(CorrespondingPoint(new Point(dX, dY), iNumOfCycles));
}
gCanvasPlot0.Children.Add(poXY);
}//AddPlot...
</>
, while the inline code icon looks like StackOverflow's code blocks >_
. I'll fix up the code above.What is the multiline code icon? I cannot find it.Please use code tags for multiline code, not inline code tags. Yes, this site is messed up because the iconography it uses for multiline code looks like HTML quote</>
, while the inline code icon looks like StackOverflow's code blocks>_
. I'll fix up the code above.
Good job with being persistent trying to figure out the problem to find a solution that works for the way you think!!!
</>