<UserControl x:Class="SilverlightApplication1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    mc:Ignorable="d"
    xmlns:demo="clr-namespace:SilverlightApplication1"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>     

            <Style x:Key="CustomScatterPointStyle"
                TargetType="demo:ScatterErrorBar">
                <Setter Property="Template" >
                    <Setter.Value>
                        <ControlTemplate TargetType="demo:ScatterErrorBar">
                            <Canvas>
                                <Line Stroke="Black" 
                                      Y1="{TemplateBinding MinValueY}" 
                                      Y2="{TemplateBinding MaxValueY}" />
                                <Line Stroke="Black" 
                                      X1="-15" X2="15" 
                                      Y1="{TemplateBinding MinValueY}" 
                                      Y2="{TemplateBinding MinValueY}" />

                                <Line Stroke="Black" 
                                      X1="-15" X2="15" 
                                      Y1="{TemplateBinding MaxValueY}" 
                                      Y2="{TemplateBinding MaxValueY}" />

                                <telerik:PointMark x:Name="PART_PointMark"
                                                   Canvas.Top="{TemplateBinding StartPointY}"
                                                   PointMarkCanvasLeft="{TemplateBinding PointMarkCanvasLeft}"
                                                   PointMarkCanvasTop="{TemplateBinding PointMarkCanvasTop}"
                                                   ShapeStyle="{TemplateBinding PointMarkShapeStyle}" 
                                                   Size="{TemplateBinding PointSize}" />
                            </Canvas>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

        </Grid.Resources>

        <telerik:RadChart x:Name="RadChart1" />

    </Grid>
</UserControl>
