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
220
Style can not be applied to 'igChart:Marker' . Help please .
posted

Hi Guys , Merry XMas !

I tried applying style on igChart:Marker. but it doesn't take effect .XAML is as below . Please help .

Way 1:

     //Style

        <Style x:Key="MarkersStyle1" TargetType="igChart:Marker">
        <Setter Property="Type" Value="Star5"/>
        <Setter Property="MarkerSize" Value="1.5"/>
        <Setter Property="Fill" Value="#3298F9"/>
        <Setter Property="Foreground" Value="#00C1F30B"/>
        <Setter Property="LabelDistance" Value="1"/>
        </Style>

//where I apply the style

<igChart:Series.Marker>
                        <igChart:Marker  Style="{StaticResource MarkersStyle1}"/>
</igChart:Series.Marker>

 

Way 2:

<igChart:Series.Marker>
                        <igChart:Marker>
                            <igChart:Marker.Style>
                                <Style TargetType="igChart:Marker">
                                    <Setter Property="Type" Value="Star5"/>
                                    <Setter Property="MarkerSize" Value="1.5"/>
                                </Style>
                            </igChart:Marker.Style>
                        </igChart:Marker>
</igChart:Series.Marker>

 

 

Neither of the 2 ways above takes effect .

Parents
No Data
Reply
  • 30692
    Offline posted

    This is a bug in the chart control. I've created a bug, 25980. You can check on the status of this bug with Developer Support at any time.

    In the interim, if you set these properties directly on the marker rather than through a style, they should behave appropriately.

    -Graham

Children