コード例 #1
0
ファイル: ColorPicker.cs プロジェクト: zyj0021/kaxaml
        /// <summary>
        /// Updates the Color property any time the text changes
        /// </summary>

        protected override void OnTextChanged(System.Windows.Controls.TextChangedEventArgs e)
        {
            base.OnTextChanged(e);

            ColorSetInternally = true;
            Color              = ColorPickerUtil.ColorFromString(this.Text);
            ColorBrush         = new SolidColorBrush(Color);
            ColorSetInternally = false;
        }