AlertsMessage.xaml 4.8 KB

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