Can equipment be dyed in a trade window?
No, Diablo does not support acting on items in the trade window in the way that games like World of Warcraft do. You'll need to find someone you trust to apply the CE dyes from their own inventory and then give the item back to you.