Intersoft ClientUI Documentation
LegendStyle Property



Gets or sets the Style of the UXChart's Legend.
Syntax
Public Property LegendStyle As Style
Dim instance As UXChart
Dim value As Style
 
instance.LegendStyle = value
 
value = instance.LegendStyle
public Style LegendStyle {get; set;}
public:
property Style^ LegendStyle {
   Style^ get();
   void set (    Style^ value);
}
Remarks
UXChart provides full control over legend appearance. You are able to specify the shape of the Legend Item Markers just by setting the style. It can be different shapes, such as rectangle, ellipse, or even an image. you can also set its style using LegendStyle
Example
XAML
Copy Code
<Intersoft:UXChart TitlePosition="TopLeft" LegendPosition="Bottom" TitleStyle="{StaticResource TitleStyle}">
        <Intersoft:UXChart.LegendStyle>
                <Style TargetType="Intersoft:Legend">
                        <Setter Property="ItemContainerStyle">

                                <Setter.Value>
                                <Style TargetType="Intersoft:LegendItem">
                                        <Setter Property="Template">
                                                <Setter.Value>
                                                        <ControlTemplate TargetType="Intersoft:LegendItem">
                                                                <StackPanel Orientation="Horizontal">
                                                                        <Image Height="20" Width="20" Margin="4" Source="{Binding Content, Converter={StaticResource ImageConverter}, RelativeSource={RelativeSource TemplatedParent}}"/>
                                                                        <Border BorderThickness="1" BorderBrush="{Binding Background}" VerticalAlignment="Center">
                                                                                <Grid>
                                                                                        <Grid Background="{Binding Background}" Opacity="0.3"/>
                                                                                        <Intersoft:Title Margin="4,2" Content="{TemplateBinding Content}"/>
                                                                                </Grid>
                                                                        </Border>
                                                                </StackPanel>
                                                        </ControlTemplate>
                                                </Setter.Value>
                                        </Setter>
                                        </Style>
                                </Setter.Value>
                        </Setter>
                </Style>
        </Intersoft:UXChart.LegendStyle>
<Intersoft:BubbleSeries ItemsSource="{Binding CountryUS}" Title="US"
IndependentValueBinding="{Binding FormattedDate}" DependentValueBinding="{Binding NumberOfVisitor}"/>
</Intersoft:UXChart>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXChart Class
UXChart Members

Send Feedback