Friday, June 13, 2014

CHAPTER 2 EX 05 Parker Registration page

Ex 5) Parker has recently started learning Windows Store apps development.He has learned creating UI of apps by adding UI ELEMENTS. Now,he has been assigned a task to develop the ui of the registrarion page.The UI of the app will contain the following fields.
Username,First name,last name,password,confirm password,date of birth,gender,receive notifications through email,Accept terms and conditions.
In addition,the register button should be provided on the iterface,After adding the UI elments,the UI should appear,as shown in the following figure.

Ans 5) Paste in mainpage.xaml


<Page
    x:Class="Registration.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Registration"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Height="763.254">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Margin="20,29,20,10" RenderTransformOrigin="0.67,0.626">
        <TextBlock HorizontalAlignment="Left" Margin="134,18,0,0" TextWrapping="Wrap" Text="User name" VerticalAlignment="Top" Height="54" Width="115"/>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="First name" VerticalAlignment="Top" Margin="134,99,0,0" Height="37" Width="115"/>
        <TextBlock HorizontalAlignment="Left" Margin="134,172,0,0" TextWrapping="Wrap" Text="Last name" VerticalAlignment="Top" Height="37" Width="115"/>
        <TextBlock HorizontalAlignment="Left" Margin="134,241,0,0" TextWrapping="Wrap" Text="Password" VerticalAlignment="Top" Height="39" Width="115"/>
        <TextBlock HorizontalAlignment="Left" Margin="134,311,0,0" TextWrapping="Wrap" Text="Confirm password" VerticalAlignment="Top" Height="29" Width="115"/>
        <TextBlock HorizontalAlignment="Left" Margin="134,376,0,0" TextWrapping="Wrap" Text="Date Of Birth" VerticalAlignment="Top" Height="44" Width="115"/>
        <TextBlock HorizontalAlignment="Left" Margin="134,446,0,0" TextWrapping="Wrap" Text="Gender" VerticalAlignment="Top" Height="29" Width="115"/>
        <TextBlock HorizontalAlignment="Left" Margin="134,511,0,0" TextWrapping="Wrap" Text="Receive notification through email" VerticalAlignment="Top" Height="38" Width="243"/>
        <TextBlock HorizontalAlignment="Left" Margin="134,576,0,0" TextWrapping="Wrap" Text="Accept terms and conditions" VerticalAlignment="Top" Height="33" Width="243"/>
        <TextBox HorizontalAlignment="Left" Margin="690,18,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="343" TextChanged="TextBox_TextChanged_1"/>
        <TextBox HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Margin="690,99,0,0" Width="343"/>
        <TextBox HorizontalAlignment="Left" Margin="690,172,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="343"/>
        <PasswordBox HorizontalAlignment="Left" Margin="690,241,0,0" VerticalAlignment="Top" Width="343"/>
        <PasswordBox HorizontalAlignment="Left" Margin="690,308,0,0" VerticalAlignment="Top" Width="343"/>
        <ComboBox HorizontalAlignment="Left" Margin="788,376,0,0" VerticalAlignment="Top" Width="126">
            <ComboBoxItem Content="January"/>
            <ComboBoxItem Content="February"/>
            <ComboBoxItem Content="March"/>
            <ComboBoxItem Content="April"/>
            <ComboBoxItem Content="May"/>
            <ComboBoxItem Content="June"/>
            <ComboBoxItem Content="July"/>
            <ComboBoxItem Content="August"/>
            <ComboBoxItem Content="Sepetember"/>
            <ComboBoxItem Content="October"/>
            <ComboBoxItem Content="November"/>
            <ComboBoxItem Content="December"/>

        </ComboBox>
        <ComboBox HorizontalAlignment="Left" Margin="936,376,0,0" VerticalAlignment="Top" Width="97">
            <ComboBoxItem Content="1990"/>
            <ComboBoxItem Content="1991"/>
            <ComboBoxItem Content="1992"/>
            <ComboBoxItem Content="1993"/>
            <ComboBoxItem Content="1994"/>
            <ComboBoxItem Content="1995"/>
            <ComboBoxItem Content="1996"/>
            <ComboBoxItem Content="1997"/>
            <ComboBoxItem Content="1998"/>
            <ComboBoxItem Content="1999"/>
            <ComboBoxItem Content="2000"/>
        </ComboBox>
        <ComboBox HorizontalAlignment="Left" Margin="690,376,0,0" VerticalAlignment="Top" Width="93">
            <ComboBoxItem Content="01"/>
            <ComboBoxItem Content="02"/>
            <ComboBoxItem Content="03"/>
            <ComboBoxItem Content="04"/>
            <ComboBoxItem Content="05"/>
            <ComboBoxItem Content="06"/>
            <ComboBoxItem Content="07"/>
            <ComboBoxItem Content="09"/>
            <ComboBoxItem Content="10"/>
            <ComboBoxItem Content="11"/>
            <ComboBoxItem Content="12"/>
            <ComboBoxItem Content="13"/>
            <ComboBoxItem Content="14"/>
            <ComboBoxItem Content="15"/>
            <ComboBoxItem Content="16"/>
            <ComboBoxItem Content="17"/>
            <ComboBoxItem Content="18"/>
            <ComboBoxItem Content="19"/>
            <ComboBoxItem Content="20"/>
            <ComboBoxItem Content="21"/>
            <ComboBoxItem Content="22"/>
            <ComboBoxItem Content="23"/>
            <ComboBoxItem Content="24"/>
            <ComboBoxItem Content="25"/>
            <ComboBoxItem Content="26"/>
            <ComboBoxItem Content="27"/>
            <ComboBoxItem Content="28"/>
            <ComboBoxItem Content="29"/>
            <ComboBoxItem Content="30"/>
            <ComboBoxItem Content="31"/>
           
        </ComboBox>
        <RadioButton Content="Male" HorizontalAlignment="Left" Margin="690,446,0,0" VerticalAlignment="Top"/>
        <RadioButton Content="Female" HorizontalAlignment="Left" Margin="865,446,0,0" VerticalAlignment="Top"/>
        <ToggleSwitch HorizontalAlignment="Left" Margin="690,493,0,0" VerticalAlignment="Top" Width="252" OffContent="no" OnContent="yes"/>
        <CheckBox HorizontalAlignment="Left" Margin="695,576,0,0" VerticalAlignment="Top" Width="101" Height="33" Checked="CheckBox_Checked_1"/>
        <Button Content="Register" FontWeight="Bold" HorizontalAlignment="Left" Margin="584,652,0,0" VerticalAlignment="Top" Width="168" Height="59" Click="Button_Click_1"/>


    </Grid>
</Page>


No comments:

Post a Comment