In the previous step you created a new UWP-style project and added a StackPanel to the application. In this step you'll continue by adding and customizing TextBlock and C1MaskedTextBox controls.
Complete the following steps:
Markup Copy Code <TextBlock Margin="2,2,2,10" Name="tb1" Text="Employee Information" /> <TextBlock FontSize="16" Margin="2,2,2,0" Text="Employee ID" />
Markup Copy Code <Xaml:C1MaskedTextBox x:Name="c1MaskedTextBox" Text="C1MaskedTextBox"/>
Markup Copy Code <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> <Xaml:C1MaskedTextBox Name="c1mtb1" VerticalAlignment="Top" Margin="2" Mask="000-00-0000" TextChanged="c1mtb1_TextChanged"/> </Grid>
Notice that this markup adds a name, sets the margin and alignment, and sets a mask for the content of the box. Note that you'll add code for the event handler you added in a later step.
Markup Copy Code <TextBlock x:Name="tb2" FontSize="16" Margin="2" /> <TextBlock FontSize="16" Margin="2,2,2,0" Text="Name"/> <Xaml:C1MaskedTextBox Name="c1mtb2" VerticalAlignment="Top" Margin="2" TextChanged="c1mtb2_TextChanged"></Xaml:C1MaskedTextBox> <TextBlock x:Name="tb3" FontSize="16" Margin="2"/> <TextBlock FontSize="16" Margin="2" Text="Hire Date"/> <Xaml:C1MaskedTextBox Name="c1mtb3" VerticalAlignment="Top" Margin="2" Mask="00/00/0000" TextChanged="c1mtb3_TextChanged"></Xaml:C1MaskedTextBox> <TextBlock x:Name="tb4" FontSize="16" Margin="2"/> <TextBlock FontSize="16" Margin="2,2,2,0" Text="Phone Number"/> <Xaml:C1MaskedTextBox Name="c1mtb4" VerticalAlignment="Top" Margin="2" Mask="(999) 000-0000" TextChanged="c1mtb4_TextChanged"></Xaml:C1MaskedTextBox> <TextBlock x:Name="tb5" FontSize="16" Margin="2"/>
You've successfully set up your application's user interface. In the next step you'll add code to your application.