Skredy
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Skredy
-
-
Hi,
I would like to change the background color of several DataView cells, depending on values from two different series.
I tried to create a new serie, wich contains the values of the two others, and reference it in my DataView (with his index). But I dont find how to get the right DataItem.
Here is my snippet:
=> where i reference the new serie in the Chart's SeriesAttributesCollection
ItemsSource="{Binding ValuesAndInfluence}"
Visibility="Collapsed" BindingPathX="Datetime" BindingPath="Value"
>
=> in the DataView
Text="{Binding Path=????}"
VerticalAlignment="Center" HorizontalAlignment="Right" Padding="5 2 5 2" />
If I could get the right dataItem, I would finish with a converter for the backgroundcolor...
Thanks for your help!
Conditional custom background within DataView
in General
Posted
Oups, you're right the snippet disappeared... :/
I tried your solution, it's perfect!
In fact, my series were independent each from the others (not in the same objet and binded to SeriesAttribute with ItemSource), so I added an objet like your BusinessData wich contains all of the collections.
Thanks for your help!