temp
This commit is contained in:
@@ -17,6 +17,62 @@
|
||||
<!--LayoutRoot ist das Stammraster, in dem alle anderen Seiteninhalte platziert werden-->
|
||||
<Grid x:Name="LayoutRoot" Background="Transparent">
|
||||
<phone:Pivot x:Name="ThePivot" SelectionChanged="OnPivotSelectionChanged">
|
||||
<phone:Pivot.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Background="DarkBlue" Width="700">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!--row_0-->
|
||||
<Grid Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Grid.Column="0" Text="{Binding DateFrom, Mode=OneWay, StringFormat='dd.MM.yyyy'}" HorizontalAlignment="Right" FontSize="24"/>
|
||||
<TextBlock Grid.Column="1" Text="{Binding WeekChar, Mode=OneWay}" HorizontalAlignment="Center" FontSize="24"/>
|
||||
<TextBlock Grid.Column="2" Text="{Binding DateTo, Mode=OneWay, StringFormat='dd.MM.yyyy'}" HorizontalAlignment="Left" FontSize="24"/>
|
||||
</Grid>
|
||||
<!--row_1-->
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="40"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!--col_0 stay empty-->
|
||||
<!--col_1_monday-->
|
||||
<Border Grid.Column="1" BorderThickness="1">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.Time_Day_Monday_Short, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Center" FontSize="16"/>
|
||||
</Border>
|
||||
<!--col_2_tuesday-->
|
||||
<Border Grid.Column="2" BorderThickness="1">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.Time_Day_Tuesday_Short, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Center" FontSize="16"/>
|
||||
</Border>
|
||||
<!--col_3_wednesday-->
|
||||
<Border Grid.Column="3" BorderThickness="1">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.Time_Day_Wednesday_Short, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Center" FontSize="16"/>
|
||||
</Border>
|
||||
<!--col_4_thursday-->
|
||||
<Border Grid.Column="4" BorderThickness="1">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.Time_Day_Thursday_Short, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Center" FontSize="16"/>
|
||||
</Border>
|
||||
<!--col_5_friday-->
|
||||
<Border Grid.Column="5" BorderThickness="1">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.Time_Day_Friday_Short, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Center" FontSize="16"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</phone:Pivot.HeaderTemplate>
|
||||
<phone:Pivot.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" Loaded="ScrollViewer_Loaded">
|
||||
|
||||
@@ -50,16 +50,21 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
private PageItem[] itemPages = new PageItem[PIVOT_PAGES];
|
||||
private int lastSelectedIndex = 0;
|
||||
private int loadedWeekView = 0;
|
||||
private string[] testPiIt = new string[3] { "bla_1", "bla_2", "bla_3" };
|
||||
|
||||
|
||||
|
||||
public TimeTableWeek()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
DateTime firstDay = this.GetFirstDayOfWeek(DateTime.Now).AddDays(-7 * PIVOT_PAGES_HALF_DOWN);
|
||||
|
||||
this.ThePivot.ItemsSource = this.testPiIt;
|
||||
for (int i = 0; i < PIVOT_PAGES; i++)
|
||||
{
|
||||
this.itemPages[i].DateFrom = firstDay;
|
||||
this.itemPages[i].DateTo = firstDay.AddDays(6);
|
||||
firstDay = firstDay.AddDays(7);
|
||||
}
|
||||
|
||||
this.ThePivot.ItemsSource = this.itemPages;
|
||||
|
||||
ApplicationBarIconButton dayViewBtn = new ApplicationBarIconButton();
|
||||
dayViewBtn.Text = AppResources.DayView;
|
||||
|
||||
@@ -1284,6 +1284,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fr ähnelt.
|
||||
/// </summary>
|
||||
public static string Time_Day_Friday_Short {
|
||||
get {
|
||||
return ResourceManager.GetString("Time_Day_Friday_Short", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Montag ähnelt.
|
||||
/// </summary>
|
||||
@@ -1293,6 +1302,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Mo ähnelt.
|
||||
/// </summary>
|
||||
public static string Time_Day_Monday_Short {
|
||||
get {
|
||||
return ResourceManager.GetString("Time_Day_Monday_Short", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Samstag ähnelt.
|
||||
/// </summary>
|
||||
@@ -1302,6 +1320,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Sa ähnelt.
|
||||
/// </summary>
|
||||
public static string Time_Day_Saturday_Short {
|
||||
get {
|
||||
return ResourceManager.GetString("Time_Day_Saturday_Short", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Sonntag ähnelt.
|
||||
/// </summary>
|
||||
@@ -1311,6 +1338,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die So ähnelt.
|
||||
/// </summary>
|
||||
public static string Time_Day_Sunday_Short {
|
||||
get {
|
||||
return ResourceManager.GetString("Time_Day_Sunday_Short", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Donnerstag ähnelt.
|
||||
/// </summary>
|
||||
@@ -1320,6 +1356,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Do ähnelt.
|
||||
/// </summary>
|
||||
public static string Time_Day_Thursday_Short {
|
||||
get {
|
||||
return ResourceManager.GetString("Time_Day_Thursday_Short", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Dienstag ähnelt.
|
||||
/// </summary>
|
||||
@@ -1329,6 +1374,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Di ähnelt.
|
||||
/// </summary>
|
||||
public static string Time_Day_Tuesday_Short {
|
||||
get {
|
||||
return ResourceManager.GetString("Time_Day_Tuesday_Short", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Mittwoch ähnelt.
|
||||
/// </summary>
|
||||
@@ -1338,6 +1392,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Mi ähnelt.
|
||||
/// </summary>
|
||||
public static string Time_Day_Wednesday_Short {
|
||||
get {
|
||||
return ResourceManager.GetString("Time_Day_Wednesday_Short", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Stundenplan ähnelt.
|
||||
/// </summary>
|
||||
|
||||
@@ -575,4 +575,25 @@
|
||||
<data name="BTUTag_WrongTag" xml:space="preserve">
|
||||
<value>Der eingescannte Tag ist kein BTU-Tag</value>
|
||||
</data>
|
||||
<data name="Time_Day_Friday_Short" xml:space="preserve">
|
||||
<value>Fr</value>
|
||||
</data>
|
||||
<data name="Time_Day_Monday_Short" xml:space="preserve">
|
||||
<value>Mo</value>
|
||||
</data>
|
||||
<data name="Time_Day_Saturday_Short" xml:space="preserve">
|
||||
<value>Sa</value>
|
||||
</data>
|
||||
<data name="Time_Day_Sunday_Short" xml:space="preserve">
|
||||
<value>So</value>
|
||||
</data>
|
||||
<data name="Time_Day_Thursday_Short" xml:space="preserve">
|
||||
<value>Do</value>
|
||||
</data>
|
||||
<data name="Time_Day_Tuesday_Short" xml:space="preserve">
|
||||
<value>Di</value>
|
||||
</data>
|
||||
<data name="Time_Day_Wednesday_Short" xml:space="preserve">
|
||||
<value>Mi</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user