92 lines
4.4 KiB
XML
92 lines
4.4 KiB
XML
<Window x:Class="QoSManager.Views.ProcessSelectionWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Выбор процесса"
|
|
Height="600" Width="800"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStyle="None"
|
|
ResizeMode="CanResize"
|
|
Background="#2b2b2b"
|
|
TextElement.Foreground="White">
|
|
|
|
<WindowChrome.WindowChrome>
|
|
<WindowChrome CaptionHeight="0" GlassFrameThickness="0" ResizeBorderThickness="5" UseAeroCaptionButtons="False"/>
|
|
</WindowChrome.WindowChrome>
|
|
|
|
<Border BorderBrush="#555555" BorderThickness="1" CornerRadius="8" Background="#2b2b2b">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Title Bar -->
|
|
<Border Grid.Row="0" Style="{StaticResource TitleBar}"
|
|
MouseLeftButtonDown="TitleBar_MouseLeftButtonDown">
|
|
<Grid>
|
|
<TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType=Window}, Path=Title}"
|
|
Style="{StaticResource TitleBarText}"/>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button x:Name="MinimizeButton" Style="{StaticResource TitleBarButton}"
|
|
Click="MinimizeButton_Click" Content=""/>
|
|
<Button x:Name="CloseButton" Style="{StaticResource TitleBarCloseButton}"
|
|
Click="CloseButton_Click" Content=""/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Content -->
|
|
<Grid Grid.Row="1" Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" Text="Выберите запущенный процесс:"
|
|
FontSize="14" FontWeight="Bold"
|
|
Foreground="White" Margin="0,0,0,10"/>
|
|
|
|
<DataGrid x:Name="ProcessesDataGrid" Grid.Row="1"
|
|
AutoGenerateColumns="False"
|
|
CanUserSortColumns="True"
|
|
CanUserResizeColumns="True"
|
|
IsReadOnly="True"
|
|
AlternatingRowBackground="#3b3b3b"
|
|
RowBackground="#2b2b2b"
|
|
Foreground="White"
|
|
GridLinesVisibility="Horizontal"
|
|
HeadersVisibility="Column"
|
|
FontSize="12"
|
|
Margin="0,0,0,10">
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#4a4a4a"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Padding" Value="8,0"/>
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="Имя процесса" Binding="{Binding Name}" Width="250"/>
|
|
<DataGridTextColumn Header="PID" Binding="{Binding Id}" Width="80"/>
|
|
<DataGridTextColumn Header="Путь" Binding="{Binding Path}" Width="450"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
|
|
<Button x:Name="SelectButton" Content="Выбрать" Width="100" Height="30"
|
|
Background="#4a4a4a" Foreground="White"
|
|
BorderBrush="#6a6a6a" Margin="0,0,10,0" Click="SelectButton_Click"/>
|
|
<Button x:Name="CancelButton" Content="Отмена" Width="100" Height="30"
|
|
Background="#4a4a4a" Foreground="White"
|
|
BorderBrush="#6a6a6a" Margin="0,0,10,0" Click="CancelButton_Click"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|