【问题标题】:Set margin between legend items设置图例项之间的边距
【发布时间】:2017-12-13 01:14:19
【问题描述】:

有人用RadLegend吗?

我希望图例项之间的垂直距离为 10 px(可能是 margin.bottom)。

【问题讨论】:

    标签: wpf xaml telerik


    【解决方案1】:

    您可以定义一个隐式的LegendItemControl 样式:

    <telerik:RadLegend Background="White" 
                       BorderBrush="Black" 
                       BorderThickness="1" 
                       Items="{Binding LegendItems, ElementName=chart1}" 
                       HorizontalAlignment="Right" 
                       VerticalAlignment="Top">
        <telerik:RadLegend.Resources>
            <Style TargetType="telerik:LegendItemControl" BasedOn="{StaticResource {x:Type telerik:LegendItemControl}}">
                <Setter Property="Margin" Value="0 0 0 100" />
            </Style>
        </telerik:RadLegend.Resources>
    </telerik:RadLegend>
    

    【讨论】:

      猜你喜欢
      • 2016-04-02
      • 2012-07-05
      • 2015-11-30
      • 2011-03-27
      • 2014-12-15
      • 1970-01-01
      • 2010-12-31
      • 1970-01-01
      • 2015-12-11
      相关资源
      最近更新 更多