문제

I have a DataGrid with multiple columns.

The data grid has a style that changes the forecolor of text on a row where the mouse is over or the row has been selected. So the text color will change from black to white, for example.

In one of the columns in the data grid, I have a ListBox.

Is it possible for the items in the list box to have the foreground change to that of the data grid row, when you do mouse over or select the data grid row?

I don't want to have a style for the list box that is specific to mouse over for the list items, I just want the foreground of the list items to change automatically to the forground of the data grid row when the mouse is over the row or selected the row.

So even if the user moves their mouse over a different column (that doesn't contain the listbox) - I would want the foreground for the listbox to change.

How can I go about doing this? ValueConverter?

Thanks.

Chris

올바른 솔루션이 없습니다

다른 팁

Never mind - did this with IValueConverter.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top