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
字段值
属性
Color
public Color Color { get; set; }
属性值
ColorBrush
public SolidColorBrush ColorBrush { get; }
属性值
ColorHex
public string ColorHex { get; }
属性值
方法
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
DependencyPropertyChangedEventArgsThe 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
Tvalue
TpropertyName
string
返回
类型参数
T
事件
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler? PropertyChanged