SfNumericTextBox Localization with Localizable.strings didnt work.

Hello ,

im using this guide
https://help.syncfusion.com/xamarin/numeric-entry/localization

and want "Change Localization of Return key text"

Localizable.strings content:
Return"="Fertig"

But The Text in the Return key is "Return" so not changed.

descripe in this:
https://www.syncfusion.com/kb/8075/how-to-localize-the-return-buttons-text-in-sfnumerictextbox-in-xforms-ios

- i have added the file to my IOS projekt.

this is my view code:
                                    Grid.Row="1"
                        Hint="xxx"                    
                        Style="{StaticResource LSfTextInputDefaultStyleBlue}">
                                                                      Culture="{Binding CultureName}"                                                 
                                                  IsEnabled="{Binding a, Converter={StaticResource InvertedBooleanConverter}}"
                                                  Value="{Binding b, Mode=TwoWay}" />
               

i have a custom renderer

[assembly: ExportRenderer(typeof(SfNumericTextBoxExt), typeof(CustomSfNumericTextBoxRenderer))]
[assembly: ExportRenderer(typeof(SfNumericTextBoxExt), typeof(MaterialSfNumericTextBoxRenderer), new[] { typeof(VisualMarker.MaterialVisual) })]
namespace DrSchuldner.iOS.Renderers
{
    public class CustomSfNumericTextBoxRenderer : SfNumericTextBoxRenderer
    {
        public CustomSfNumericTextBoxRenderer()
        {
        }

        protected override void OnElementChanged(ElementChangedEventArgs e)
        {
            base.OnElementChanged(e);

            if (Control != null)
            {
                Control.TintColor = UIColor.Clear.FromHexString("36bfb0"); ;
                Control.TextColor = UIColor.Clear.FromHexString("36bfb0"); ;
            }
        }
    }

    ///

    /// Represents the auto complete material renderer class.
    ///

    internal class MaterialSfNumericTextBoxRenderer : SfNumericTextBoxRenderer
    {
        public MaterialSfNumericTextBoxRenderer()
        {
        }
    }
}







3 Replies 1 reply marked as answer

HM Hemalatha Marikumar Syncfusion Team June 19, 2020 02:49 AM UTC

Hi Johannes Meyer, 
 
We would like to let you know that localized string for Return key will be worked while having the corresponding Return key text as mentioned in below 
 
return = “Revenir” 
 



 
 
Regards, 
Hemalatha M. 
 


Marked as answer

JM Johannes Meyer June 19, 2020 11:04 AM UTC

thank you for your fast response .

it works :)

can you tell me one last , how can i change the color of the return button ? :)

i have found the solution :)

            var button = (UIButton)Control.InputAccessoryView.Subviews[2];           
            button.SetTitleColor(UIColor.Clear.FromHexString("36bfb0"), UIControlState.Normal);


HM Hemalatha Marikumar Syncfusion Team June 22, 2020 04:49 AM UTC

Hi Johannes Meyer, 
 
Thanks for your update. 
 
We are glad to hear that you have found the solution.  
 
Please let us know if you need any further assistance.  
 
Regards,
Hemalatha M. 


Loader.
Up arrow icon