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
760
Dotted Lines
posted

Hello again,

I'm trying to figure out how to make the series lines dotted in a Silverlight xamWebChart. I have so far tried two approaches without much luck.

Firstly, I tried applying a dotted line style directly to the series object - I received the exception "Element is already the child of another element".

Then, I found an example that specified the following:

<igWebChart:XamWebChart.Resources>

                <Style TargetType="{x:Type Line}">

                    <Setter Property="StrokeDashArray" Value="2,1" />

                </Style>

            </igWebChart:XamWebChart.Resources>

 

However, I receive the error that "Type" is not found.

Any insight would be appreciated. Thanks again!

Parents
  • 30692
    Offline posted

    the x:Type markup extension doesn't exist in Silverlight, only WPF. Try just TargetType="Line" although I'm not sure if the implicit style will work in this case or not. Let me know if it doesn't and I'll see if I can help.

Reply Children