本文介绍了如何在WPF中更改线序列图的网格线颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! < 图表:LinearAxis 方向 = X x:名称 = orty 最大 = {Binding Path = Text,ElementName = txtx,Mode = TwoWay} 标题 = Ledmodule operating(mA) ShowGridLines = True > < / charting:LinearAxis > 解决方案 < 图表:LinearAxis 方向 = X x:姓名 = orty 最大 = {Binding Path = Text,ElementName = txtx,Mode = TwoWay} 标题 = Ledmodule operating(mA) ShowGridLines = True > < 图表:LinearAxis.GridLineStyle > < 样式 TargetType = 行 > < Setter 属性 = 描边 值 = 红色 / > < Setter 属性 = StrokeDashArray 值 = 2,4 / > ; < / Style > < / charting:LinearAxis.GridLineStyle > < / charting:LinearAxis > <charting:LinearAxis Orientation="X" x:Name="orty" Maximum="{Binding Path=Text, ElementName=txtx,Mode=TwoWay}" Title="Ledmodule operating (mA)" ShowGridLines="True"></charting:LinearAxis> 解决方案 <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="Red" /> <Setter Property="StrokeDashArray" Value="2,4" /> </Style> </charting:LinearAxis.GridLineStyle> </charting:LinearAxis> 这篇关于如何在WPF中更改线序列图的网格线颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-29 04:25