In UWP, opening up the numeric keyboard

Hello Syncfusion,

Can you please show me how to open up the Numeric keyboard with SFNumericTextBox?
At the moment, UWP opens up full Alphanumeric keyboard.

Regards and Thanks,
Manbir Rakhra

3 Replies

AS Anandraj Selvam Syncfusion Team April 14, 2020 08:47 AM UTC

Hi Manbir, 
  
Greetings from the Syncfusion. 
  
We have checked the reported query and we have achieved your requirement using the CustomRenderer by setting InputScope property value as InputScopeNameValue.Number to the native NumericTextBox as per the code snippet shown below. 
  
Code Snippet: 
  
public class ExtendedNumericTextBox : SfNumericTextBoxRenderer  
    {  
        protected override voidOnElementChanged(ElementChangedEventArgs<SfNumericTextBox> e)  
        {  
            base.OnElementChanged(e);  
            if (Control != null)  
            {  
                Native.SfNumericTextBox nativeNumericTextBox = Control asNative.SfNumericTextBox;  
                if (nativeNumericTextBox.InputScope == null)  
                {  
                    nativeNumericTextBox.InputScope = new InputScope()  
                    {  
                        Names = { new InputScopeName(InputScopeNameValue.Number) }  
                    };  
                }  
            }  
        }  
    }  
 
  
  
Please revert us for further investigation. 
  
Regards, 
Anand Raj S.


MR Manbir Rakhra April 15, 2020 12:05 AM UTC

Hello Anandraj,

I will check it.
Thanks for your prompt reply.

Regards and Thanks,
Manbir Rakhra


AS Anandraj Selvam Syncfusion Team April 15, 2020 07:44 AM UTC

Hi Manbir, 
  
Thanks for the update. We will wait to hear from you. 
  
Regards, 
Anand Raj S. 


Loader.
Up arrow icon