@@ -27,12 +27,17 @@ public abstract class InputBaseUpDown : Control
27
27
DependencyProperty . Register ( "NumberStyle" , typeof ( NumberStyles ) ,
28
28
typeof ( InputBaseUpDown ) , new PropertyMetadata ( NumberStyles . Any ) ) ;
29
29
30
+ /// <summary>
31
+ /// Backing store of <see cref="IsEnableValidatingIndicator"/> dependency property.
32
+ /// </summary>
33
+ public static readonly DependencyProperty IsEnableValidatingIndicatorProperty =
34
+ DependencyProperty . Register ( "IsEnableValidatingIndicator" , typeof ( bool ) , typeof ( InputBaseUpDown ) , new PropertyMetadata ( true ) ) ;
35
+
30
36
/// <summary>
31
37
/// Backing store of <see cref="EditingVisibility"/> dependency property.
32
38
/// </summary>
33
39
public static readonly DependencyProperty EditingVisibilityProperty =
34
- DependencyProperty . Register ( "EditingVisibility" , typeof ( Visibility ) ,
35
- typeof ( InputBaseUpDown ) , new PropertyMetadata ( Visibility . Hidden ) ) ;
40
+ DependencyProperty . Register ( "EditingVisibility" , typeof ( Visibility ) , typeof ( InputBaseUpDown ) , new PropertyMetadata ( Visibility . Hidden ) ) ;
36
41
37
42
/// <summary>
38
43
/// Backing store of <see cref="EditingColorBrush"/> dependency property.
@@ -43,7 +48,7 @@ public abstract class InputBaseUpDown : Control
43
48
44
49
45
50
/// <summary>
46
- /// identify that the inputing data is value ,
51
+ /// identify that the inputing data is valid or not. ,
47
52
/// </summary>
48
53
/// <value></value>
49
54
protected System . Windows . Media . SolidColorBrush EditingColorBrush
@@ -52,12 +57,25 @@ protected System.Windows.Media.SolidColorBrush EditingColorBrush
52
57
set { SetValue ( EditingColorBrushProperty , value ) ; }
53
58
}
54
59
60
+ /// <summary>
61
+ /// identify that the editing Visibility
62
+ /// </summary>
63
+ /// <value></value>
55
64
protected Visibility EditingVisibility
56
65
{
57
66
get { return ( Visibility ) GetValue ( EditingVisibilityProperty ) ; }
58
67
set { SetValue ( EditingVisibilityProperty , value ) ; }
59
68
}
60
69
70
+ /// <summary>
71
+ /// identify that the is enable the red/green tip while editing
72
+ /// </summary>
73
+ /// <value></value>
74
+ protected bool IsEnableValidatingIndicator
75
+ {
76
+ get { return ( bool ) GetValue ( IsEnableValidatingIndicatorProperty ) ; }
77
+ set { SetValue ( IsEnableValidatingIndicatorProperty , value ) ; }
78
+ }
61
79
62
80
private static RoutedCommand _IncreaseCommand ;
63
81
private static RoutedCommand _DecreaseCommand ;
0 commit comments