AlertsMessage.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <StackPanel
  31. Margin="0,16,0,0"
  32. VerticalAlignment="Center"
  33. Orientation="Horizontal">
  34. <Grid
  35. Name="GridIcon"
  36. Width="24"
  37. Height="24"
  38. Margin="0,0,8,0"
  39. Visibility="Collapsed">
  40. <Image
  41. x:Name="ImgTips"
  42. Source="pack://application:,,,/Resources/Dialog/Tips.png"
  43. Visibility="Collapsed" />
  44. </Grid>
  45. <TextBlock
  46. x:Name="TitleText"
  47. FontSize="16"
  48. FontWeight="SemiBold"
  49. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  50. Text="Make sure to delete the selected material?"
  51. TextWrapping="Wrap" />
  52. </StackPanel>
  53. <TextBlock
  54. x:Name="ContentText"
  55. Margin="0,16"
  56. FontSize="14"
  57. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  58. Text="Make sure to delete the selected material?"
  59. TextWrapping="Wrap" />
  60. </StackPanel>
  61. <Grid
  62. x:Name="BtnGrid"
  63. Grid.Row="1"
  64. Height="64">
  65. <CheckBox
  66. x:Name="ChbDonotAskAgain"
  67. Checked="ChbDonotAskAgain_Checked"
  68. Content="Don't ask again"
  69. Unchecked="ChbDonotAskAgain_Unchecked"
  70. Visibility="Collapsed" />
  71. <StackPanel
  72. Margin="0,0,-4,0"
  73. HorizontalAlignment="Right"
  74. Orientation="Horizontal">
  75. <Button
  76. x:Name="OkBtn"
  77. Grid.Column="0"
  78. Height="28"
  79. MinWidth="80"
  80. Margin="4,0"
  81. Padding="8,0"
  82. HorizontalAlignment="Center"
  83. Click="OkBtn_Click"
  84. Content="Save"
  85. FontSize="14"
  86. FontWeight="SemiBold"
  87. IsDefault="True"
  88. Style="{StaticResource Btn.cta}" />
  89. <Button
  90. x:Name="MiddleCancelBtn"
  91. Grid.Column="1"
  92. Height="28"
  93. MinWidth="80"
  94. Margin="4,0"
  95. Padding="8,0"
  96. HorizontalAlignment="Center"
  97. Click="MiddleCancelBtn_Click"
  98. Content="Do not Save"
  99. FontSize="14"
  100. FontWeight="SemiBold"
  101. Style="{StaticResource btn.sec}" />
  102. <Button
  103. x:Name="CancelBtn"
  104. Grid.Column="2"
  105. Height="28"
  106. MinWidth="80"
  107. Margin="4,0"
  108. Padding="8,0"
  109. HorizontalAlignment="Center"
  110. Click="CancelBtn_Click"
  111. Content="Cancel"
  112. FontSize="14"
  113. FontWeight="SemiBold"
  114. IsCancel="True"
  115. Style="{StaticResource btn.sec}" />
  116. </StackPanel>
  117. </Grid>
  118. </Grid>
  119. </Border>
  120. </Window>