Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
UnboundField horizontal scroll behaviour
posted

Hello,

I'm using XamDataGrid which contains about 9 bound and about 70 unbound fields. For CellValuePresenter I've created custom template(ControlTemplate), in which I have trigger. Trigger is bound to property in VM and to CellValuePresenter itself.

The issue is that when I scroll vertically CellValuePresenter changed for both types of fields (which I believe is expected behaviour). But during horizontal scroll only CellValuePresenters for bound fields is changed. I need this behaviour to change style of CellValuePresenter according to value in VM.

The workaround I've found yet is to either disable cell virtualization(which is horrible in terms of performance) or set CellContainerGeneration to LazyLoad (which is also not the best decision in terms of performance).

Is there any way to notify that CellValuePresenter has changed(because I believe it has)?

Parents Reply Children
No Data