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
70
Determine when a record does not appear selected
posted

Hello!

There seem to be (at least) two DataRecordPresenter selected states:
1) selected and has the selection color
2) not selected but retains the selection color

To reproduce:

1) Ctrl-click on the record, the record is active & selected
2) Ctrl-click, again, on the same record, the record is active but NOT selected

However: in 2) the record retains the selected background color!
It is this state that I need to somehow detect, hopefully using a trigger!

Reason: for a specific "Field" I have a specific style:

<ig:Field.Settings>
   <ig:FieldSettings AllowEdit="False" CellValuePresenterStyle="{StaticResource MyStyle}">
    </ig:FieldSettings>
</ig:Field.Settings>

And in MyStyle I want to set the background color for the cell. This happens, but I don't want to set it:

a) on mouse-hover-over the record
b) when the record is "appears" selected, i.e. has the selected background color applied to it
c) when the record is being "executed" (our business logic)

Therefore I need to detect this "hidden" selected state!

Note that the Style os for the CellValuePresenter and not for the DataRecordPresenter!

Parents Reply Children
No Data