Récupérer une valeur dans une ComboBox WFP
Bonjour à tous,
Je me permets de demander un peu d'aide :) car je n'arrive pas à récupérer ou afficher des valeurs dans une comboBox WFP.
Voici le code de l'interface graphique :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <Window
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"
Title="Profil utilisateur :" Height="424" Width="500">
<Grid HorizontalAlignment="Left" Width="922">
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="0"/>
<GradientStop Color="#FF0EBCF0" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<Button x:Name="Sauvegarder" Content="Sauvegarder" HorizontalAlignment="Left" Margin="117,267,0,0" VerticalAlignment="Top" Width="108" Height="32"/>
<TextBlock HorizontalAlignment="Left" Margin="180,145,0,0" TextWrapping="Wrap" Text="Entrer le matricule :" VerticalAlignment="Top" Foreground="White"/>
<GroupBox Header="Profil utilisateur :" HorizontalAlignment="Left" Margin="102,116,0,0" VerticalAlignment="Top" Height="117" Width="263" Foreground="White">
<ComboBox x:Name="list" HorizontalAlignment="Left" Margin="33,47,0,0" VerticalAlignment="Top" Width="183" Height="26"/>
</GroupBox>
<Button x:Name="restore" Content="Restaurer" HorizontalAlignment="Left" Margin="240,267,0,0" VerticalAlignment="Top" Width="108" Height="32" RenderTransformOrigin="3.13,-4.062"/>
</Grid>
</Window>] |
Ma commande que je souhaite afficher ou récupérer est la suivante :
Code:
Get-ChildItem "C:\Users" | select Name
Elle permets de voir les différents profils Windows présent dans le poste.
Merci d'avance pour votre aide !!
Bonne journée à tous,