我该如何隐藏传奇?

Jas*_*n94 0 silverlight charts xaml

我想制作一个没有传说的平滑而漂亮的图形,因为它解释了自己(图形).

我怎么能隐藏它?我尝试了相同的方法,使plotarea透明:

                    <charting:Chart.PlotAreaStyle>
                        <Style TargetType="Grid">
                            <Setter Property="Background" Value="Transparent" />
                        </Style>
                    </charting:Chart.PlotAreaStyle>
Run Code Online (Sandbox Code Playgroud)

我怎样才能以某种方式隐藏传奇?

Luk*_*ard 7

我发现我可以用图表的设置隐藏图表图例LegendStyleStyle为以下这样:

        <charting:Chart.LegendStyle>
            <Style TargetType="FrameworkElement">
                <Setter Property="Width" Value="0" />
            </Style>
        </charting:Chart.LegendStyle>
Run Code Online (Sandbox Code Playgroud)

奇怪的是,设置VisibilityCollapsed不起作用 - 图例仍然出现在运行时.