Change Font Style of TextBox Using LongListSelector in Windows Phone 8.1

Changing the font style when writing is a great fun. In Windows Phone 8.1 you can have multiple font styles. You must simply select them from the list and your font style will be changed.

  1. Open Visual Studio 2013.

  2. Add a new Windows Phone (Silverlight) App project and provide an appropriate name.

  3. Now go to TOOLS -> Nuget Package Manager -> Package Manager Console.

  4. Write Install-Package WPtoolkit after PM>.

  5. After installing the package you will see its assembly added into your references in Solution Explorer.

    Note: Add a reference for the Silverlight toolkit to your project and add this namespace into your XAML page.
    1. xmlns: hello="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 
  6. In XAML, add a button and a TextBox.


  7. Now add this data template code before grid (Grid x:Name="Layout").


  8. Now in XAML.cs add this code.


    Now save then press F5, you will be able to play with multiple font styles.

    my application


    text format

    change format

Happy coding :)