Create a user control and place it in the cell.
Have a dependency property on it to publish the select color back to where you need... Cheers, Jordan. On 06/12/2011, at 7:07 PM, "Greg Keogh" <g...@mira.net> wrote: > Now that’s solved, I have an even more ambitious thing to try. > > I want to turn a DataGrid cell into a colour picker. I have a template column > containing a <Grid> with a TextBlock inside. The grid background is bound to > the colour (via a converter) and I can see a cell value like #FFFF0000 with a > red background. I now have to: > > 1. Display the ARGB value as a known colour (if it corresponds to one). > 2. Make the mouse turn to a hand when over the colour cells. > 3. Open some sort of colour picker when the colour cells are clicked and get > that value back to the cell and bound property (luckily we’re using the C1 > kit and I think they have a colour picker). > > Fun eh?! I estimate 6 hours work. In WinForms it would take 15 minutes, but I > shouldn’t get sentimental. > > Greg > _______________________________________________ > ozsilverlight mailing list > ozsilverlight@ozsilverlight.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
_______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight