Ex 8) Philip has been assigned the task to develop a gaming app that asks random uestions to the user.In addition,the app displays a grid containing letters,as shown in the following figure.
To mark an answer,the user needs to click the alphabets that form the answer,and then click the SUBMIT button.
Before proceeding with the development of the fully functional app,Philip wants to get an approval for the ui of the app.Therefore,he plans to create the UI of the app.
Ans 8) paste in mainpage.xaml
<Page
x:Class="GamingApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:GamingApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="Black">
<TextBox BorderThickness="0" HorizontalAlignment="Left" Margin="126,73,0,0" FontSize="22" FontWeight="Bold" TextWrapping="Wrap" Text="Entomology is the science that studies" VerticalAlignment="Top" Width="577" TextChanged="TextBox_TextChanged_1" Height="51" Background="Black" Foreground="White"/>
<Button Content="K" Background="Blue" HorizontalAlignment="Left" Margin="524,166,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="I" Background="Blue" HorizontalAlignment="Left" Margin="609,166,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="80"/>
<Button Content="T" Background="Blue" HorizontalAlignment="Left" Margin="694,166,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="75"/>
<Button Content="E" Background="Blue" HorizontalAlignment="Left" Margin="774,166,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.474,0.463" Height="59" Width="80"/>
<Button Content="G" Background="Blue" HorizontalAlignment="Left" Margin="859,166,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="A" Background="Blue" HorizontalAlignment="Left" Margin="524,230,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="N" Background="Blue" HorizontalAlignment="Left" Margin="609,230,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="80"/>
<Button Content="L" Background="Blue" HorizontalAlignment="Left" Margin="694,230,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="75"/>
<Button Content="S" Background="Blue" HorizontalAlignment="Left" Margin="774,230,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.474,0.463" Height="59" Width="80"/>
<Button Content="M" Background="Blue" HorizontalAlignment="Left" Margin="859,230,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="B" Background="Blue" HorizontalAlignment="Left" Margin="524,294,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="S" Background="Blue" HorizontalAlignment="Left" Margin="609,294,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="80"/>
<Button Content="S" Background="Blue" HorizontalAlignment="Left" Margin="694,294,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="75"/>
<Button Content="C" Background="Blue" HorizontalAlignment="Left" Margin="774,294,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.474,0.463" Height="59" Width="80"/>
<Button Content="Y" Background="Blue" HorizontalAlignment="Left" Margin="859,294,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="SUBMIT" FontSize="25" FontWeight="Bold" Background="#FF8F24CD" HorizontalAlignment="Left" Margin="609,379,0,0" VerticalAlignment="Top" Width="245" Height="57"/>
</Grid>
</Page>
To mark an answer,the user needs to click the alphabets that form the answer,and then click the SUBMIT button.
Before proceeding with the development of the fully functional app,Philip wants to get an approval for the ui of the app.Therefore,he plans to create the UI of the app.
Ans 8) paste in mainpage.xaml
<Page
x:Class="GamingApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:GamingApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="Black">
<TextBox BorderThickness="0" HorizontalAlignment="Left" Margin="126,73,0,0" FontSize="22" FontWeight="Bold" TextWrapping="Wrap" Text="Entomology is the science that studies" VerticalAlignment="Top" Width="577" TextChanged="TextBox_TextChanged_1" Height="51" Background="Black" Foreground="White"/>
<Button Content="K" Background="Blue" HorizontalAlignment="Left" Margin="524,166,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="I" Background="Blue" HorizontalAlignment="Left" Margin="609,166,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="80"/>
<Button Content="T" Background="Blue" HorizontalAlignment="Left" Margin="694,166,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="75"/>
<Button Content="E" Background="Blue" HorizontalAlignment="Left" Margin="774,166,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.474,0.463" Height="59" Width="80"/>
<Button Content="G" Background="Blue" HorizontalAlignment="Left" Margin="859,166,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="A" Background="Blue" HorizontalAlignment="Left" Margin="524,230,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="N" Background="Blue" HorizontalAlignment="Left" Margin="609,230,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="80"/>
<Button Content="L" Background="Blue" HorizontalAlignment="Left" Margin="694,230,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="75"/>
<Button Content="S" Background="Blue" HorizontalAlignment="Left" Margin="774,230,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.474,0.463" Height="59" Width="80"/>
<Button Content="M" Background="Blue" HorizontalAlignment="Left" Margin="859,230,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="B" Background="Blue" HorizontalAlignment="Left" Margin="524,294,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="S" Background="Blue" HorizontalAlignment="Left" Margin="609,294,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="80"/>
<Button Content="S" Background="Blue" HorizontalAlignment="Left" Margin="694,294,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.846,0.423" Height="59" Width="75"/>
<Button Content="C" Background="Blue" HorizontalAlignment="Left" Margin="774,294,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.474,0.463" Height="59" Width="80"/>
<Button Content="Y" Background="Blue" HorizontalAlignment="Left" Margin="859,294,0,0" VerticalAlignment="Top" Height="59" Width="80"/>
<Button Content="SUBMIT" FontSize="25" FontWeight="Bold" Background="#FF8F24CD" HorizontalAlignment="Left" Margin="609,379,0,0" VerticalAlignment="Top" Width="245" Height="57"/>
</Grid>
</Page>
No comments:
Post a Comment