This question is locked. New answers and comments are not allowed.
Hi -
I've been asked to provide an API to allow for programmatic highlighting on the grid (as opposed to selecting).
For example on a 10x10 grid with blue cell backgrounds dynamically at runtime change Cell(3,4) to yellow background without anyone clicking, hovering or other direct user interactions. Basically an API along this line...
void HighlightCell(int columnIndex, int rowIndex, Style highlightStyle);
void HighlightRow(int rowIndex, Style highlightStyle);
void HighlightColumn(int columnIndex, Style highlightStyle);
Of course it would be nice to be able to easily reset it to defaults as well but yeah, we can just set them with the same API. Using row/column index or something else is not the issue.
I've been fiddling with this for a while, with OnLoad events, StyleSelectors, ValueConverters etc, etc but nothing works cleanly.
Do you have an example how to achieve this? Thanks!
I've been asked to provide an API to allow for programmatic highlighting on the grid (as opposed to selecting).
For example on a 10x10 grid with blue cell backgrounds dynamically at runtime change Cell(3,4) to yellow background without anyone clicking, hovering or other direct user interactions. Basically an API along this line...
void HighlightCell(int columnIndex, int rowIndex, Style highlightStyle);
void HighlightRow(int rowIndex, Style highlightStyle);
void HighlightColumn(int columnIndex, Style highlightStyle);
Of course it would be nice to be able to easily reset it to defaults as well but yeah, we can just set them with the same API. Using row/column index or something else is not the issue.
I've been fiddling with this for a while, with OnLoad events, StyleSelectors, ValueConverters etc, etc but nothing works cleanly.
Do you have an example how to achieve this? Thanks!