终端一体化运控平台
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.
 
 
 

112 lines
3.8 KiB

  1. <Window
  2. x:Class="BPASmartClient.CustomResource.Pages.View.PromptView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. Title="PromptView"
  9. Width="400"
  10. Height="200"
  11. AllowsTransparency="True"
  12. Background="{x:Null}"
  13. Topmost="True"
  14. WindowStartupLocation="CenterScreen"
  15. WindowStyle="None"
  16. mc:Ignorable="d">
  17. <Window.Resources>
  18. <Style x:Key="buttonStyle" TargetType="Button">
  19. <Setter Property="Template">
  20. <Setter.Value>
  21. <ControlTemplate>
  22. <Border
  23. BorderBrush="DeepSkyBlue"
  24. BorderThickness="2"
  25. CornerRadius="8" />
  26. </ControlTemplate>
  27. </Setter.Value>
  28. </Setter>
  29. </Style>
  30. </Window.Resources>
  31. <Grid Name="main">
  32. <Grid.Background>
  33. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/弹窗.png" Stretch="Fill" />
  34. </Grid.Background>
  35. <Grid Margin="18,16">
  36. <Button
  37. Width="30"
  38. Height="20"
  39. HorizontalAlignment="Right"
  40. VerticalAlignment="Top"
  41. Background="Transparent"
  42. BorderThickness="0"
  43. Click="Button_Click" />
  44. <Grid Margin="0,40,0,0">
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition Width="0.2*" />
  47. <ColumnDefinition Width="0.15*" />
  48. <ColumnDefinition />
  49. </Grid.ColumnDefinitions>
  50. <TextBlock
  51. Name="infoType"
  52. Grid.Column="1"
  53. VerticalAlignment="Top"
  54. FontSize="15"
  55. Foreground="DeepSkyBlue" />
  56. <TextBlock
  57. Name="icon"
  58. HorizontalAlignment="Center"
  59. VerticalAlignment="Top"
  60. FontFamily="../../Fonts/#iconfont"
  61. FontSize="30"
  62. Foreground="DeepSkyBlue"
  63. Text="&#xe61f;" />
  64. <TextBlock
  65. Name="info"
  66. Grid.Column="2"
  67. Margin="10,0,0,0"
  68. VerticalAlignment="Top"
  69. FontSize="15"
  70. Foreground="DeepSkyBlue"
  71. Text="警告:"
  72. TextWrapping="Wrap" />
  73. </Grid>
  74. <StackPanel
  75. Grid.Row="1"
  76. Margin="0,0,10,0"
  77. HorizontalAlignment="Right"
  78. Orientation="Horizontal">
  79. <Button
  80. Name="Cancel"
  81. Width="90"
  82. Height="30"
  83. Margin="5,0,5,0"
  84. Click="Cancel_Click"
  85. Content="取消"
  86. FontSize="20"
  87. Style="{StaticResource ImageButtonStyle}" />
  88. <Button
  89. Name="ok"
  90. Width="90"
  91. Height="30"
  92. Margin="5,0,5,0"
  93. Click="ok_Click"
  94. Content="确定"
  95. FontSize="20"
  96. Style="{StaticResource ImageButtonStyle}" />
  97. </StackPanel>
  98. <Grid.RowDefinitions>
  99. <RowDefinition />
  100. <RowDefinition Height="0.5*" />
  101. </Grid.RowDefinitions>
  102. </Grid>
  103. </Grid>
  104. </Window>