1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="500" Width="500" MinWidth="400" MinHeight="400">
<Grid Background="#FF0058A3" MinWidth="200" MinHeight="150">
<ListBox HorizontalAlignment="Stretch" Margin="12,34,12,0" Name="listBox1" VerticalAlignment="Top" Height="100" ItemsSource="{Binding}" SelectionChanged="listBox1_SelectionChanged">
<ListBox.ContextMenu>
<ContextMenu Name="GroupCM">
<MenuItem Name="GroupCMCopier" Header="Copier" Click="GroupCMCopier_Click" />
<MenuItem Name="GroupCMVoir" Header="Voir"/>
<MenuItem Name="GroupCMAjouter" Header="Ajouter une personne"/>
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
<ListBox HorizontalAlignment="Stretch" Margin="12,174,12,55" Name="listBox2" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" SelectionChanged="listBox2_SelectionChanged">
<ListBox.ContextMenu>
<ContextMenu Name="UserCM">
<MenuItem Name="UserCMCopier" Header="Copier" Click="UserCMCopier_Click" />
<MenuItem Name="UserCMRetirer" Header="Retirer" Click="UserCMRetirer_Click" />
<MenuItem Name="UserCMTransferer" Header="Transferer"/>
<MenuItem Name="UserCMVoir" Header="Voir"/>
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
<Label Content="label1" Height="28" HorizontalAlignment="Center" Margin="0" Name="label1" VerticalAlignment="Top" Foreground="White" Padding="5" />
<Label Content="Les utilisateurs du groupe sélectionné" Height="28" HorizontalAlignment="Center" Margin="0,140,0,0" Name="label2" VerticalAlignment="Top" Foreground="White" />
<TextBox Height="23" HorizontalAlignment="Stretch" Margin="12,0,93,12" Name="textBox1" VerticalAlignment="Bottom" IsEnabled="True" />
<Button Content="Valider" Height="23" HorizontalAlignment="Right" Margin="0,0,12,12" Name="bValider" VerticalAlignment="Bottom" Width="75" />
</Grid>
</Window> |
Partager