AlertsMessage.xaml 4.9 KB

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