|
using System.ComponentModel;
using System.Windows;
using System.Windows.Media;
using ColorPicker;
namespace ColorPickerControls.Dialogs
{
/// <summary>
/// Interaction logic for ColorPickerDialog.xaml
/// </summary>
public partial class ColorPickerStandardWithAlphaDialog : Window , IColorDialog
{
public ColorPickerStandardWithAlphaDialog()
{
InitializeComponent();
}
private void btOk_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = true;
}
private void btCancel_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = false;
}
[Category("ColorPicker")]
public Color SelectedColor
{
get { return colorPickerFull.SelectedColor; }
set { colorPickerFull.SelectedColor = value; }
}
[Category("ColorPicker")]
public Color InitialColor
{
get { return colorPickerFull.InitialColor; }
set
{
colorPickerFull.InitialColor = value;
colorPickerFull.SelectedColor = value;
}
}
[Category("ColorPicker")]
public ColorSelector.ESelectionRingMode SelectionRingMode
{
get { return colorPickerFull.SelectionRingMode; }
set { colorPickerFull.SelectionRingMode = value; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Written software for what seems like forever. I'm currenly infatuated with WPF. Hopefully my affections are returned.