Question

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

No correct solution

OTHER TIPS

Never mind - did this with IValueConverter.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow