ProjetThe/ProjetTheAlone/View/FicGestionAlert.xaml

38 lines
2.0 KiB
XML

<Window x:Class="ProjetTheAlone.View.FicGestionAlert"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ProjetTheAlone.View"
mc:Ignorable="d"
Title="FicGestionAlert" Height="450" Width="400">
<Grid>
<Grid.RowDefinitions >
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<DockPanel>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" FontFamily="Rockwell">Liste Alrte</TextBlock>
<DockPanel HorizontalAlignment="Right">
<Button Width="auto" Content="Edit" Command="{Binding cEditer}"/>
<Button Width="auto" Content="Del" Command="{Binding cDel}"/>
</DockPanel>
</DockPanel>
<DataGrid SelectionMode="Single" x:Name="dgListeAlert" ItemsSource="{Binding AlerteList, Mode=TwoWay}" SelectedItem="{Binding AlertSelect}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" VerticalAlignment="Stretch" ColumnWidth="*" Grid.Row="1" HeadersVisibility="None">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding}" />
</DataGrid.Columns>
</DataGrid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<TextBox HorizontalAlignment="Stretch" Text="{Binding NouvelleAlert, Mode=TwoWay}" />
<Button HorizontalAlignment="Right" Command="{Binding cAjouter}" Content="{Binding btnConfirmtxt}"></Button>
</Grid>
</Grid>
</Window>