<Window x:Class="BrilliantSightClient.Views.Dialog.MessageBoxHasCheck" 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:local="clr-namespace:BrilliantSightClient.Views.Dialog" mc:Ignorable="d" WindowStyle="None" AllowsTransparency="True" WindowStartupLocation="CenterScreen" Topmost="True" Background="Transparent" ResizeMode="NoResize" Title="MessageBox" Height="250" Width="600"> <Window.Resources> <Style x:Key="CloseHoverImageStyle" TargetType="Image"> <Setter Property="Source" Value="pack://application:,,,/Resource/Images/UIResource/01-8.png"/> <Style.Triggers> <DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType=Border}}" Value="True"> <Setter Property="Source" Value="pack://application:,,,/Resource/Images/UIResource/01-8-1.png"/> </DataTrigger> </Style.Triggers> </Style> </Window.Resources> <Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown"> <Border CornerRadius="20" BorderThickness="1" BorderBrush="LightGray" Background="White"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <TextBlock Grid.Row="1" Width="600" TextWrapping = "Wrap" Padding="30 0" HorizontalAlignment="Center" Text="{StaticResource NetworkSpeedCheckedMessage}" VerticalAlignment="Center" TextAlignment="Center" FontSize="18" x:Name="TextBlockCenterBox" Margin="0 20" /> <CheckBox Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" Content="{StaticResource NetworkSpeedCheckedText}" FontSize="16" x:Name="CheckBoxCancelCheck"/> <Grid Grid.Row="3" x:Name="GridButtons" Margin="0 20"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Button x:Name="ConfirmButton" Grid.Column="1" Padding="0" Margin="0 0 0 20" Height="50" Click="ConfirmButton_OnClick" BorderThickness="0" Background="Transparent" FocusVisualStyle="{x:Null}"> <Border HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 0 0 0" Padding="10, 10" Width="120" BorderThickness="0" CornerRadius="20"> <Border.Background> <LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> <GradientStop Color="#40b1ff" Offset="0"/> <GradientStop Color="#3c9ce6" Offset="1"/> </LinearGradientBrush> </Border.Background> <TextBlock FontSize="18" Text="{StaticResource Confirm}" TextAlignment="Center" Foreground="#ffffff"></TextBlock> </Border> </Button> </Grid> </Grid> </Border> </Grid> </Window>