Skip to content

Increase and decrease font size in wp8 app

JOHN JOHNNNY

Asked Jul 31, 2014, 4:55 AM EDT1 answer
Share
LinkedInX
Good day

I will like to add a feature that will give users ability to increase and decrease the font size of my app
The size should be from 1-5 or small, medium and big
How can i implement this

Reply soon and thank you in advance

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Have a dropdown with values, e.g,. small, medium, big

    i'm giving you algorithm below:

    void page_load()
    {
    font1.add("small",1);
    font1.add("medium",3);
    font1.add("big",4);
    }

    now you have, dropdown_change event and where you want to apply this. Generally it's applied at RTE (rich text editor), e.g,

    void font1_change()
    {
       rte1.selection.fontsize=font1.selectedIndex();
    }
    0