AlertsMessage.xaml 3.6 KB

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