File size: 2,456 Bytes
8c763fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
31
32
33
34
35
36
37
38
39
40
<!--=================================================================
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
==================================================================-->

<Window x:Class="Microsoft.PowerShell.Commands.ShowCommandInternal.ShowAllModulesWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:this="clr-namespace:Microsoft.PowerShell.Commands.ShowCommandInternal"
        xmlns:default="clr-namespace:"
        xmlns:sc="clr-namespace:Microsoft.Management.UI.Internal"
        MinWidth="300" MinHeight="300"
        Title="Commands" Width="380" Height="600">
    <Grid Margin="3" x:Name="MainGrid">
        <Grid.LayoutTransform>
            <ScaleTransform
                    CenterX="0" CenterY="0"
                        ScaleX = "{Binding ZoomLevel}"
                        ScaleY=  "{Binding ZoomLevel}"
                />
        </Grid.LayoutTransform>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <this:AllModulesControl x:Name="AllModulesControl" Grid.Row="0"></this:AllModulesControl>
        <Grid x:Name="ButtonsGrid" Grid.Row="1" IsSharedSizeScope="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto" SharedSizeGroup="ButtonsColumns"/>
                <ColumnDefinition Width="Auto" SharedSizeGroup="ButtonsColumns"/>
                <ColumnDefinition Width="Auto" SharedSizeGroup="ButtonsColumns"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="Run" IsDefault="True" Grid.Column="1" Margin="3" IsEnabled="{Binding Path=CanRun}" AutomationProperties.AutomationId="btnRun" Content="{x:Static default:ShowCommandResources.ActionButtons_Button_Run}"></Button>
            <Button x:Name="Copy" Grid.Column="2" Margin="2"  IsEnabled="{Binding Path=CanCopy}" AutomationProperties.AutomationId="btnCopy" Content="{x:Static default:ShowCommandResources.ActionButtons_Button_Copy}"></Button>
            <Button x:Name="Cancel" IsCancel="True" Grid.Column="3" Margin="3" AutomationProperties.AutomationId="btnCancel" Content="{x:Static default:ShowCommandResources.ActionButtons_Button_Cancel}"></Button>
        </Grid>
    </Grid>
</Window>