<charting:LinearAxis Orientation="X" x:Name="orty" Maximum="{Binding Path=Text, ElementName=txtx,Mode=TwoWay}" Title="Ledmodule operating (mA)" ShowGridLines="True"> <charting:LinearAxis.GridLineStyle> <Style TargetType="Line"> <Setter Property="Stroke" Value="Blue" /> <Setter Property="StrokeDashArray" Value="1,2" /> </Style> </charting:LinearAxis.GridLineStyle> </charting:LinearAxis>
parentchart.Axes.Add(new LinearAxis() { Minimum = 0, Title = "Y Axis Name",ShowGridLines=true, Interval=70, Orientation = AxisOrientation.Y, Maximum = ymax > 0 ? ymax : 300});
somename.g.cs
MyView.xaml
obj\MyView.g.cs
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)