diff --git a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml index 9e9c62b3..4a9f08d0 100644 --- a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml +++ b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml @@ -42,43 +42,65 @@ - - - - - - - - - - - - + + + + + - - - - - - - - - - - - + + + + + - - - - - - - - - + + + + - - - - - - - - - - - - + + + + + diff --git a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs index e18bb3ab..5dcb70ba 100644 --- a/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/pages/StartPage.xaml.cs @@ -23,39 +23,31 @@ namespace CampusAppWP8.pages // Switch the placement of the buttons based on an orientation change. if (this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight) { - OpenHoursAppPanel.SetValue(Grid.RowProperty, 0); - OpenHoursAppPanel.SetValue(Grid.ColumnProperty, 3); + OpenHoursAppButton.SetValue(Grid.RowProperty, 0); + OpenHoursAppButton.SetValue(Grid.ColumnProperty, 3); - OSAAppPanel.SetValue(Grid.RowProperty, 1); - OSAAppPanel.SetValue(Grid.ColumnProperty, 3); + OSAAppButton.SetValue(Grid.RowProperty, 1); + OSAAppButton.SetValue(Grid.ColumnProperty, 3); - LinkAppPanel.SetValue(Grid.RowProperty, 2); - LinkAppPanel.SetValue(Grid.ColumnProperty, 3); + LinkAppButton.SetValue(Grid.RowProperty, 2); + LinkAppButton.SetValue(Grid.ColumnProperty, 3); ContentPanel.Margin = new Thickness(12, -24, 0, 0); } // If not in portrait, move buttonList content to visible row and column. else { - OpenHoursAppPanel.SetValue(Grid.RowProperty, 3); - OpenHoursAppPanel.SetValue(Grid.ColumnProperty, 0); + OpenHoursAppButton.SetValue(Grid.RowProperty, 3); + OpenHoursAppButton.SetValue(Grid.ColumnProperty, 0); - OSAAppPanel.SetValue(Grid.RowProperty, 3); - OSAAppPanel.SetValue(Grid.ColumnProperty, 1); + OSAAppButton.SetValue(Grid.RowProperty, 3); + OSAAppButton.SetValue(Grid.ColumnProperty, 1); - LinkAppPanel.SetValue(Grid.RowProperty, 3); - LinkAppPanel.SetValue(Grid.ColumnProperty, 2); + LinkAppButton.SetValue(Grid.RowProperty, 3); + LinkAppButton.SetValue(Grid.ColumnProperty, 2); ContentPanel.Margin = new Thickness(12, 0, 0, 0); } } - - private void Button_Click(object sender, RoutedEventArgs e) - { - Microsoft.Phone.Tasks.WebBrowserTask wbt = new Microsoft.Phone.Tasks.WebBrowserTask(); - wbt.Uri = new Uri("https://webmail.tu-cottbus.de"); - wbt.Show(); - } - } } \ No newline at end of file