I've got a scenario where I'm programmatically generating columns for months and setting the CellStyleSelector for that column.
The columns are all bound to a property called CellData and given a custom converter that takes the column's date in as a ConverterParameter.
My style selector is very simple and involves changing a cell's font color. Right now I want cells to be gray if a property is zero. This works great initially.
The problem comes when I perform actions that modify the underlying data. Notifying property changed on CellData causes the column bindings to update and the data to reflect the correct values, but the CellStyleSelector does not re-apply itself. This is a problem since values that are no longer zero are still gray and values that weren't zero before are zero now and are still black.
What are my options for getting the CellStyleSelector on these columns to refresh? The StyleSelector for each date column currently points to the same object.
The columns are all bound to a property called CellData and given a custom converter that takes the column's date in as a ConverterParameter.
My style selector is very simple and involves changing a cell's font color. Right now I want cells to be gray if a property is zero. This works great initially.
The problem comes when I perform actions that modify the underlying data. Notifying property changed on CellData causes the column bindings to update and the data to reflect the correct values, but the CellStyleSelector does not re-apply itself. This is a problem since values that are no longer zero are still gray and values that weren't zero before are zero now and are still black.
What are my options for getting the CellStyleSelector on these columns to refresh? The StyleSelector for each date column currently points to the same object.