Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改 x 和 y 轴的黑色文本颜色?我尝试更改WinRTXamlToolkit.Controls.DataVisualization命名空间中每个 xaml 文件中的每种黑色。任何建议都受到高度赞赏。
如果您在示例应用程序中按 Ctrl+Shift - 您将看到TextBlocka 的内部,NumericAxisLabel并且当您搜索代码时 - 您可以看到它是由NumericAxis.CreateAxisLabel(). 它的一个基类 -DisplayAxis有一个AxisLabelStyle属性,您可以使用该属性将样式应用于该标签,因此如果您在图表中设置它 - 您可以使用一种样式,该样式为Foreground具有不同画笔的属性指定设置器。
TextBlock
NumericAxisLabel
NumericAxis.CreateAxisLabel()
DisplayAxis
AxisLabelStyle
Foreground