Ejemplo n.º 1
0
 private void SelectColor_Click(object sender, RoutedEventArgs e)
 {
     PersonaEditorLib.ColorPicker.ColorPickerTool colorPickerTool = new PersonaEditorLib.ColorPicker.ColorPickerTool(Current.Default.SelectColor);
     if (colorPickerTool.ShowDialog() == true)
     {
         Current.Default.SelectColor = colorPickerTool.Color;
     }
 }
        private void BackgroundColor_Pick(object sender, RoutedEventArgs e)
        {
            var a = ColorConverter.ConvertFromString(BackgroundColor);

            PersonaEditorLib.ColorPicker.ColorPickerTool colorPicker = new PersonaEditorLib.ColorPicker.ColorPickerTool((Color)a);
            if (colorPicker.ShowDialog() == true)
            {
                BackgroundColor = colorPicker.Color.ToString();
            }
        }