Skip to content

Commit

Permalink
module 03 - homework
Browse files Browse the repository at this point in the history
replacing textblocks for button, include list views in each page,
implement appbar with button to call main screen in each page
  • Loading branch information
arcanosam committed Nov 15, 2015
1 parent d6b39be commit 6be73ce
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>

<TextBlock
<GridView Grid.Row="0" Grid.Column="0" />

<AppBar>
<AppBarButton Icon="Home" Label="Home" Click="AppBarButton_Click" />
</AppBar>

<Button
Grid.Row="1"
Grid.Column="0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="**Clear All Orders**"/>
Content="Clear All Orders"/>
</Grid>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,11 @@ public ExpeditePage()
{
this.InitializeComponent();
}

private void AppBarButton_Click(object sender, RoutedEventArgs e)
{
this.Frame.GoBack();
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@
FontSize="20"
Text="Internal Test Version"/>

<TextBlock
<Button
Grid.Row="2"
Grid.Column="0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="**Go to Orders View**"/>
Content="Go to Orders View" Click="Button_Click"/>

<TextBlock
<Button
Grid.Row="2"
Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="**Submit Order**"/>
Content="Submit Order" Click="Button_Click_1"/>
</Grid>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,16 @@ public MainPage()
{
this.InitializeComponent();
}

private void Button_Click(object sender, RoutedEventArgs e)
{
this.Frame.Navigate(typeof(ExpeditePage));
}

private void Button_Click_1(object sender, RoutedEventArgs e)
{
this.Frame.Navigate(typeof(OrderPage));
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<ColumnDefinition Width="0.25*"/>
<ColumnDefinition Width="0.25*"/>
</Grid.ColumnDefinitions>

<AppBar Grid.ColumnSpan="3">
<AppBarButton Icon="Home" Label="Home" Click="AppBarButton_Click" />
</AppBar>

<TextBlock
Grid.Row="1"
Expand All @@ -33,19 +37,22 @@
Grid.Column="2"
Text="Order Items:"/>

<TextBlock
<ListView Grid.Row="2" Grid.Column="0" />
<ListView Grid.Row="2" Grid.Column="3" />

<Button
Grid.Row="4"
Grid.Column="0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="**Add to Order**"/>
Content="Add to Order"/>

<TextBlock
<Button
Grid.Row="4"
Grid.Column="1"
Grid.ColumnSpan="2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="**Submit Order**"/>
Content="Submit Order"/>
</Grid>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ public OrderPage()
{
this.InitializeComponent();
}

private void AppBarButton_Click(object sender, RoutedEventArgs e)
{
this.Frame.GoBack();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
</uap:ShowNameOnTiles>
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="#000000" />
<uap:InitialRotationPreference>
<uap:Rotation Preference="landscape" />
</uap:InitialRotationPreference>
</uap:VisualElements>
</Application>
</Applications>
Expand Down

0 comments on commit 6be73ce

Please sign in to comment.