mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-20 07:26:26 +02:00
36 lines
761 B
C#
36 lines
761 B
C#
using Avalonia.Markup.Xaml;
|
|
using Avalonia.Media;
|
|
using UVtools.WPF.Controls;
|
|
|
|
namespace UVtools.WPF.Windows
|
|
{
|
|
public class ColorPickerWindow : WindowEx
|
|
{
|
|
public Color ResultColor { get; set; }
|
|
|
|
public ColorPickerWindow()
|
|
{
|
|
DataContext = this;
|
|
InitializeComponent();
|
|
|
|
}
|
|
public ColorPickerWindow(Color defaultColor)
|
|
{
|
|
ResultColor = defaultColor;
|
|
DataContext = this;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
public void OnClickOk()
|
|
{
|
|
DialogResult = DialogResults.OK;
|
|
CloseWithResult();
|
|
}
|
|
}
|
|
}
|