first draft

This commit is contained in:
stubbfel
2013-05-27 13:06:03 +02:00
parent 6b7af1058b
commit 81cb710309
6 changed files with 337 additions and 1 deletions

View File

@@ -97,6 +97,7 @@
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="pages\mensa\MensaPage.xaml.cs" />
<Compile Include="pages\StartPage.xaml.cs">
<DependentUpon>StartPage.xaml</DependentUpon>
</Compile>
@@ -122,6 +123,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</DesignData>
<Page Include="pages\mensa\MensaPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="pages\StartPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>

View File

@@ -13,7 +13,7 @@
<Capability Name="ID_CAP_ISV_CAMERA" />
</Capabilities>
<Tasks>
<DefaultTask Name="_default" NavigationPage="pages/StartPage.xaml" />
<DefaultTask Name="_default" NavigationPage="pages/mensa/MensaPage.xaml" />
</Tasks>
<Tokens>
<PrimaryToken TokenID="CampusAppWP8Token" TaskName="_default">

View File

@@ -213,6 +213,51 @@ namespace CampusAppWP8.Resources {
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Freitag ähnelt.
/// </summary>
public static string Time_Day_Friday {
get {
return ResourceManager.GetString("Time_Day_Friday", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Montag ähnelt.
/// </summary>
public static string Time_Day_Monday {
get {
return ResourceManager.GetString("Time_Day_Monday", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Donnerstag ähnelt.
/// </summary>
public static string Time_Day_Thursday {
get {
return ResourceManager.GetString("Time_Day_Thursday", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Dienstag ähnelt.
/// </summary>
public static string Time_Day_Tuesday {
get {
return ResourceManager.GetString("Time_Day_Tuesday", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Mittwoch ähnelt.
/// </summary>
public static string Time_Day_Wednesday {
get {
return ResourceManager.GetString("Time_Day_Wednesday", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Stundenplan ähnelt.
/// </summary>

View File

@@ -176,4 +176,19 @@
<data name="TimeTableApp_Title" xml:space="preserve">
<value>Stundenplan</value>
</data>
<data name="Time_Day_Friday" xml:space="preserve">
<value>Freitag</value>
</data>
<data name="Time_Day_Monday" xml:space="preserve">
<value>Montag</value>
</data>
<data name="Time_Day_Thursday" xml:space="preserve">
<value>Donnerstag</value>
</data>
<data name="Time_Day_Tuesday" xml:space="preserve">
<value>Dienstag</value>
</data>
<data name="Time_Day_Wednesday" xml:space="preserve">
<value>Mittwoch</value>
</data>
</root>

View File

@@ -0,0 +1,246 @@
<phone:PhoneApplicationPage
x:Class="CampusAppWP8.pages.mensa.MensaPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:views="CampusAppWP8.model.mensa"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
OrientationChanged="PhoneApplicationPage_OrientationChanged"
shell:SystemTray.IsVisible="True">
<!--LayoutRoot ist das Stammraster, in dem alle anderen Seiteninhalte platziert werden-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<!--Pivotsteuerelement-->
<phone:Pivot Title="{Binding Path=LocalizedResources.MensaApp_Title, Source={StaticResource LocalizedStrings}}">
<!--Pivotelement 1-->
<phone:PivotItem Header="{Binding Path=LocalizedResources.Time_Day_Monday, Source={StaticResource LocalizedStrings}}">
<ScrollViewer>
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="2">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="3">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="4">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="5">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
</Grid>
</ScrollViewer>
</phone:PivotItem>
<!--Pivotelement 2-->
<phone:PivotItem Header="{Binding Path=LocalizedResources.Time_Day_Tuesday, Source={StaticResource LocalizedStrings}}">
<ScrollViewer>
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="2">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="3">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="4">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="5">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
</Grid>
</ScrollViewer>
</phone:PivotItem>
<!--Pivotelement 3-->
<phone:PivotItem Header="{Binding Path=LocalizedResources.Time_Day_Wednesday, Source={StaticResource LocalizedStrings}}">
<ScrollViewer>
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="2">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="3">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="4">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="5">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
</Grid>
</ScrollViewer>
</phone:PivotItem>
<!--Pivotelement 4-->
<phone:PivotItem Name="Thursday" Header="{Binding Path=LocalizedResources.Time_Day_Thursday, Source={StaticResource LocalizedStrings}}">
<ScrollViewer>
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="2">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="3">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="4">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="5">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
</Grid>
</ScrollViewer>
</phone:PivotItem>
<!--Pivotelement 5-->
<phone:PivotItem Header="{Binding Path=LocalizedResources.Time_Day_Friday, Source={StaticResource LocalizedStrings}}">
<ScrollViewer>
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="2">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="3">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="4">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="5">
<TextBlock Height="auto" Text="Essen:" Style="{StaticResource PhoneTextGroupHeaderStyle}"/>
<TextBlock Height="auto" Text="Essenbeschreibung" Style="{StaticResource PhoneTextNormalStyle}"/>
</StackPanel>
</Grid>
</ScrollViewer>
</phone:PivotItem>
</phone:Pivot>
</Grid>
</phone:PhoneApplicationPage>

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
namespace CampusAppWP8.pages.mensa
{
public partial class MensaPage : PhoneApplicationPage
{
public MensaPage()
{
InitializeComponent();
}
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e)
{
}
}
}