Table of Contents

ColorPicker 类

命名空间
ClassIsland.Core.Controls
程序集
ClassIsland.Core.dll

ColorPicker.xaml 的交互逻辑

public class ColorPicker : UserControl, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, INotifyPropertyChanged, IComponentConnector
继承
ColorPicker
实现
继承成员

构造函数

ColorPicker()

public ColorPicker()

字段

ColorProperty

public static readonly DependencyProperty ColorProperty

字段值

DependencyProperty

属性

Color

public Color Color { get; set; }

属性值

Color

ColorBrush

public SolidColorBrush ColorBrush { get; }

属性值

SolidColorBrush

ColorHex

public string ColorHex { get; }

属性值

string

方法

InitializeComponent()

InitializeComponent

public void InitializeComponent()

OnPropertyChanged(string?)

protected virtual void OnPropertyChanged(string? propertyName = null)

参数

propertyName string

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(DependencyPropertyChangedEventArgs).

protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)

参数

e DependencyPropertyChangedEventArgs

The event data that describes the property that changed, as well as old and new values.

SetField<T>(ref T, T, string?)

protected bool SetField<T>(ref T field, T value, string? propertyName = null)

参数

field T
value T
propertyName string

返回

bool

类型参数

T

事件

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler? PropertyChanged

事件类型

PropertyChangedEventHandler