Modal Prototyp
This commit is contained in:
55
Apollon.WPF/Views/Components/OverViewListing.xaml
Normal file
55
Apollon.WPF/Views/Components/OverViewListing.xaml
Normal file
@@ -0,0 +1,55 @@
|
||||
<UserControl x:Class="Apollon.WPF.Views.Components.OverViewListing"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||||
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<Border BorderBrush="#0000a0"
|
||||
BorderThickness="1"
|
||||
CornerRadius="10"
|
||||
>
|
||||
<ListView FontSize="16"
|
||||
Foreground="#0000a0"
|
||||
FontWeight="Bold"
|
||||
Background="Transparent"
|
||||
BorderBrush="Transparent"
|
||||
Padding="20"
|
||||
ItemsSource="{Binding ApollonOverviewListingItemViewModels}"
|
||||
SelectedItem="{Binding SelectedOverviewListingItemViewModel}">
|
||||
<ListView.ItemContainerStyle>
|
||||
<Style TargetType="ListViewItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
</Style>
|
||||
</ListView.ItemContainerStyle>
|
||||
<ListView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="auto"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" Text="{Binding Tournamentname}"/>
|
||||
<Button Grid.Column="1"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Cursor="Hand"
|
||||
Command="{Binding DeleteCommand}">
|
||||
<iconPacks:PackIconMaterial Kind="TrashCan"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Grid.Column="1"
|
||||
Foreground="Red"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
</ListView>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user