This question is locked. New answers and comments are not allowed.
Hi all,
Is there a way to have a StyleSelector return Null and pick up a default style from the Xaml definition?
I tried this using both the CellStyle and CellStyleSelector but the style selector does not seem to get applied in this case.
What I am trying to do is I have a style selector that turns the background red when the value in the cell exceeds a threshold, but if it does not then show the style that is defined in the Xaml for that cell.
The only way I can seem to think of doing this is to look at the name of the column in the style selector and set the default style there, but this is bad as I just want to declare the default once per cell in the Xaml definition.
Is this possible?
Many thanks,
Dave A.
Is there a way to have a StyleSelector return Null and pick up a default style from the Xaml definition?
I tried this using both the CellStyle and CellStyleSelector but the style selector does not seem to get applied in this case.
What I am trying to do is I have a style selector that turns the background red when the value in the cell exceeds a threshold, but if it does not then show the style that is defined in the Xaml for that cell.
The only way I can seem to think of doing this is to look at the name of the column in the style selector and set the default style there, but this is bad as I just want to declare the default once per cell in the Xaml definition.
Is this possible?
Many thanks,
Dave A.