Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
CrosshairLineStyle
posted

Hallo,

Is there a way how to cancel shadow by CrosshairLineStyle ?

Thanks

 

 

  • 1134
    posted

    Hi,

    You can add the following to your Window.Resources:

    <LinearGradientBrush x:Key="GenericBorder" StartPoint="0.0, 0.0" EndPoint="0.0, 1.0">

         <GradientStop Color="#FFCCD3D8" Offset="0"/>

         <GradientStop Color="#FF8C9194" Offset="1"/>

    </LinearGradientBrush>

    <Style x:Key="CrosshairLineStyle" TargetType="Line">

         <Setter Property="Stroke" Value="{StaticResource GenericBorder}"/>

         <Setter Property="StrokeThickness" Value="1.4"/>

    </Style>

    Then reference this style in your XamDataChart like this:

    <ig:XamDataChart CrosshairVisibility="True" CrosshairLineStyle="{StaticResource CrosshairLineStyle}"/>

    Hope this helps,

    Marisa