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

118 line
4.2 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="CenterOwner"
  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 Background="#bb061c43">
  32. <Grid
  33. Name="main"
  34. Width="400"
  35. Height="200">
  36. <Grid.Background>
  37. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/弹窗.png" Stretch="Fill" />
  38. </Grid.Background>
  39. <Grid Margin="18,16">
  40. <Button
  41. Width="30"
  42. Height="20"
  43. HorizontalAlignment="Right"
  44. VerticalAlignment="Top"
  45. Background="Transparent"
  46. BorderThickness="0"
  47. Click="Button_Click" />
  48. <Grid Margin="0,40,0,0">
  49. <Grid.ColumnDefinitions>
  50. <ColumnDefinition Width="0.2*" />
  51. <ColumnDefinition Width="0.15*" />
  52. <ColumnDefinition />
  53. </Grid.ColumnDefinitions>
  54. <TextBlock
  55. Name="infoType"
  56. Grid.Column="1"
  57. VerticalAlignment="Top"
  58. FontSize="15"
  59. Foreground="DeepSkyBlue" />
  60. <TextBlock
  61. Name="icon"
  62. HorizontalAlignment="Center"
  63. VerticalAlignment="Top"
  64. FontFamily="../../Fonts/#iconfont"
  65. FontSize="30"
  66. Foreground="DeepSkyBlue"
  67. Text="&#xe61f;" />
  68. <TextBlock
  69. Name="info"
  70. Grid.Column="2"
  71. Margin="10,0,0,0"
  72. VerticalAlignment="Top"
  73. FontSize="15"
  74. Foreground="DeepSkyBlue"
  75. Text="警告:"
  76. TextWrapping="Wrap" />
  77. </Grid>
  78. <StackPanel
  79. Grid.Row="1"
  80. Margin="0,0,10,0"
  81. HorizontalAlignment="Right"
  82. Orientation="Horizontal">
  83. <Button
  84. Name="Cancel"
  85. Width="90"
  86. Height="30"
  87. Margin="5,0,5,0"
  88. Click="Cancel_Click"
  89. Content="取消"
  90. FontSize="20"
  91. Style="{StaticResource ImageButtonStyle}" />
  92. <Button
  93. Name="ok"
  94. Width="90"
  95. Height="30"
  96. Margin="5,0,5,0"
  97. Click="ok_Click"
  98. Content="确定"
  99. FontSize="20"
  100. Style="{StaticResource ImageButtonStyle}" />
  101. </StackPanel>
  102. <Grid.RowDefinitions>
  103. <RowDefinition />
  104. <RowDefinition Height="0.5*" />
  105. </Grid.RowDefinitions>
  106. </Grid>
  107. </Grid>
  108. </Grid>
  109. </Window>