AlertsMessage.xaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <Window
  2. x:Class="PDF_Office.CustomControl.AlertsMessage"
  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:PDF_Office.CustomControl"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. Width="470"
  9. MinHeight="156"
  10. AllowsTransparency="True"
  11. Background="Transparent"
  12. ResizeMode="NoResize"
  13. ShowInTaskbar="False"
  14. SizeToContent="Height"
  15. WindowStartupLocation="CenterScreen"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Border
  19. Height="auto"
  20. Background="White"
  21. BorderBrush="Gray"
  22. BorderThickness="1"
  23. CornerRadius="6"
  24. MouseLeftButtonDown="Border_PreviewMouseLeftButtonDown">
  25. <Grid Margin="20,24,20,0">
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="auto" />
  28. <RowDefinition />
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="Auto" />
  32. <ColumnDefinition />
  33. </Grid.ColumnDefinitions>
  34. <StackPanel
  35. Grid.Column="0"
  36. Grid.ColumnSpan="2"
  37. VerticalAlignment="Center">
  38. <TextBlock
  39. x:Name="TitleText"
  40. FontSize="14"
  41. FontWeight="SemiBold"
  42. Text="Make sure to delete the selected material?"
  43. TextWrapping="Wrap" />
  44. <TextBlock
  45. x:Name="ContentText"
  46. Margin="0,4,0,0"
  47. FontSize="12"
  48. Text="Make sure to delete the selected material?"
  49. TextWrapping="Wrap" />
  50. </StackPanel>
  51. <Grid
  52. x:Name="BtnGrid"
  53. Grid.Row="1"
  54. Grid.ColumnSpan="2">
  55. <Grid.ColumnDefinitions>
  56. <ColumnDefinition />
  57. <ColumnDefinition />
  58. <ColumnDefinition />
  59. </Grid.ColumnDefinitions>
  60. <CheckBox
  61. x:Name="ChbDonotAskAgain"
  62. Checked="ChbDonotAskAgain_Checked"
  63. Content="Don't ask again"
  64. Unchecked="ChbDonotAskAgain_Unchecked"
  65. Visibility="Collapsed" />
  66. <Button
  67. x:Name="CancelBtn"
  68. Grid.Column="2"
  69. Height="28"
  70. Margin="0,0,0,0"
  71. Click="CancelBtn_Click"
  72. Content="Cancel"
  73. FontSize="14"
  74. FontWeight="SemiBold"
  75. Style="{StaticResource btn.sec}" />
  76. <Button
  77. x:Name="MiddleCancelBtn"
  78. Grid.Column="1"
  79. Height="28"
  80. Margin="8,0,8,0"
  81. Click="MiddleCancelBtn_Click"
  82. Content="Do not Save"
  83. FontSize="14"
  84. FontWeight="SemiBold"
  85. Style="{StaticResource btn.sec}" />
  86. <Button
  87. x:Name="OkBtn"
  88. Grid.Column="0"
  89. Height="28"
  90. Margin="8,0,0,0"
  91. Click="OkBtn_Click"
  92. Content="Save"
  93. FontSize="14"
  94. FontWeight="SemiBold"
  95. Style="{StaticResource Btn.cta}" />
  96. </Grid>
  97. </Grid>
  98. </Border>
  99. </Window>