C1ComboBox Text Size

Posted by: jared.fritsch on 1 November 2017, 3:04 am EST

    • Post Options:
    • Link

    Posted 1 November 2017, 3:04 am EST

    How do I set the text size of a C1ComboBox?

    The closest thing I can see is setting the TextFont property, which takes a C1Font object. I can’t figure out how I would do that in XAML, and when I try to set the TextFont property to a new C1Font object in the codebehind, I get an error.

    MyComboBox.TextFont = C1Font.Create(() => 12, null, null, null);
    

    Unable to cast object of type ‘C1.Xamarin.Forms.Core.C1Font’ to type ‘C1.UWP.Core.C1Font’.

    Am I missing an easier way to do this?

  • Posted 7 November 2017, 6:18 am EST

    Hi Jared

    Sorry for the delay on this. Let me talk to the developers about this one.

    Kelley

  • Posted 8 November 2017, 6:47 am EST

    Hi Jared

    The short answer to this question is that there isn’t presently a way to change the other font settings like FontSize, FontAttributes, and FontFamily, though this is an oversight on our part and we’re going to work on correcting this after the 2017v3 release (which will be next week). The C1Font object is actually meant to be internal, and it won’t work for this sort of configuration as it’s meant as a tool for internal code sharing rather than outside configuration. We will expose properties for FontSize, FontAttributes, and FontFamily in the future.

    Kelley

  • Posted 8 November 2017, 7:12 am EST

    Sounds good. Thanks for the explanation!

  • Posted 30 January 2018, 3:40 am EST

    Kelley - any update on exposing some font properties for the C1ComboBox?

  • Posted 30 January 2018, 6:18 am EST

    Hi Jared

    It will be in the v1 release I mentioned is coming around mid March. We’ll be adding the following properties for configuring DropDown derived controls: TextFontSize, TextFontFamily, and TextFontAttributes.

    Kelley

  • Posted 30 January 2018, 8:16 am EST

    Thanks for the update!

  • Posted 17 March 2018, 9:07 am EST

    Do we have an ETA for the v1 release? This is important functionality…

  • Posted 18 March 2018, 5:06 pm EST

    2018v1 is expected to be released towards the end of this month.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels