This needs adding to the top section of the .xaml file
A vertical list of legends (unbound)
    <!-- THE CHART LEGENDS -->
     <telerikPrimitives:RadLegendControl >
            <telerikPrimitives:LegendItem Fill="#1E98E4" Stroke="#1E98E4" Title="Temperature 1"/>
            <telerikPrimitives:LegendItem Fill="#FFC500" Stroke="#FFC500" Title="Temperature 2"/>
            <telerikPrimitives:LegendItem Fill="#FF2A00" Stroke="#FF2A00" Title="Temperature 3"/>

Displaying Legends Horizontally

You can set a height and width of the telerikPrimitives:RadLegendControl, thus causing them to be laid out to fit

Example with horizontally laid out Legends and styling of the legend items
    <!-- THE CHART LEGENDS -->
    <telerikPrimitives:RadLegendControl Canvas.Left="10" Canvas.Top="470"  Width="780" Height="40" >
        <!--Style the Legend Items -->
                <StackPanel Orientation="Horizontal">
                    <Ellipse Fill="{Binding Fill}" Stroke="{Binding Stroke}" StrokeThickness="1" Width="10" Height="10"/>
                    <TextBlock Text="{Binding Title}" Foreground="{Binding Fill}" Margin="3,0,26,0" >  <!-- L T R B -->
        <!-- Create the individual Legend Items -->
        <telerikPrimitives:RadLegendControl.LegendItems >
            <telerikPrimitives:LegendItem Fill="#F48267" Stroke="#F48267" Title="Temperature 1"/>
            <telerikPrimitives:LegendItem Fill="#18E600" Stroke="#18E600" Title="Temperature 2"/>
            <telerikPrimitives:LegendItem Fill="#64F4FF" Stroke="#64F4FF" Title="Temperature 3"/>
            <telerikPrimitives:LegendItem Fill="#F4FF67" Stroke="#F4FF67" Title="Temperature 4"/>
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.


Your email address will not be published.