XAML WinRT图表删除轴标签
本文关键字:标签 删除 WinRT XAML | 更新日期: 2023-09-27 18:01:45
我正在使用图表库"ModernUI Toolkit" (http://modernuitoolkit.codeplex.com/)。如何在WinRT中删除标签?
我找到了一些答案,但这是针对Silverlight版本的,这个库不起作用。
下面是我的XAML代码:<Chart:Chart x:Name="LineChart" HorizontalAlignment="Left" Title="Line Chart" Margin="24,222,0,0" VerticalAlignment="Top" Width="318" Height="342">
<Series:StackedLineSeries x:Name="StackedLineSeries">
</Series:StackedLineSeries>
</Chart:Chart>
我想可能是这样的:
<Series:StackedLineSeries.IndependentAxis>
<Series:LinearAxis
xmlns:datavis="using:WinRTXamlToolkit.Controls.DataVisualization">
<Series:LinearAxis.TitleStyle>
<Style
TargetType="datavis:Title">
<Setter
Property="Visibility"
Value="Collapsed"/>
</Style>
</Series:LinearAxis.TitleStyle>
</Series:LinearAxis>
</Series:LineSeries.IndependentAxis>