Mitarbeit bewerten begonnen, Schülerdaten, Gruppen
This commit is contained in:
@@ -60,6 +60,74 @@
|
||||
</ScrollViewer>
|
||||
</ContentPage>
|
||||
|
||||
<ContentPage Header="Kontakte">
|
||||
<Grid RowDefinitions="Auto,*" Margin="20">
|
||||
<Grid Grid.Row="0" ColumnDefinitions="*,Auto,Auto,Auto" Margin="0,0,0,10">
|
||||
<TextBlock Grid.Column="0" Text="Kontaktdaten" FontSize="15"
|
||||
FontWeight="SemiBold" VerticalAlignment="Center"/>
|
||||
<Button Grid.Column="1" Content="+ Neu" Command="{Binding AddContactCommand}"
|
||||
Margin="0,0,8,0"/>
|
||||
<Button Grid.Column="2" Content="Bearbeiten" Command="{Binding EditContactCommand}"
|
||||
Margin="0,0,8,0"/>
|
||||
<Button Grid.Column="3" Content="Adresse anzeigen"
|
||||
Command="{Binding ViewSelectedAddressCommand}"/>
|
||||
</Grid>
|
||||
|
||||
<ListBox Grid.Row="1" x:Name="ContactList"
|
||||
ItemsSource="{Binding Contacts}"
|
||||
SelectedItem="{Binding SelectedContact}"
|
||||
DoubleTapped="OnContactDoubleTapped">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:ContactItem">
|
||||
<Border Background="{DynamicResource SystemControlBackgroundAltHighBrush}"
|
||||
CornerRadius="8" Padding="14,10" Margin="2,3">
|
||||
<Grid ColumnDefinitions="220,*,Auto" RowDefinitions="Auto,Auto">
|
||||
<StackPanel Grid.Column="0" Grid.RowSpan="2" Spacing="4">
|
||||
<TextBlock Text="{Binding Name}" FontWeight="SemiBold" FontSize="14"
|
||||
TextWrapping="Wrap"/>
|
||||
<Border Background="{DynamicResource SystemControlForegroundBaseLowBrush}"
|
||||
CornerRadius="4" Padding="6,2" HorizontalAlignment="Left">
|
||||
<TextBlock Text="{Binding Relation}" FontSize="11" Opacity="0.7"/>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" Spacing="8">
|
||||
<Button Content="{Binding PhoneDisplay}"
|
||||
Command="{Binding CallCommand}"
|
||||
IsVisible="{Binding HasPhone}"
|
||||
FontSize="12" Padding="8,4"/>
|
||||
<Button Content="{Binding EmailDisplay}"
|
||||
Command="{Binding MailCommand}"
|
||||
IsVisible="{Binding HasEmail}"
|
||||
FontSize="12" Padding="8,4"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Address}"
|
||||
IsVisible="{Binding HasAddress}" FontSize="12" Opacity="0.65"
|
||||
TextWrapping="Wrap" Margin="4,4,12,0"/>
|
||||
|
||||
<Border Grid.Column="2" Grid.RowSpan="2" CornerRadius="4" Padding="7,3"
|
||||
VerticalAlignment="Top"
|
||||
Background="{DynamicResource SystemControlBackgroundAltHighBrush}">
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding StatusText}" FontSize="11"
|
||||
IsVisible="{Binding IsInvalid}" Foreground="IndianRed"/>
|
||||
<TextBlock Text="Aktuell" FontSize="11" Opacity="0.5"
|
||||
IsVisible="{Binding IsValid}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
|
||||
<TextBlock Text="Keine Kontakte erfasst." Opacity="0.4"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
IsVisible="{Binding HasNoContacts}"/>
|
||||
</Grid>
|
||||
</ContentPage>
|
||||
|
||||
<ContentPage Header="Noten">
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<TextBlock Text="Notenübersicht" FontSize="16" Opacity="0.4" HorizontalAlignment="Center"/>
|
||||
|
||||
Reference in New Issue
Block a user