ProjetThe/ProjetTheAlone/UserControlDIY/EventPasse.xaml

39 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-01-18 13:08:55 +01:00
<UserControl x:Class="ProjetTheAlone.UserControlDIY.EventPasse"
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:local="clr-namespace:ProjetTheAlone.UserControlDIY"
xmlns:models="clr-namespace:ProjetTheAlone.Model"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="450"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
Name="wnd2">
<UserControl.Resources>
<DataTemplate DataType="x:Type models:EventPasseModel">
<DockPanel Background="Yellow" />
</DataTemplate>
<local:DebugDummyConverter x:Key="DebugDummyConverter" />
</UserControl.Resources>
<Grid x:Name="GridPrinc">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Style="{StaticResource MaterialDesignTitleTextBlock}" HorizontalAlignment="Center" Height="Auto" Text="Evenement Passe" />
<ListBox x:Name="MyListBox" ItemsSource="{Binding Classement}" Grid.Row="1">
<ListBox.ItemTemplate>
<DataTemplate>
<Label Content="{Binding Path=.}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</UserControl>