@@ -190,6 +190,7 @@ public bool IsUpdateValueWhenLostFocus
190190
191191 public bool IsEditingValid { get ; protected set ; }
192192
193+ #if false
193194 public static readonly StyledProperty < bool > IsEditingVisiableProperty =
194195 AvaloniaProperty . Register < NumericUpDown , bool > ( nameof ( IsEditingVisiable ) , false ) ;
195196
@@ -202,6 +203,7 @@ public bool IsEditingVisiable
202203 get => GetValue ( IsEditingVisiableProperty ) ;
203204 protected set => SetValue ( IsEditingVisiableProperty , value && IsEnableEditingIndicator ) ;
204205 }
206+ #endif
205207
206208 public static readonly StyledProperty < bool > IsEditingProperty =
207209 AvaloniaProperty . Register < NumericUpDown , bool > ( nameof ( IsEditing ) , false ) ;
@@ -237,12 +239,13 @@ static NumericUpDown()
237239 IsShowReadButtonProperty . Changed . AddClassHandler < NumericUpDown , bool > ( ( o , e ) => o . OnReadWriteShowChange ( e ) ) ;
238240 IsShowWriteButtonProperty . Changed . AddClassHandler < NumericUpDown , bool > ( ( o , e ) => o . OnReadWriteShowChange ( e ) ) ;
239241
240- IsEnableEditingIndicatorProperty . Changed . AddClassHandler < NumericUpDown , bool > ( ( o , e ) => o . OnIsEnableEditingIndicatorChanged ( e ) ) ;
242+ // IsEnableEditingIndicatorProperty.Changed.AddClassHandler<NumericUpDown, bool>((o, e) => o.OnIsEnableEditingIndicatorChanged(e));
241243 }
242244
243245 private void OnIsEnableEditingIndicatorChanged ( AvaloniaPropertyChangedEventArgs < bool > e )
244246 {
245- IsEditingVisiable = IsEditing && IsEnableEditingIndicator ;
247+ // IsEditingVisiable =
248+ // IsEditing && IsEnableEditingIndicator;
246249 }
247250
248251 private void OnReadWriteShowChange ( AvaloniaPropertyChangedEventArgs < bool > e )
@@ -367,7 +370,8 @@ private void OnTextBoxTextChanged(object? sender, TextChangedEventArgs e)
367370 {
368371 CheckContextIsChangedAndValid ( ( sender as TextBox ) . Text , ref ed , ref edv ) ;
369372
370- IsEditingVisiable = IsEditing = ed ;
373+ // IsEditingVisiable =
374+ IsEditing = ed ;
371375 IsEditingValid = edv ;
372376 UpdatePseudoClasses ( ) ;
373377 }
0 commit comments