📅  最后修改于: 2022-03-11 14:55:57.485000             🧑  作者: Mango
// install Extended.Wpf.Toolkit
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
private void ClrPcker_Background_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs e)
{
TextBox.Text = "#" + ClrPcker_Background.SelectedColor.R.ToString() + ClrPcker_Background.SelectedColor.G.ToString() + ClrPcker_Background.SelectedColor.B.ToString();
}