MegaBites-AI/Windows-powershell
0372
1<!--=================================================================2// Copyright (c) Microsoft Corporation.3// Licensed under the MIT License.4==================================================================-->5 6<UserControl x:Class="Microsoft.PowerShell.Commands.ShowCommandInternal.ShowModuleControl"7 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"8 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"9 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"10 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"11 xmlns:this="clr-namespace:Microsoft.PowerShell.Commands.ShowCommandInternal"12 mc:Ignorable="d"13 xmlns:sc="clr-namespace:Microsoft.Management.UI.Internal"14 d:DesignHeight="300" d:DesignWidth="300">15 <Grid>16 <Grid.RowDefinitions>17 <RowDefinition Height="0.2*"></RowDefinition>18 <RowDefinition Height="Auto"></RowDefinition>19 <RowDefinition Height="{Binding CommandRowHeight}"></RowDefinition>20 </Grid.RowDefinitions>21 <ListBox x:Name="CommandList" IsTextSearchEnabled="True" Margin="3" SelectedItem="{Binding SelectedCommand}" ItemsSource="{Binding Path=FilteredCommands}" DisplayMemberPath="Name" Grid.Row="0" AutomationProperties.AutomationId="listboxCommandList">22 <ListBox.ItemContainerStyle>23 <Style TargetType="{x:Type ListBoxItem}">24 <Setter Property="AutomationProperties.Name" Value="{Binding Name}"/>25 <Setter Property="ToolTip" Value="{Binding ToolTip}"/>26 </Style>27 </ListBox.ItemContainerStyle>28 </ListBox>29 <TextBlock Grid.Row="1" Margin="3" Text="{Binding Path=SelectedCommand.ToolTip}" />30 <Border Grid.Row="2" Margin="3" Visibility="{Binding CommandControlVisibility}">31 <this:CmdletControl x:Name="CmdletControl" DataContext="{Binding Path=SelectedCommand}"></this:CmdletControl>32 </Border>33 </Grid>34</UserControl>35 