We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfAutoComplete cant control textsize on iOS

Thread ID:

Created:

Updated:

Platform:

Replies:

143928 Apr 10,2019 06:39 PM UTC Apr 11,2019 12:33 PM UTC Xamarin.iOS 3
loading
Tags: SfAutoComplete
Chris
Asked On April 10, 2019 06:39 PM UTC

I have set the TextSize attribute to my SfAutoComplete, and it changes on my Android, however now that I am testing the the iOS version of the app I can set any number to my TextSize and the size doesnt change and I dont know why, I searched my code and nothing should be overwriting it.

XAML:

        <Frame
                HorizontalOptions="CenterAndExpand"
                VerticalOptions="CenterAndExpand"
                BorderColor="#e7e7e7"
                HasShadow="False"
                Padding="0,0,0,0"
                >



                        <autocomplete:SfAutoComplete  x:Name="miesto"
                        TextSize="12"
                        Margin="5,0,0,0"
                        TextColor="#1c1c1c"
                        ShowBorder="False"
                        FontFamily="Roboto-Regular.ttf#Roboto"
                        WidthRequest="100"
                        HorizontalOptions="CenterAndExpand"
                        />
                    </Frame>

Muneesh Kumar G [Syncfusion]
Replied On April 11, 2019 09:40 AM UTC

Hi Chris,  
 
Greetings from Syncfusion. We have analyzed your query and we would like to inform you that while using the custom fonts in your application, you need to set different syntax for each OS.  
 
For iOS, we have to give the exact name of the file, without the extension. For Android we have to give the filename with the extension as per the below code snippet.  
 
Please use the font.ttf file code on the XAML code as mentioned below. 
  
 
<autocomplete:SfAutoComplete.FontFamily> 
           <OnPlatform x:TypeArguments="x:String"> 
                <On Platform="iOS" Value="Roboto-Regular" /> 
                <On Platform="UWP" Value="/Assets/Roboto-Regular.ttf#Roboto" /> 
                <On Platform="Android" Value="Roboto-Regular.ttf#Roboto" /> 
           </OnPlatform> 
 </autocomplete:SfAutoComplete.FontFamily>  
 
We have created a sample in SfAutoComplete as per the code snippet provided. Please have the sample for your reference. 
 
Please let us know if you have any concern about this. 
 
Thanks, 
Muneesh Kumar G. 


Chris
Replied On April 11, 2019 12:21 PM UTC

Thank you, the provided solution works.

Greetings,

Chris.

Muneesh Kumar G [Syncfusion]
Replied On April 11, 2019 12:33 PM UTC

Hi Chris, 
 
We are glad to know that the given solution works. Please let us know if you need any further assistance. 
 
Thanks, 
Muneesh Kumar G. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon