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
400
How to bind to custom color to XamPieChart Silce
posted

Hi,

    I want to Bind to my custom color (which is a part of my view model) to be shown in XamPieChart slices. I could't find any easy way to do it. 

I had tried with default style of slice 

<Style TargetType="ig:Slice">
           <Setter Property="Background" Value="{Binding Path=Color}"/>
        </Style>

Also I had gone through this forum

http://ko.infragistics.com/community/forums/p/79726/419133.aspx

Though it works but It's not efficient as subscribing to LayoutUpdate & updating each slice seems like a hack , also performance intensive.