
<Window x:Class="WpfApplication19.RLAlert"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="RLAlert" Loaded="Window_Loaded" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="300" Width="614">
    <Window.Resources>
        <Style  TargetType="Button">
            <Setter Property="OverridesDefaultStyle" Value="True" />
            <Setter Property="Cursor" Value="Hand" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border Name="border" BorderThickness="0" BorderBrush="Black" Background="{TemplateBinding Background}">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Opacity" Value="0.8" />
                                <Setter Property="Background" Value="Red" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

    </Window.Resources>
    <Grid Width="Auto">
        <Label Content="คุณได้เปลี่ยนระบบการเช็คเป็น RL " Height="51" HorizontalAlignment="Center" Margin="104,47,71,163" Name="label1" VerticalAlignment="Center" Width="418" FontSize="28" Foreground="Red" />
        <Label Content="และเปลี่ยนหัวบอล RL เรียบร้อยแล้วหรือยัง ? " FontSize="28" Foreground="Red" Height="51" HorizontalAlignment="Center" Margin="43,104,41,106" Name="label2" VerticalAlignment="Center" Width="508" />
        <Button Content="เรียบร้อยแล้ว" Height="49" HorizontalAlignment="Left" Margin="455,191,0,0" Name="button1" VerticalAlignment="Top" Width="126" Background="Green" Foreground="Azure" FontSize="20" Click="button1_Click"   />
        <Button Background="Red" Content="Cancel" FontSize="20" Foreground="Azure" Height="49" HorizontalAlignment="Left" Margin="12,191,0,0" Name="button2" VerticalAlignment="Top" Width="126" Click="button2_Click" />
    </Grid>
</Window>
