This question is locked. New answers and comments are not allowed.
Hi all,
I have a requirement where I need to assign 2 style selectors to a cell and have them evaluate in a certain order.
Is this possible?
I have two styles, let us assume that they do the following (not the real cases but demonstrate the point):
1) Turns a background red if the value is over a certain number - let us assume this is called TooBigStyleSelector
2) Turns a background blue if the value has recently been updated - let us assume this is called RecentUpdateStyleSelector
Now I can apply either of these selectors to a gridviewcell independently, but for one cell I would like to apply both.
The rule should be that TooBigStyleSelector has a higher priority the RecentUpdateStyleSelector so that if the cell gets updated it goes blue, but it the value that it is updated to is too big it goes red.
How can I acheive this? I suspect I can do it by calling one style selector from the other, but would prefer to do it in Xaml if possible.
Many thanks,
Dave A.
I have a requirement where I need to assign 2 style selectors to a cell and have them evaluate in a certain order.
Is this possible?
I have two styles, let us assume that they do the following (not the real cases but demonstrate the point):
1) Turns a background red if the value is over a certain number - let us assume this is called TooBigStyleSelector
2) Turns a background blue if the value has recently been updated - let us assume this is called RecentUpdateStyleSelector
Now I can apply either of these selectors to a gridviewcell independently, but for one cell I would like to apply both.
The rule should be that TooBigStyleSelector has a higher priority the RecentUpdateStyleSelector so that if the cell gets updated it goes blue, but it the value that it is updated to is too big it goes red.
How can I acheive this? I suspect I can do it by calling one style selector from the other, but would prefer to do it in Xaml if possible.
Many thanks,
Dave A.