WinRT Edition Basic Library > Input for WinRT > Input for WinRT Quick Starts > NumericBox for WinRT Quick Start > Step 1 of 4: Creating a WinRT-style Application |
In this step you'll create a WinRT-style application using NumericBox for WinRT. When you add a C1NumericBox control to your application, you'll have a complete, functional numeric editor. You can further customize the control to your application.
To set up your project, complete the following steps:
Markup Copy Code <StackPanel x:Name="sp1" Width="Auto" Height="Auto" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center"></StackPanel>
Elements in the panel will now appear centered and vertically positioned.
Markup Copy Code <TextBlock x:Name="tb1" Text="Enter Combination" Margin="5" FontSize="24"/>
Markup Copy Code <StackPanel x:Name="sp2" Width="Auto" Height="Auto" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"></StackPanel>
Elements in the panel will now appear centered and horizontally positioned.
Markup Copy Code <TextBlock x:Name="tb2" Text="Invalid Combination" Foreground="Red" Margin="5" FontSize="18"/>
Markup Copy Code <Button x:Name="btn1" Content="Enter" Height="60" Visibility="Collapsed" Click="btn1_Click" Margin="5"></Button>
You will add the btn1_Click event handler later in code.
You've successfully created a WinRT-style application, set up the application's user interface, and added controls to the application. In the next step you'll add C1NumericBox controls and complete setting up the application.