mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 09:49:16 +01:00
36 lines
979 B
C#
36 lines
979 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows;
|
|||
|
using System.Windows.Controls;
|
|||
|
using System.Windows.Data;
|
|||
|
using System.Windows.Documents;
|
|||
|
using System.Windows.Input;
|
|||
|
using System.Windows.Media;
|
|||
|
using System.Windows.Media.Imaging;
|
|||
|
using System.Windows.Shapes;
|
|||
|
|
|||
|
namespace DS4WinWPF.DS4Forms
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Interaction logic for ColorPickerWindow.xaml
|
|||
|
/// </summary>
|
|||
|
public partial class ColorPickerWindow : Window
|
|||
|
{
|
|||
|
public delegate void ColorChangedHandler(ColorPickerWindow sender, Color color);
|
|||
|
public event ColorChangedHandler ColorChanged;
|
|||
|
|
|||
|
public ColorPickerWindow()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
private void ColorPicker_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs<Color?> e)
|
|||
|
{
|
|||
|
ColorChanged?.Invoke(this, e.NewValue.GetValueOrDefault());
|
|||
|
}
|
|||
|
}
|
|||
|
}
|