/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Microsoft.Management.UI.Internal/ShowCommand/Controls/ShowModuleControl.xaml
34 строки
2 KB
Steve Lee
Update copyright notice to latest guidance (#12190)
24 мар 2020, 21:08
Не верифицирован
24 мар 2020, 21:08
b7cb335
Код
Авторство
О чём код?
<!--================================================================= // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. ==================================================================--> <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="Auto"></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> <TextBlock Grid.Row="1" Margin="3" Text="{Binding Path=SelectedCommand.ToolTip}" /> <Border Grid.Row="2" Margin="3" Visibility="{Binding CommandControlVisibility}"> <this:CmdletControl x:Name="CmdletControl" DataContext="{Binding Path=SelectedCommand}"></this:CmdletControl> </Border> </Grid> </UserControl>