Can you bind the VALUE to the dataset for evaluation. For example:
<ig:ConditionalFormatIcon ValueType="Number" Value="{Binding Path=Percentage}" Operator="GreaterThan">
I need the VALUE to be based on a number in the binded datasource...
Is this possible? Does not seem to work unless I hard code the number....
Hi aaron01,
Let me know if you have any further questions on this matter.
The reason that binding won't work is because the ConditionalFormatIcon object isnt in the visual tree so there is no DataContext to pull the Percentage property from. What you can do is create a custom conditional format rule that derives from the IconConditionalFormatRule. In here you can then compare your values against the Percentage property from the bound data object. I've attached a sample that demonstrates this approach.
Let me know if you have any questions on this.
I'm going to put together a sample to test this and will update you tomorrow but it should be possible. If not through a binding like you described, you could create a custom conditional format that uses the bound data object's Percentage property for comparison. I'll show this method in my sample.