forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShowModuleControl.xaml
More file actions
27 lines (27 loc) · 1.66 KB
/
Copy pathShowModuleControl.xaml
File metadata and controls
27 lines (27 loc) · 1.66 KB
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
<UserControl x:Class="Microsoft.PowerShell.Commands.ShowCommandInternal.ShowModuleControl"
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:this="clr-namespace:Microsoft.PowerShell.Commands.ShowCommandInternal"
mc:Ignorable="d"
xmlns:sc="clr-namespace:Microsoft.Management.UI.Internal"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"></RowDefinition>
<RowDefinition Height="{Binding CommandRowHeight}"></RowDefinition>
</Grid.RowDefinitions>
<ListBox x:Name="CommandList" IsTextSearchEnabled="True" Margin="3" SelectedItem="{Binding SelectedCommand}" ItemsSource="{Binding Path=FilteredCommands}" DisplayMemberPath="Name" Grid.Row="0" AutomationProperties.AutomationId="listboxCommandList">
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="AutomationProperties.Name" Value="{Binding Name}"/>
<Setter Property="ToolTip" Value="{Binding ToolTip}"/>
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
<Border Grid.Row="1" Margin="3" Visibility="{Binding CommandControlVisibility}">
<this:CmdletControl DataContext="{Binding Path=SelectedCommand}"></this:CmdletControl>
</Border>
</Grid>
</UserControl>