UserDialog.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.ServiceDialog.UserDialog"
  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:help="clr-namespace:PDF_Master.Helper"
  7. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.ServiceDialog"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Width="440"
  11. MinHeight="282"
  12. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. mc:Ignorable="d">
  15. <Grid Background="White">
  16. <Button
  17. Width="46"
  18. Height="32"
  19. Margin="8"
  20. HorizontalAlignment="Right"
  21. VerticalAlignment="Top"
  22. Background="Transparent"
  23. IsCancel="True"
  24. Style="{StaticResource CloseBtn}"
  25. WindowChrome.IsHitTestVisibleInChrome="True">
  26. <Path
  27. Width="46"
  28. Height="32"
  29. Data="M23 17.708L18.8545 21.8535C18.7568 21.9512 18.6396 22 18.5029 22C18.3597 22 18.2393 21.9528 18.1416 21.8584C18.0472 21.7607 18 21.6403 18 21.4971C18 21.3604 18.0488 21.2432 18.1465 21.1455L22.292 17L18.1465 12.8545C18.0488 12.7568 18 12.638 18 12.498C18 12.4297 18.013 12.3646 18.0391 12.3027C18.0651 12.2409 18.1009 12.1888 18.1465 12.1465C18.1921 12.1009 18.2458 12.0651 18.3076 12.0391C18.3695 12.013 18.4346 12 18.5029 12C18.6396 12 18.7568 12.0488 18.8545 12.1465L23 16.292L27.1455 12.1465C27.2432 12.0488 27.362 12 27.502 12C27.5703 12 27.6338 12.013 27.6924 12.0391C27.7542 12.0651 27.8079 12.1009 27.8535 12.1465C27.8991 12.1921 27.9349 12.2458 27.9609 12.3076C27.987 12.3662 28 12.4297 28 12.498C28 12.638 27.9512 12.7568 27.8535 12.8545L23.708 17L27.8535 21.1455C27.9512 21.2432 28 21.3604 28 21.4971C28 21.5654 27.987 21.6305 27.9609 21.6924C27.9349 21.7542 27.8991 21.8079 27.8535 21.8535C27.8112 21.8991 27.7591 21.9349 27.6973 21.9609C27.6354 21.987 27.5703 22 27.502 22C27.362 22 27.2432 21.9512 27.1455 21.8535L23 17.708Z"
  30. Fill="Black" />
  31. </Button>
  32. <TextBlock
  33. Margin="0,40,0,0"
  34. HorizontalAlignment="Center"
  35. VerticalAlignment="Top"
  36. FontFamily="Segoe UI"
  37. FontSize="20"
  38. FontStyle="Normal"
  39. FontWeight="SemiBold"
  40. LineHeight="28"
  41. Text="{Binding Text_useracc}" />
  42. <StackPanel
  43. Margin="0,84,0,0"
  44. HorizontalAlignment="Center"
  45. VerticalAlignment="Top">
  46. <Grid Background="#F7F8FA">
  47. <StackPanel Width="392" MinHeight="150">
  48. <Button
  49. Name="BtnMore"
  50. Width="28"
  51. Height="28"
  52. Margin="0,8,8,0"
  53. HorizontalAlignment="Right"
  54. VerticalAlignment="Top"
  55. Click="BtnMore_Click"
  56. Style="{StaticResource subToolBar}">
  57. <Path
  58. Width="28"
  59. Height="28"
  60. HorizontalAlignment="Center"
  61. VerticalAlignment="Center"
  62. Data="M9 14C9 15.1046 8.10457 16 7 16C5.89543 16 5 15.1046 5 14C5 12.8954 5.89543 12 7 12C8.10457 12 9 12.8954 9 14ZM16 14C16 15.1046 15.1046 16 14 16C12.8954 16 12 15.1046 12 14C12 12.8954 12.8954 12 14 12C15.1046 12 16 12.8954 16 14ZM21 16C22.1046 16 23 15.1046 23 14C23 12.8954 22.1046 12 21 12C19.8954 12 19 12.8954 19 14C19 15.1046 19.8954 16 21 16Z"
  63. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  64. <Button.ContextMenu>
  65. <ContextMenu Name="MenuMore">
  66. <MenuItem Command="{Binding LogOutCommand}" Header="{Binding Text_logout}" />
  67. <MenuItem Command="{Binding UserOutCommand}" Header="{Binding Text_cancel}" />
  68. </ContextMenu>
  69. </Button.ContextMenu>
  70. </Button>
  71. <Border
  72. Width="48"
  73. Height="48"
  74. HorizontalAlignment="Center"
  75. VerticalAlignment="Center"
  76. Background="#1770F4"
  77. CornerRadius="100">
  78. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  79. <TextBlock
  80. Height="Auto"
  81. HorizontalAlignment="Center"
  82. VerticalAlignment="Center"
  83. FontSize="28"
  84. FontWeight="SemiBold"
  85. Foreground="White"
  86. Text="{Binding Useremailchar, Mode=TwoWay}" />
  87. </Grid>
  88. </Border>
  89. <TextBlock
  90. Margin="0,18,0,0"
  91. HorizontalAlignment="Center"
  92. FontFamily="Segoe UI"
  93. FontSize="12"
  94. FontStyle="Normal"
  95. FontWeight="SemiBold"
  96. Foreground="#616469"
  97. LineHeight="20"
  98. Text="{Binding Text_admail}" />
  99. <TextBlock
  100. Width="360"
  101. Margin="0,8,0,20"
  102. HorizontalAlignment="Center"
  103. FontFamily="Segoe UI"
  104. FontSize="14"
  105. FontStyle="Normal"
  106. Foreground="#252629"
  107. Text="{Binding UserEmail}"
  108. TextAlignment="Center"
  109. TextWrapping="Wrap" />
  110. </StackPanel>
  111. </Grid>
  112. <TextBlock
  113. Height="54"
  114. Margin="0,24,0,0"
  115. Visibility="{Binding LinkuserdataVis,Mode=TwoWay}"
  116. FontFamily="Segoe UI"
  117. FontSize="14"
  118. Foreground="#1770F4"
  119. LineHeight="22">
  120. <Hyperlink Command="{Binding LinkuserdataCommand}">
  121. <Hyperlink.Style>
  122. <Style BasedOn="{StaticResource {x:Type Hyperlink}}" TargetType="Hyperlink">
  123. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  124. <Setter Property="TextBlock.TextDecorations" Value="{x:Null}" />
  125. <Style.Triggers>
  126. <Trigger Property="IsMouseOver" Value="True">
  127. <Setter Property="TextBlock.TextDecorations" Value="None" />
  128. </Trigger>
  129. </Style.Triggers>
  130. </Style>
  131. </Hyperlink.Style>
  132. <TextBlock Text="{Binding TextOrderInformation}" />
  133. </Hyperlink>
  134. </TextBlock>
  135. <StackPanel
  136. Width="392"
  137. Margin="0,22,0,30"
  138. Visibility="{Binding Subscriptionbox, Mode=TwoWay}">
  139. <TextBlock
  140. FontFamily="Segoe UI"
  141. FontSize="12"
  142. FontWeight="SemiBold"
  143. Foreground="#616469"
  144. LineHeight="20"
  145. Text="{Binding TextStatus}" />
  146. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  147. <TextBlock
  148. Width="120"
  149. VerticalAlignment="Center"
  150. FontFamily="Segoe UI"
  151. FontSize="16"
  152. FontWeight="SemiBold"
  153. Foreground="{Binding TextSubscribeStateColor}"
  154. LineHeight="24"
  155. Text="{Binding TextSubscribeState}" />
  156. <Border
  157. Width="88"
  158. Height="20"
  159. Margin="16,0,0,0"
  160. Background="#F7F8FA"
  161. BorderBrush="#DFE1E5"
  162. BorderThickness="1"
  163. CornerRadius="4"
  164. Visibility="{Binding Subscriptionauto, Mode=TwoWay}">
  165. <TextBlock
  166. HorizontalAlignment="Center"
  167. VerticalAlignment="Center"
  168. FontFamily="Segoe UI"
  169. FontSize="12"
  170. Text="{Binding TextAutorenewal}" />
  171. </Border>
  172. <StackPanel Width="121" Margin="47,0,0,0">
  173. <TextBlock
  174. FontFamily="Segoe UI"
  175. FontSize="12"
  176. Foreground="#616469"
  177. Text="{Binding TextSubscribeEndtime}"
  178. TextAlignment="Right" />
  179. <TextBlock
  180. FontFamily="Segoe UI"
  181. FontSize="12"
  182. Foreground="#616469"
  183. Text="{Binding TextSubscribetimetext}"
  184. TextAlignment="Right" />
  185. </StackPanel>
  186. </StackPanel>
  187. <Separator
  188. Width="392"
  189. Margin="0,16,0,0"
  190. HorizontalAlignment="Center"
  191. Background="#ECECEC"
  192. BorderBrush="#ECECEC"
  193. BorderThickness="1" />
  194. <TextBlock
  195. Margin="0,8,0,0"
  196. FontFamily="Segoe UI"
  197. FontSize="14"
  198. Foreground="#1770F4"
  199. LineHeight="22">
  200. <Hyperlink Command="{Binding LinkuserdataCommand}">
  201. <Hyperlink.Style>
  202. <Style BasedOn="{StaticResource {x:Type Hyperlink}}" TargetType="Hyperlink">
  203. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  204. <Setter Property="TextBlock.TextDecorations" Value="{x:Null}" />
  205. <Style.Triggers>
  206. <Trigger Property="IsMouseOver" Value="True">
  207. <Setter Property="TextBlock.TextDecorations" Value="None" />
  208. </Trigger>
  209. </Style.Triggers>
  210. </Style>
  211. </Hyperlink.Style>
  212. <TextBlock Text="{Binding TextOrderInformation}" />
  213. </Hyperlink>
  214. </TextBlock>
  215. <Button
  216. Width="200"
  217. Height="40"
  218. Margin="0,32,0,0"
  219. Command="{Binding LinkstoreCommand}"
  220. Content="{Binding BtnTextSubscribe}"
  221. FontFamily="Segoe UI"
  222. FontSize="16"
  223. FontWeight="SemiBold"
  224. Style="{StaticResource btn.upgrade}"
  225. Visibility="{Binding Subscriptionbtn, Mode=TwoWay}" />
  226. </StackPanel>
  227. </StackPanel>
  228. <Grid>
  229. <ContentControl prism:RegionManager.RegionName="{Binding UserRegionName}" Visibility="Visible" />
  230. </Grid>
  231. </Grid>
  232. </UserControl>