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
字段值
MinValueProperty
最小值的依赖属性
public static readonly DependencyProperty MinValueProperty
字段值
PrecisionProperty
精度的依赖属性
public static readonly DependencyProperty PrecisionProperty
字段值
属性
MaxValue
最大值,可取
public double MaxValue { get; set; }
属性值
MinValue
最小值,可取
public double MinValue { get; set; }
属性值
Precision
精度,即精确到小数点后的位数
public ushort Precision { get; set; }
属性值
方法
HandlePaste()
处理粘贴的情况
protected virtual void HandlePaste()
OnPreviewTextChanged(TextChangedEventArgs)
protected virtual void OnPreviewTextChanged(TextChangedEventArgs e)
参数
事件
PreviewTextChanged
public event EventHandler<TextChangedEventArgs> PreviewTextChanged