Retrieve UpperCase value from an Entry and retrieve numerica value from NumericTextBox

Hi, i have two separate SfTextInputLayout, one with an Entry and one with a NumericTextBox
How can i retrieve the value of the Entry in UpperCase and how can i retrieve the numeric value o NumericTextBox?

Mi code:
                       
<inputLayout:SfTextInputLayout
                        HorizontalOptions="FillAndExpand"
                        VerticalOptions="FillAndExpand"
                        Grid.Row="0"
                        Grid.Column="0"
                        Hint="Producto"
                        ContainerType="Outlined"
                        ContainerBackgroundColor="Black"
                        UnfocusedColor="Chartreuse"
                        OutlineCornerRadius="8"
                        InputViewPadding="8"
                        FocusedColor="Chartreuse">

                    <Entry x:Name="rapidaName"/>

                    <inputLayout:SfTextInputLayout.HintLabelStyle>
                        <inputLayout:LabelStyle FontSize="20" FontFamily="{StaticResource FuenteNormal}" >
                        </inputLayout:LabelStyle>
                    </inputLayout:SfTextInputLayout.HintLabelStyle>
                </inputLayout:SfTextInputLayout>

                <inputLayout:SfTextInputLayout
                        Grid.Row="0"
                        Grid.Column="1"
                        Hint="Uds"
                        ContainerType="Outlined"
                        ContainerBackgroundColor="Black"
                        UnfocusedColor="Chartreuse"
                        OutlineCornerRadius="8"
                        InputViewPadding="8"
                        FocusedColor="Chartreuse">

                        <xForms:SfNumericTextBox x:Name="precio"
                                             HorizontalOptions="FillAndExpand"
                                             TextColor="Chartreuse"
                                             FontSize="22"
                                             FontFamily="{StaticResource FuenteNormal}"
                                             FormatString="c" 
                                             BackgroundColor="Black"
                                             MaximumNumberDecimalDigits="2"
                                             Maximum="999"
                                             WatermarkColor="Chartreuse"
                                             IsEnabled="True"
                    />

                    <inputLayout:SfTextInputLayout.HintLabelStyle>
                        <inputLayout:LabelStyle FontSize="20" FontFamily="{StaticResource FuenteNormal}" >
                        </inputLayout:LabelStyle>
                    </inputLayout:SfTextInputLayout.HintLabelStyle>
                </inputLayout:SfTextInputLayout>

Thanks in advance


3 Replies 1 reply marked as answer

AS Anandraj Selvam Syncfusion Team June 26, 2020 01:05 PM UTC

Hi Luis Gomez,  
   
Greetings from the Syncfusion. 
  
Query 1: How can I retrieve the value of the Entry in UpperCase 
  
We can retrieve the value of the Entry in CompletedEvent and you can change the text to uppercase as below code snippet: 
  
[XAML] 
  
<inputLayout:SfTextInputLayout> 
<Entry x:Name="rapidaName" Completed="Entry_Completed"/> 
</inputLayout:SfTextInputLayout> 
  
[C#] 
private void Entry_Completed(object sender, EventArgs e) 
{ 
   rapidaName.Text = rapidaName.Text.ToUpper(); 
} 
  
Query 2: how can I retrieve the numeric value of NumericTextBox 
  
You can retrieve the value of the SfNumericTextBox using ValueChangedEvent. Please go through the below link for more details 
  
 
Please revert us for further investigation. 
  
Regards,     
Anand Raj S. 


Marked as answer

LG Luis Gomez June 26, 2020 04:11 PM UTC

It works
Thank you so much!




DD Devakumar Dhanapoosanam Syncfusion Team June 29, 2020 05:35 AM UTC

Hi Luis Gomez, 
 
Thanks for your update and we are glad to hear that the provided solution works. 
 
Please let us know if you need any further assistance. 
 
Regards, 
Devakumar D 


Loader.
Up arrow icon