I have to create a color picker in my WPF application. When I click on any color, the code of that color should come in a textbox. I googled a lot but found nothing matching
Have a look at ColorBox control at codeplex. You can also create Linear and Radial gradients with it.