when a XamColorPicker is used as editor inside a XamDatagrid I have a problem to keep the SelectedDataItem.
Its a very similar question to the behavior of the edittors which can be solved by using the event EditModeStarting
Is there a similar way to deal with XamColorPicker inside a XamDatagrid? Its neccessary to keep the SelectedDataItem in place during and after setting the new color. So far I found only this posting.
The event DropDownOpening of the XamColorPicker does not know anything about the hosting XamDatagrid (as far as I see it).
Is there a different way to keep the SelectedDataItem alive during editing in XamColorPicker?
this workaround does the trick - thanks.
Nevertheless it does not look consistent, how the ActiveDataItem is handled: Other editors keep the ActiveDataItem, the XamColorPicker does not. Is it planned to align this?
Thank you for your update on this matter – I am glad that the workaround is working for you in this case.
As for whether it is planned to align the data item activation, it really is possible that you can place just about anything in the XamDataGrid cells. The XamColorPicker was not designed as a XamDataGrid editor like the XamTextEditor, XamNumericEditor, XamComboEditor, etc. and as such, there are no plans to align the data item activation for use in the XamDataGrid for the moment.
Please let me know if you have any other questions or concerns on this matter.