Created
January 9, 2016 19:01
-
-
Save wtuts/b278f6e4289ffd5ebe97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid> | |
<TextBlock Margin="20,10,0,0" | |
HorizontalAlignment="Left" | |
VerticalAlignment="Top" | |
FontSize="36" | |
Text="All Students" /> | |
<ListView x:Name="MylistView" | |
Margin="20,80,20,20" | |
HorizontalAlignment="Stretch" | |
VerticalAlignment="Stretch"> | |
<ListView.ItemContainerStyle> | |
<Style TargetType="ListViewItem"> | |
<Setter Property="HorizontalContentAlignment" Value="Stretch" /> | |
</Style> | |
</ListView.ItemContainerStyle> | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<Grid Height="75" | |
HorizontalAlignment="Stretch" | |
VerticalAlignment="Top"> | |
<StackPanel HorizontalAlignment="Left"> | |
<TextBlock HorizontalAlignment="Left" | |
VerticalAlignment="Top" | |
FontSize="30" | |
Text="{Binding Name}" | |
TextWrapping="Wrap" /> | |
<TextBlock HorizontalAlignment="Left" | |
VerticalAlignment="Top" | |
FontSize="20" | |
Text="{Binding Marks}" | |
TextWrapping="Wrap" /> | |
</StackPanel> | |
<Button HorizontalAlignment="Right" | |
VerticalAlignment="Top" | |
Click="Delete_Button_Click" | |
Content="Delete" | |
FontSize="22" /> | |
</Grid> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
</ListView> | |
</Grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment