Ex 3) Ryan, a windows store app developer,is designing a recipe app.The following figure shows the expected interface of one of the pages within the app.However while developing the app,Ryan was not able to successfully create the interface.He found the text overlapping on the app's interface.The following figure shows the actual interface of the app.
Ryan used following xaml code .................Codes........................
Help ryan improve the code to enable him obtain the desired interface for the app.
Prerequisite:To perform this exercise,You need an input file,Recipe.zip.Ask your faculty to provide the same.
Ryan used following xaml code .................Codes........................
Help ryan improve the code to enable him obtain the desired interface for the app.
Prerequisite:To perform this exercise,You need an input file,Recipe.zip.Ask your faculty to provide the same.
Ans 3) Paste in Mainpage.xaml
<Page
x:Class="Interface1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Interface1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Viewbox>
<Grid Background="#FF96D823" VerticalAlignment="Center" HorizontalAlignment="Center"
Height="671" Margin="50,44,62,53" Width="1254">
<Image Source="Assets/1.jpg"
Margin="36,134,615,272"/>
<TextBlock HorizontalAlignment="Left" Margin="728,69,0,0" TextWrapping="Wrap" Text="Cookies Sundae Cake" VerticalAlignment="Top" Height="53" Width="311" FontSize="32" FontStyle="Normal"/>
<TextBlock HorizontalAlignment="Left" Margin="698,134,0,0" TextWrapping="Wrap" Text="Ingredients" VerticalAlignment="Top" Height="45" Width="151" FontSize="30" FontStyle="Normal"/>
<TextBlock HorizontalAlignment="Left" Margin="698,227,0,0" TextWrapping="Wrap" Text="Directions" VerticalAlignment="Top" Height="40" Width="151" FontSize="30" FontStyle="Normal"/>
<TextBlock HorizontalAlignment="Left" Margin="698,323,0,0" TextWrapping="Wrap" Text="Nutritional Values" VerticalAlignment="Top" Height="34" Width="247" FontSize="30" FontStyle="Normal"/>
</Grid>
</Viewbox>
</Page>
No comments:
Post a Comment