12
12
using Syncfusion . Maui . Toolkit . NumericEntry ;
13
13
using Syncfusion . Maui . Toolkit . EntryRenderer ;
14
14
using Syncfusion . Maui . Toolkit . EntryView ;
15
- using Syncfusion . Maui . Toolkit . NumericUpDown ;
16
15
17
16
namespace Syncfusion . Maui . Toolkit . TextInputLayout
18
17
{
@@ -393,17 +392,12 @@ void UpDownButtonPressed(Point touchpoint)
393
392
{
394
393
if ( ( _downIconRectF . Contains ( touchpoint ) && IsUpDownVerticalAlignment ) || ( _upIconRectF . Contains ( touchpoint ) && ! IsUpDownVerticalAlignment ) )
395
394
{
396
- // Update the semantic description when the button is pressed
397
- SemanticProperties . SetDescription ( this , "Up button pressed" ) ;
398
- numericEntry . UpButtonPressed ( ) ;
395
+ numericEntry . UpButtonPressed ( ) ;
399
396
}
400
397
else if ( ( _upIconRectF . Contains ( touchpoint ) && IsUpDownVerticalAlignment ) || ( _downIconRectF . Contains ( touchpoint ) && ! IsUpDownVerticalAlignment ) )
401
398
{
402
- // Update the semantic description when the button is pressed
403
- SemanticProperties . SetDescription ( this , "Down button pressed" ) ;
404
- numericEntry . DownButtonPressed ( ) ;
399
+ numericEntry . DownButtonPressed ( ) ;
405
400
}
406
- SemanticScreenReader . Announce ( SemanticProperties . GetDescription ( this ) ) ;
407
401
}
408
402
#if IOS || MACCATALYST
409
403
await Task . Delay ( 10 ) ;
@@ -419,10 +413,7 @@ void ClearText()
419
413
{
420
414
if ( this . Content is ITextInputLayout numericEntry )
421
415
{
422
- // Update the semantic description when the button is pressed
423
- SemanticProperties . SetDescription ( this , "Clear button pressed" ) ;
424
- SemanticScreenReader . Announce ( SemanticProperties . GetDescription ( this ) ) ;
425
- numericEntry . ClearIconPressed ( ) ;
416
+ numericEntry . ClearIconPressed ( ) ;
426
417
if ( ! IsClearIconVisible && _effectsRenderer != null && _effectsRenderer . HighlightBounds . Width > 0 && _effectsRenderer . HighlightBounds . Height > 0 )
427
418
{
428
419
_effectsRenderer . RemoveHighlight ( ) ;
@@ -716,7 +707,6 @@ protected override void OnContentChanged(object oldValue, object newValue)
716
707
if ( numericEntryContent . Children [ 0 ] is Entry numericInputView )
717
708
{
718
709
numericInputView . Opacity = IsHintFloated ? 1 : ( DeviceInfo . Platform == DevicePlatform . iOS ? 0.00001 : 0 ) ;
719
- AutomationProperties . SetIsInAccessibleTree ( numericInputView , false ) ; // Exclude numeric entry view from accessibility.
720
710
}
721
711
}
722
712
else if ( newValue is Picker picker )
@@ -725,7 +715,6 @@ protected override void OnContentChanged(object oldValue, object newValue)
725
715
{
726
716
picker . Opacity = IsHintFloated ? 1 : ( DeviceInfo . Platform == DevicePlatform . iOS ? 0.00001 : 0 ) ;
727
717
}
728
- AutomationProperties . SetIsInAccessibleTree ( picker , false ) ; // Exclude picker from accessibility.
729
718
}
730
719
731
720
base . OnContentChanged ( oldValue , newValue ) ;
0 commit comments