This code is used for Windows applications. Cannot be used in WPF windows :-
private void part1colorbtn_Click(object sender, RoutedEventArgs e)
{
DialogResult result = colorDialog1.ShowDialog();
if (result == DialogResult.OK)
{
part2colorbtn.BackColor = colorDialog1.Color;
}
}
How to use color dialog box inside WPF windows? Please help me.
Rajanikant HawaldarPosted Jan 12, 2023, 4:48 PM
Refer below articles
https://www.c-sharpcorner.com/UploadFile/mahesh/wpf-colorpicker/
https://www.c-sharpcorner.com/blogs/wpf-color-picker-c-sharp
Vikas PanwarPosted Jan 12, 2023, 1:31 PM
Try this for more information.
https://www.c-sharpcorner.com/UploadFile/87b416/create-color-picker-in-wpf/
Amit MohantyPosted Jan 12, 2023, 10:40 AM
Try this