102 lines
3.7 KiB
XML
102 lines
3.7 KiB
XML
<Window x:Class="QoSManager.Views.CustomMessageBox"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="QoS Manager"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStyle="None"
|
|
ResizeMode="NoResize"
|
|
SizeToContent="WidthAndHeight"
|
|
Background="#2D2D2D"
|
|
BorderBrush="#444444"
|
|
BorderThickness="1"
|
|
FontFamily="Segoe UI"
|
|
MinWidth="300"
|
|
MaxWidth="500">
|
|
|
|
<WindowChrome.WindowChrome>
|
|
<WindowChrome CaptionHeight="0" GlassFrameThickness="0" ResizeBorderThickness="0" UseAeroCaptionButtons="False"/>
|
|
</WindowChrome.WindowChrome>
|
|
|
|
<Border BorderBrush="#555555" BorderThickness="1" CornerRadius="8" Background="#2D2D2D">
|
|
<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="CloseButton" Style="{StaticResource TitleBarCloseButton}"
|
|
Click="CloseButton_Click" Content=""/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Content -->
|
|
<Grid Grid.Row="1" Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="20"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Сообщение -->
|
|
<TextBlock x:Name="MessageTextBlock"
|
|
Grid.Row="0"
|
|
Text="{Binding Message}"
|
|
Foreground="White"
|
|
FontSize="14"
|
|
TextWrapping="Wrap"
|
|
MaxWidth="450"/>
|
|
|
|
<!-- Кнопки -->
|
|
<StackPanel Grid.Row="2"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Center">
|
|
|
|
<Button x:Name="OKButton"
|
|
Content="OK"
|
|
Width="80"
|
|
Height="30"
|
|
Margin="5,0"
|
|
Style="{StaticResource DarkButtonStyle}"
|
|
Click="OKButton_Click"
|
|
Visibility="Visible"/>
|
|
|
|
<Button x:Name="CancelButton"
|
|
Content="Отмена"
|
|
Width="80"
|
|
Height="30"
|
|
Margin="5,0"
|
|
Style="{StaticResource DarkButtonStyle}"
|
|
Click="CancelButton_Click"
|
|
Visibility="Collapsed"/>
|
|
|
|
<Button x:Name="YesButton"
|
|
Content="Да"
|
|
Width="80"
|
|
Height="30"
|
|
Margin="5,0"
|
|
Style="{StaticResource DarkButtonStyle}"
|
|
Click="YesButton_Click"
|
|
Visibility="Collapsed"/>
|
|
|
|
<Button x:Name="NoButton"
|
|
Content="Нет"
|
|
Width="80"
|
|
Height="30"
|
|
Margin="5,0"
|
|
Style="{StaticResource DarkButtonStyle}"
|
|
Click="NoButton_Click"
|
|
Visibility="Collapsed"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|