终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

70 line
4.6 KiB

  1. <Window x:Class="BPASmart.UserManagement.MessageBox"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BPASmart.UserManagement"
  7. mc:Ignorable="d"
  8. Title="MessageBox" Height="110" Width="240"
  9. WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent" Topmost="True" ResizeMode="NoResize" ShowInTaskbar="False"
  10. KeyDown="Window_KeyDown">
  11. <Border MouseLeftButtonDown="Border_MouseLeftButtonDown" Background="#363636" Opacity="0.9" CornerRadius="10">
  12. <Border>
  13. <Border.Background>
  14. <ImageBrush ImageSource="../Image/信息边框.png"/>
  15. </Border.Background>
  16. <Grid>
  17. <Border Margin="10" Background="Transparent" Opacity="1">
  18. <Border.Effect>
  19. <DropShadowEffect ShadowDepth="0" BlurRadius="10" Opacity="0.5"/>
  20. </Border.Effect>
  21. <Grid Margin="0">
  22. <Grid.RowDefinitions>
  23. <RowDefinition />
  24. <RowDefinition Height="30"/>
  25. </Grid.RowDefinitions>
  26. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,30,0">
  27. <Image Source="../Image/成功提示.png" Height="26" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10,0"/>
  28. <TextBlock x:Name="TB_Context" Text="Ensure?" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" Foreground="#E900F859"/>
  29. </StackPanel>
  30. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
  31. <Button VerticalAlignment="Bottom" Click="No_Button_Click" Cursor="Hand" >
  32. <Button.Template>
  33. <ControlTemplate TargetType="{x:Type Button}">
  34. <Border Name="Border" VerticalAlignment="Bottom" Width="100" Height="20" BorderBrush="#cccccc" CornerRadius="10" >
  35. <Border.Effect>
  36. <DropShadowEffect ShadowDepth="0" BlurRadius="10" Opacity="0.2"/>
  37. </Border.Effect>
  38. <Border.Background>
  39. <ImageBrush ImageSource="../Image/按钮背景.png"/>
  40. </Border.Background>
  41. <TextBlock x:Name="textSure" Text="确 定" FontSize="16" Margin="15,0" HorizontalAlignment="Center" VerticalAlignment="Center">
  42. <TextBlock.Foreground>
  43. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  44. <GradientStop Color="#FF056F75" Offset="0"/>
  45. <GradientStop Color="#888FFAFF" Offset="0.4"/>
  46. <GradientStop Color="#888FFAFF" Offset="0.6"/>
  47. <GradientStop Color="#FF056F75" Offset="1"/>
  48. </LinearGradientBrush>
  49. </TextBlock.Foreground>
  50. </TextBlock>
  51. </Border>
  52. <ControlTemplate.Triggers>
  53. <Trigger Property="IsMouseOver" Value="true">
  54. <Setter TargetName="textSure" Property="Foreground" Value="#FF00FFFF" />
  55. </Trigger>
  56. </ControlTemplate.Triggers>
  57. </ControlTemplate>
  58. </Button.Template>
  59. </Button>
  60. </StackPanel>
  61. </Grid>
  62. </Border>
  63. </Grid>
  64. </Border>
  65. </Border>
  66. </Window>