Step 3 : The MainPage.xaml file is as in the following code:
Code :
<Page
x:Class="App1.MainPage"
IsTabStop="false"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="SkyBlue">
<Grid.ColumnDefinitions>
<ColumnDefinition Width=".133*"></ColumnDefinition>
<ColumnDefinition Width=".033*"></ColumnDefinition>
<ColumnDefinition Width=".333*"></ColumnDefinition>
<ColumnDefinition Width=".333*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height=".333*"></RowDefinition>
<RowDefinition Height=".063*"></RowDefinition>
<RowDefinition Height=".063*"></RowDefinition>
<RowDefinition Height=".063*"></RowDefinition>
<RowDefinition Height=".133*"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Grid.Column="2" Grid.Row="0" Text="Find the Name of Day of any Date" FontSize="30" Foreground="Blue" FontWeight="ExtraBlack" Margin="0,350,0,0" ></TextBlock>
<TextBlock Grid.Column="0" Grid.Row="1" Text="Select Date:" HorizontalAlignment="Right" FontSize="20" FontWeight="Bold" Foreground="Red"></TextBlock>
<ComboBox x:Name="dd" Grid.Column="2" Grid.Row="1" BorderThickness="5" BorderBrush="Black" FontWeight="Bold" Background="Yellow" Height="50" Width="300" HorizontalAlignment="Left" VerticalAlignment="Top">
<ComboBoxItem>1</ComboBoxItem>
<ComboBoxItem>2</ComboBoxItem>
<ComboBoxItem>3</ComboBoxItem>
<ComboBoxItem>4</ComboBoxItem>
<ComboBoxItem>5</ComboBoxItem>
<ComboBoxItem>6</ComboBoxItem>
<ComboBoxItem>7</ComboBoxItem>
<ComboBoxItem>8</ComboBoxItem>
<ComboBoxItem>9</ComboBoxItem>
<ComboBoxItem>10</ComboBoxItem>
<ComboBoxItem>11</ComboBoxItem>
<ComboBoxItem>12</ComboBoxItem>
<ComboBoxItem>13</ComboBoxItem>
<ComboBoxItem>14</ComboBoxItem>
<ComboBoxItem>15</ComboBoxItem>
<ComboBoxItem>16</ComboBoxItem>
<ComboBoxItem>17</ComboBoxItem>
<ComboBoxItem>18</ComboBoxItem>
<ComboBoxItem>19</ComboBoxItem>
<ComboBoxItem>20</ComboBoxItem>
<ComboBoxItem>21</ComboBoxItem>
<ComboBoxItem>22</ComboBoxItem>
<ComboBoxItem>23</ComboBoxItem>
<ComboBoxItem>24</ComboBoxItem>
<ComboBoxItem>25</ComboBoxItem>
<ComboBoxItem>26</ComboBoxItem>
<ComboBoxItem>27</ComboBoxItem>
<ComboBoxItem>28</ComboBoxItem>
<ComboBoxItem>29</ComboBoxItem>
<ComboBoxItem>30</ComboBoxItem>
<ComboBoxItem>31</ComboBoxItem>
</ComboBox>
<TextBlock Grid.Column="0" Grid.Row="2" Text="Select Month:" HorizontalAlignment="Right" FontSize="20" FontWeight="Bold" Foreground="Red"></TextBlock>
<ComboBox x:Name="mm" Grid.Column="2" Grid.Row="2" BorderThickness="5" BorderBrush="Black" FontWeight="Bold" Background="Yellow" Height="50" Width="300" HorizontalAlignment="Left" VerticalAlignment="Top">
<ComboBoxItem>Januvary</ComboBoxItem>
<ComboBoxItem>February</ComboBoxItem>
<ComboBoxItem>March</ComboBoxItem>
<ComboBoxItem>April</ComboBoxItem>
<ComboBoxItem>May</ComboBoxItem>
<ComboBoxItem>June</ComboBoxItem>
<ComboBoxItem>July</ComboBoxItem>
<ComboBoxItem>August</ComboBoxItem>
<ComboBoxItem>September</ComboBoxItem>
<ComboBoxItem>October</ComboBoxItem>
<ComboBoxItem>November</ComboBoxItem>
<ComboBoxItem>December</ComboBoxItem>
</ComboBox>
<TextBlock Grid.Column="0" Grid.Row="3" Text="Select Year:" HorizontalAlignment="Right" FontSize="20" FontWeight="Bold" Foreground="Red"></TextBlock>
<ComboBox x:Name="yy" Grid.Column="2" Grid.Row="3" BorderThickness="5" BorderBrush="Black" FontWeight="Bold" Background="Yellow" Height="50" Width="300" HorizontalAlignment="Left" VerticalAlignment="Top">
<ComboBoxItem>2000</ComboBoxItem>
<ComboBoxItem>2001</ComboBoxItem>
<ComboBoxItem>2002</ComboBoxItem>
<ComboBoxItem>2003</ComboBoxItem>
<ComboBoxItem>2004</ComboBoxItem>
<ComboBoxItem>2005</ComboBoxItem>
<ComboBoxItem>2006</ComboBoxItem>
<ComboBoxItem>2007</ComboBoxItem>
<ComboBoxItem>2008</ComboBoxItem>
<ComboBoxItem>2009</ComboBoxItem>
<ComboBoxItem>2010</ComboBoxItem>
<ComboBoxItem>2011</ComboBoxItem>
<ComboBoxItem>2012</ComboBoxItem>
</ComboBox>
<TextBlock x:Name="res" Grid.Column="2" Grid.Row="4" Text="Name of the Day" FontSize="30" Foreground="Red" FontWeight="ExtraBlack" VerticalAlignment="Top" Visibility="Collapsed"></TextBlock>
<Button Grid.Column="2" Grid.Row="4" VerticalAlignment="Center" Content="Get Day_Name" Background="Red" HorizontalAlignment="Center" Click="Button_Click_1"></Button>
</Grid>
</Page>