Açıklama Yok

RLAlert.xaml 2.5KB

1234567891011121314151617181920212223242526272829303132333435
  1. 
  2. <Window x:Class="WpfApplication19.RLAlert"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. 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">
  6. <Window.Resources>
  7. <Style TargetType="Button">
  8. <Setter Property="OverridesDefaultStyle" Value="True" />
  9. <Setter Property="Cursor" Value="Hand" />
  10. <Setter Property="Template">
  11. <Setter.Value>
  12. <ControlTemplate TargetType="Button">
  13. <Border Name="border" BorderThickness="0" BorderBrush="Black" Background="{TemplateBinding Background}">
  14. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
  15. </Border>
  16. <ControlTemplate.Triggers>
  17. <Trigger Property="IsMouseOver" Value="True">
  18. <Setter Property="Opacity" Value="0.8" />
  19. <Setter Property="Background" Value="Red" />
  20. </Trigger>
  21. </ControlTemplate.Triggers>
  22. </ControlTemplate>
  23. </Setter.Value>
  24. </Setter>
  25. </Style>
  26. </Window.Resources>
  27. <Grid Width="Auto">
  28. <Label Content="คุณได้เปลี่ยนระบบการเช็คเป็น RL " Height="51" HorizontalAlignment="Center" Margin="104,47,71,163" Name="label1" VerticalAlignment="Center" Width="418" FontSize="28" Foreground="Red" />
  29. <Label Content="และเปลี่ยนหัวบอล RL เรียบร้อยแล้วหรือยัง ? " FontSize="28" Foreground="Red" Height="51" HorizontalAlignment="Center" Margin="43,104,41,106" Name="label2" VerticalAlignment="Center" Width="508" />
  30. <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" />
  31. <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" />
  32. </Grid>
  33. </Window>