UWP - TextBox style example

MainPage.xaml

<Page
    x:Class="UniversalAppTutorials.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:UniversalAppTutorials"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    >
    <StackPanel Padding="50" Background="AliceBlue">
        <TextBox
            x:Name="TextBox1"
            Text="Suhailah Alam"
            Header="Name"
            Margin="5"
            FontFamily="MV Boli"
            FontSize="30"
            FontStyle="Italic"
            Foreground="Crimson"
            FontWeight="Bold"
            CharacterSpacing="200"
            />
        <TextBox
            x:Name="TextBox2"
            Margin="5"
            />
    </StackPanel>
</Page>
MainPage.xaml.cs

using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
using Windows.UI.Text;
using Windows.UI;


namespace UniversalAppTutorials
{
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
            StyleSecondTextBox();
        }

        // Set the second TextBox style programmatically
        void StyleSecondTextBox() {
            // Set TextBox font family
            TextBox2.FontFamily = new FontFamily("Cambria");
            
            // Set TextBox font/text size
            TextBox2.FontSize = 30;

            // Set TextBox font style
            TextBox2.FontStyle = FontStyle.Normal;

            // Set TextBox character spacing
            TextBox2.CharacterSpacing = 150;

            // Set TextBox background and text color
            TextBox2.Background = new SolidColorBrush(Colors.Snow);
            TextBox2.Foreground = new SolidColorBrush(Colors.BlueViolet);

            // Set TextBox text and header
            TextBox2.Text = "Khulna, Bangladesh";
            TextBox2.Header = "Address";
        }
    }
}