IAPCompareDialog.xaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.ServiceDialog.IAPCompareDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:convert="clr-namespace:PDF_Master.DataConvert"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.ServiceDialog"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="836"
  12. Height="680"
  13. d:DesignHeight="450"
  14. d:DesignWidth="800"
  15. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  16. Background="#F2F9FF"
  17. mc:Ignorable="d">
  18. <UserControl.Resources>
  19. <convert:BoolToVisible x:Key="BoolToVisible" />
  20. <convert:InvertBoolToVisibleConvert x:Key="BoolToVisible2" />
  21. <Style x:Key="ExpanderStyle1" TargetType="{x:Type Expander}">
  22. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
  23. <Setter Property="Background" Value="Transparent" />
  24. <Setter Property="BorderBrush" Value="#918C8C" />
  25. <Setter Property="Padding" Value="0,0,0,-1" />
  26. <Setter Property="BorderThickness" Value="0,0,0,0" />
  27. <Setter Property="Template">
  28. <Setter.Value>
  29. <ControlTemplate TargetType="{x:Type Expander}">
  30. <Border
  31. Background="{TemplateBinding Background}"
  32. BorderBrush="{TemplateBinding BorderBrush}"
  33. BorderThickness="{TemplateBinding BorderThickness}"
  34. CornerRadius="0"
  35. SnapsToDevicePixels="True">
  36. <StackPanel>
  37. <WrapPanel Background="#E4E9ED">
  38. <ToggleButton
  39. x:Name="HeaderSite"
  40. Height="30"
  41. Padding="{TemplateBinding Padding}"
  42. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  43. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
  44. Content="{TemplateBinding Header}"
  45. ContentTemplate="{TemplateBinding HeaderTemplate}"
  46. FontFamily="{TemplateBinding FontFamily}"
  47. FontSize="{TemplateBinding FontSize}"
  48. FontStretch="{TemplateBinding FontStretch}"
  49. FontStyle="{TemplateBinding FontStyle}"
  50. FontWeight="{TemplateBinding FontWeight}"
  51. Foreground="{TemplateBinding Foreground}"
  52. IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
  53. <ToggleButton.Style>
  54. <Style TargetType="{x:Type ToggleButton}">
  55. <Setter Property="Template">
  56. <Setter.Value>
  57. <ControlTemplate TargetType="{x:Type ToggleButton}">
  58. <Border
  59. Width="14"
  60. Height="14"
  61. Margin="19,0,0,0"
  62. HorizontalAlignment="Left"
  63. VerticalAlignment="Center"
  64. Background="Transparent"
  65. BorderBrush="#273C62"
  66. BorderThickness="2">
  67. <Path
  68. x:Name="arrow"
  69. Margin="-5.25,-5,-0,0"
  70. Data="M6 10L14 10M10 5.99994L10 13.9999"
  71. Stroke="#252629"
  72. StrokeLineJoin="Round"
  73. StrokeThickness="1.8" />
  74. </Border>
  75. <ControlTemplate.Triggers>
  76. <Trigger Property="IsChecked" Value="True">
  77. <Setter TargetName="arrow" Property="Data" Value="M6 10L14 10" />
  78. </Trigger>
  79. <Trigger Property="IsMouseOver" Value="True">
  80. <Setter TargetName="arrow" Property="Stroke" Value="Black" />
  81. </Trigger>
  82. <Trigger Property="IsPressed" Value="True">
  83. <Setter TargetName="arrow" Property="Stroke" Value="Black" />
  84. </Trigger>
  85. <Trigger Property="IsEnabled" Value="False">
  86. <Setter TargetName="arrow" Property="Stroke" Value="#FF707070" />
  87. </Trigger>
  88. </ControlTemplate.Triggers>
  89. </ControlTemplate>
  90. </Setter.Value>
  91. </Setter>
  92. </Style>
  93. </ToggleButton.Style>
  94. </ToggleButton>
  95. <TextBlock
  96. Margin="11,0,0,0"
  97. VerticalAlignment="Center"
  98. FontFamily="Segoe UI"
  99. FontSize="14"
  100. FontWeight="SemiBold"
  101. Foreground="#252629"
  102. LineHeight="22"
  103. Text="{Binding Name}" />
  104. </WrapPanel>
  105. <ContentPresenter
  106. x:Name="ExpandSite"
  107. Margin="{TemplateBinding Padding}"
  108. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  109. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  110. Content="{TemplateBinding Content}"
  111. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  112. ContentTemplate="{TemplateBinding ContentTemplate}"
  113. DockPanel.Dock="Bottom"
  114. Focusable="False"
  115. Visibility="Collapsed" />
  116. </StackPanel>
  117. </Border>
  118. <ControlTemplate.Triggers>
  119. <Trigger Property="IsExpanded" Value="True">
  120. <Setter TargetName="ExpandSite" Property="Visibility" Value="Visible" />
  121. </Trigger>
  122. <Trigger Property="IsEnabled" Value="False">
  123. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  124. </Trigger>
  125. </ControlTemplate.Triggers>
  126. </ControlTemplate>
  127. </Setter.Value>
  128. </Setter>
  129. </Style>
  130. <Style x:Key="myHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
  131. <Setter Property="Visibility" Value="Collapsed" />
  132. </Style>
  133. <Style x:Key="ItemContainerStyle1" TargetType="ListViewItem">
  134. <Setter Property="BorderThickness" Value="0,0,0,1" />
  135. <Setter Property="Padding" Value="0" />
  136. <Setter Property="BorderBrush" Value="#E4E9ED" />
  137. <Setter Property="Height" Value="46" />
  138. <Style.Triggers>
  139. <Trigger Property="IsSelected" Value="True">
  140. <Setter Property="Background" Value="Transparent" />
  141. <Setter Property="BorderBrush" Value="#E4E9ED" />
  142. </Trigger>
  143. <MultiTrigger>
  144. <MultiTrigger.Conditions>
  145. <Condition Property="IsMouseOver" Value="true" />
  146. <Condition Property="IsSelected" Value="false" />
  147. </MultiTrigger.Conditions>
  148. <Setter Property="Background" Value="Transparent" />
  149. <Setter Property="BorderBrush" Value="#E4E9ED" />
  150. </MultiTrigger>
  151. <Trigger Property="IsMouseOver" Value="True">
  152. <Setter Property="BorderBrush" Value="#E4E9ED" />
  153. </Trigger>
  154. </Style.Triggers>
  155. </Style>
  156. <ControlTemplate x:Key="Border_shrink" TargetType="{x:Type Button}">
  157. <Border
  158. Background="Transparent"
  159. BorderBrush="#273C62"
  160. BorderThickness="2">
  161. <Path
  162. Margin="-5,-6,0,0"
  163. Data="M6 10L14 10M10 5.99994L10 13.9999"
  164. Stroke="#252629"
  165. StrokeLineJoin="Round"
  166. StrokeThickness="1.8" />
  167. </Border>
  168. </ControlTemplate>
  169. <ControlTemplate x:Key="Border_expand" TargetType="{x:Type Button}">
  170. <Border
  171. Width="14"
  172. Height="14"
  173. Background="Transparent"
  174. BorderBrush="#273C62"
  175. BorderThickness="2">
  176. <Path
  177. Margin="-5,-6,0,0"
  178. Data="M6 10L14 10"
  179. Stroke="#252629"
  180. StrokeLineJoin="Round"
  181. StrokeThickness="1.8" />
  182. </Border>
  183. </ControlTemplate>
  184. </UserControl.Resources>
  185. <Grid>
  186. <Grid.RowDefinitions>
  187. <RowDefinition />
  188. <RowDefinition Height="120" />
  189. </Grid.RowDefinitions>
  190. <Grid>
  191. <Image VerticalAlignment="Top" Source="pack://application:,,,/PDF Master;component/Resources/Service/IAPTop.png" />
  192. <StackPanel>
  193. <Border
  194. Width="788"
  195. Height="80"
  196. Margin="24,45,24,0"
  197. VerticalAlignment="Top"
  198. Background="White"
  199. CornerRadius="4,4,0,0"
  200. Effect="{StaticResource shadow.black-2-8}">
  201. <Grid>
  202. <TextBlock
  203. Margin="24,36,0,0"
  204. FontFamily="Segoe UI"
  205. FontSize="26"
  206. FontWeight="SemiBold"
  207. Foreground="#273C62"
  208. LineHeight="28"
  209. Text="{Binding Text_Log}" />
  210. <TextBlock
  211. Margin="144,36,0,0"
  212. FontFamily="Segoe UI"
  213. FontSize="26"
  214. FontWeight="SemiBold"
  215. Foreground="#1770F4"
  216. LineHeight="28"
  217. Text="{Binding Text_Free}" />
  218. <TextBlock
  219. Margin="541.5,42,0,0"
  220. FontFamily="Segoe UI"
  221. FontSize="14"
  222. FontWeight="SemiBold"
  223. Foreground="#616469"
  224. LineHeight="22"
  225. Text="{Binding Text_Unregistered}" />
  226. <TextBlock
  227. Margin="675,42,45,0"
  228. FontFamily="Segoe UI"
  229. FontSize="14"
  230. FontWeight="SemiBold"
  231. Foreground="#616469"
  232. LineHeight="22"
  233. Text="{Binding Text_Registered}" />
  234. </Grid>
  235. </Border>
  236. <Grid
  237. Height="438"
  238. Margin="24,0,24,0"
  239. Background="White">
  240. <ListView
  241. Name="lvUsers3"
  242. Margin="16,0,16,0"
  243. BorderThickness="0"
  244. ItemContainerStyle="{StaticResource ItemContainerStyle1}"
  245. ItemsSource="{Binding Items}"
  246. ScrollViewer.HorizontalScrollBarVisibility="Hidden"
  247. ScrollViewer.VerticalScrollBarVisibility="Hidden"
  248. SelectedItem="0">
  249. <ListView.View>
  250. <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
  251. <GridViewColumn
  252. Width="555"
  253. DisplayMemberBinding="{Binding Use}"
  254. Header="Log in to Free Use" />
  255. <GridViewColumn Width="122" Header="Un">
  256. <GridViewColumn.CellTemplate>
  257. <DataTemplate>
  258. <Grid>
  259. <Path
  260. Data="M0.800003 7.03215L6.4 12.4L15.2 0.700012"
  261. Stroke="#1770F4"
  262. StrokeLineJoin="Round"
  263. StrokeThickness="1.8"
  264. Visibility="{Binding UnRe, Converter={StaticResource BoolToVisible}}" />
  265. <Path
  266. Data="M3.60007 3.59998L14.4001 14.4 M14.3999 3.59998L3.59993 14.4"
  267. Stroke="#252629"
  268. StrokeLineJoin="Round"
  269. StrokeThickness="1.8"
  270. Visibility="{Binding UnRe, Converter={StaticResource BoolToVisible2}}" />
  271. </Grid>
  272. </DataTemplate>
  273. </GridViewColumn.CellTemplate>
  274. </GridViewColumn>
  275. <GridViewColumn Width="40" Header="Re">
  276. <GridViewColumn.CellTemplate>
  277. <DataTemplate>
  278. <Grid>
  279. <Path
  280. Data="M0.800003 7.03215L6.4 12.4L15.2 0.700012"
  281. Stroke="#1770F4"
  282. StrokeLineJoin="Round"
  283. StrokeThickness="1.8"
  284. Visibility="{Binding Re, Converter={StaticResource BoolToVisible}}" />
  285. <Path
  286. Data="M3.60007 3.59998L14.4001 14.4 M14.3999 3.59998L3.59993 14.4"
  287. Stroke="#252629"
  288. StrokeLineJoin="Round"
  289. StrokeThickness="1.8"
  290. Visibility="{Binding Re, Converter={StaticResource BoolToVisible2}}" />
  291. </Grid>
  292. </DataTemplate>
  293. </GridViewColumn.CellTemplate>
  294. </GridViewColumn>
  295. </GridView>
  296. </ListView.View>
  297. <ListView.GroupStyle>
  298. <GroupStyle>
  299. <GroupStyle.ContainerStyle>
  300. <Style TargetType="{x:Type GroupItem}">
  301. <Setter Property="Template">
  302. <Setter.Value>
  303. <ControlTemplate>
  304. <Expander IsExpanded="True" Style="{StaticResource ExpanderStyle1}">
  305. <ItemsPresenter />
  306. </Expander>
  307. </ControlTemplate>
  308. </Setter.Value>
  309. </Setter>
  310. </Style>
  311. </GroupStyle.ContainerStyle>
  312. </GroupStyle>
  313. </ListView.GroupStyle>
  314. </ListView>
  315. </Grid>
  316. </StackPanel>
  317. <Button
  318. Width="46"
  319. Height="32"
  320. Margin="8"
  321. HorizontalAlignment="Right"
  322. VerticalAlignment="Top"
  323. Background="Transparent"
  324. IsCancel="True"
  325. Style="{StaticResource CloseBtn}"
  326. WindowChrome.IsHitTestVisibleInChrome="True">
  327. <Path
  328. Width="46"
  329. Height="32"
  330. 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"
  331. Fill="Black" />
  332. </Button>
  333. </Grid>
  334. <Grid Grid.Row="1">
  335. <Grid.Background>
  336. <ImageBrush ImageSource="pack://application:,,,/PDF Master;component/Resources/Service/IAPBottom.png" />
  337. </Grid.Background>
  338. <StackPanel>
  339. <Button
  340. Width="262"
  341. Height="32"
  342. Margin="0,16,0,0"
  343. HorizontalAlignment="Center"
  344. VerticalAlignment="Top"
  345. Command="{Binding GoLoginCommand}"
  346. Content="{Binding Text_Login}"
  347. IsDefault="True"
  348. Style="{StaticResource Btn.cta}" />
  349. <TextBlock
  350. Margin="0,8,0,0"
  351. HorizontalAlignment="Center"
  352. FontFamily="Segoe UI"
  353. FontSize="12"
  354. FontWeight="Normal"
  355. LineHeight="20">
  356. <Hyperlink Command="{Binding GoRegisterCommand}">
  357. <TextBlock Text="{Binding Text_Signup}" />
  358. </Hyperlink>
  359. </TextBlock>
  360. </StackPanel>
  361. </Grid>
  362. </Grid>
  363. </UserControl>