Table of Contents

NumbericTextBox 类

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

输入数值的文本框

public class NumbericTextBox : TextBox, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
继承
NumbericTextBox
实现
继承成员

构造函数

NumbericTextBox()

构造函数

public NumbericTextBox()

字段

MaxValueProperty

最大值的依赖属性

public static readonly DependencyProperty MaxValueProperty

字段值

DependencyProperty

MinValueProperty

最小值的依赖属性

public static readonly DependencyProperty MinValueProperty

字段值

DependencyProperty

PrecisionProperty

精度的依赖属性

public static readonly DependencyProperty PrecisionProperty

字段值

DependencyProperty

属性

MaxValue

最大值,可取

public double MaxValue { get; set; }

属性值

double

MinValue

最小值,可取

public double MinValue { get; set; }

属性值

double

Precision

精度,即精确到小数点后的位数

public ushort Precision { get; set; }

属性值

ushort

方法

HandlePaste()

处理粘贴的情况

protected virtual void HandlePaste()

OnPreviewTextChanged(TextChangedEventArgs)

protected virtual void OnPreviewTextChanged(TextChangedEventArgs e)

参数

e TextChangedEventArgs

事件

PreviewTextChanged

public event EventHandler<TextChangedEventArgs> PreviewTextChanged

事件类型

EventHandler<TextChangedEventArgs>