Untitled

 avatar
unknown
plain_text
2 years ago
5.5 kB
3
Indexable
<ListBox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="4" x:Name="ListStudentsNotAttending" ItemsSource="{Binding Students}" Margin="10"
                              ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionMode="Single" Grid.RowSpan="2">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <materialDesign:Card x:Name="studcard" Margin="0" Width="300" Height="130" UniformCornerRadius="10"
                                                             Background="{x:Null}" BorderBrush="{x:Null}" Padding="0">
                                <Grid Margin="5">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="110"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Border Grid.Row="0" Grid.RowSpan="2"
                                                Grid.Column="0" Background="{StaticResource Highlighter}" VerticalAlignment="Top"
                                                Width="110" Height="110" HorizontalAlignment="Left"
                                                CornerRadius="55">
                                        <Border Width="105" Height="105" CornerRadius="55">
                                            <Border.Background>
                                                <ImageBrush x:Name="studimage" ImageSource="{Binding img}"  Stretch="UniformToFill" />
                                            </Border.Background>
                                        </Border>
                                    </Border>
                                    <Grid Grid.Row="0" Grid.Column="1" Margin="5" VerticalAlignment="Center">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>
                                        <TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding LRN}" FontSize="12"
                                                        Height="20" FontFamily="Tahoma" FontWeight="Bold"
                                                        Foreground="{StaticResource Highlighter}" />
                                        <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding fullname}"
                                                       FontSize="12"
                                                       Height="20" FontFamily="Tahoma" FontWeight="Bold"
                                                       Foreground="{StaticResource TextColor}" />
                                        <TextBlock Grid.Row="2" Grid.Column="0" Text="{Binding last_date_attended}"
                                                       FontSize="12"
                                                       Height="20" FontFamily="Tahoma" FontWeight="Light"
                                                       Foreground="Red" />
                                        <Separator Grid.Row="3" Grid.Column="0" Margin="0,5" Opacity="0.4" />
                                        <TextBlock Grid.Row="4" Grid.Column="0" Text="{Binding guardian_name}"
                                                       FontSize="12"
                                                       Height="20" FontFamily="Tahoma" FontWeight="Light"
                                                       Foreground="{StaticResource TextColor}" />
                                        <TextBlock Grid.Row="5" Grid.Column="0" Text="{Binding guardian_mobile}"
                                                       FontSize="12"
                                                       Height="20" FontFamily="Tahoma" FontWeight="Light"
                                                       Foreground="{StaticResource TextColor}" />
                                    </Grid>
                                </Grid>
                            </materialDesign:Card>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <WrapPanel />
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                </ListBox>
Editor is loading...