Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

color picker wpf

System.Windows.Forms.ColorDialog colorDialog = new System.Windows.Forms.ColorDialog();
 if (colorDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
 {
      YourBtn.Background = new SolidColorBrush(Color.FromArgb(colorDialog.Color.A, colorDialog.Color.R, colorDialog.Color.G, colorDialog.Color.B));
      ColorName = colorDialog.Color.Name.ToLower();
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #color #picker #wpf
ADD COMMENT
Topic
Name
4+3 =