DetailViewer.xaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <UserControl
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:local="clr-namespace:HistoryDLL"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. Width="810"
  8. Height="535"
  9. Background="Transparent"
  10. mc:Ignorable="d"
  11. x:Class="HistoryDLL.DetailViewer">
  12. <UserControl.Resources>
  13. <Storyboard x:Key="sbShowStart">
  14. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="uxRootGrid" Storyboard.TargetProperty="(UIElement.Opacity)">
  15. <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
  16. </DoubleAnimationUsingKeyFrames>
  17. </Storyboard>
  18. <Storyboard x:Key="sbShowStop">
  19. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="uxRootGrid" Storyboard.TargetProperty="(UIElement.Opacity)">
  20. <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
  21. </DoubleAnimationUsingKeyFrames>
  22. </Storyboard>
  23. </UserControl.Resources>
  24. <Grid x:Name="uxDetailviewerGd">
  25. <Grid.RowDefinitions>
  26. <RowDefinition x:Name="uxFirstLayer1" Height="20" />
  27. <RowDefinition Height="*" />
  28. <RowDefinition x:Name="uxFirstLayer2" Height="30" />
  29. <RowDefinition x:Name="uxFirstLayer3" Height="85" />
  30. <RowDefinition x:Name="uxFirstLayer4" Height="60" />
  31. </Grid.RowDefinitions>
  32. <Grid Grid.Row="1">
  33. <Grid.ColumnDefinitions>
  34. <ColumnDefinition x:Name="uxTopLayer1" Width="20" />
  35. <ColumnDefinition Width="*" />
  36. <ColumnDefinition x:Name="uxTopLayer2" Width="20" />
  37. <ColumnDefinition x:Name="uxTopLayer3" Width="275" />
  38. <ColumnDefinition x:Name="uxTopLayer4" Width="20" />
  39. </Grid.ColumnDefinitions>
  40. <!-- 大圖 -->
  41. <Grid Grid.Column="1">
  42. <Grid.RowDefinitions>
  43. <RowDefinition x:Name="uxImgLayer" Height="310" />
  44. <RowDefinition Height="*" />
  45. </Grid.RowDefinitions>
  46. <Grid
  47. x:Name="uxMainMediaShowGd"
  48. Grid.Row="0"
  49. VirtualizingPanel.IsContainerVirtualizable="True"
  50. VirtualizingPanel.IsVirtualizing="True"
  51. VirtualizingPanel.ScrollUnit="Item"
  52. VirtualizingPanel.VirtualizationMode="Recycling" />
  53. <StackPanel
  54. x:Name="uxImgTagList"
  55. Grid.Row="1"
  56. HorizontalAlignment="Center"
  57. Background="Transparent"
  58. Orientation="Horizontal" />
  59. </Grid>
  60. <!-- 文字 -->
  61. <Grid x:Name="uxTextblockContainer" Grid.Column="3">
  62. <Grid.RowDefinitions>
  63. <RowDefinition Height="Auto" />
  64. <RowDefinition Height="*" />
  65. </Grid.RowDefinitions>
  66. <TextBlock
  67. Name="uxTitleText"
  68. Grid.Row="0"
  69. Width="275"
  70. MaxHeight="130"
  71. FontSize="26"
  72. Background="Transparent"
  73. Cursor="None"
  74. Focusable="False"
  75. Foreground="WhiteSmoke"
  76. TextAlignment="Left"
  77. TextTrimming="CharacterEllipsis"
  78. TextWrapping="Wrap" />
  79. <ScrollViewer
  80. x:Name="uxStrMainScroll"
  81. Grid.Row="1"
  82. Background="Transparent"
  83. BorderThickness="0"
  84. HorizontalScrollBarVisibility="Hidden"
  85. ManipulationBoundaryFeedback="uxBoundGrid_ManipulationBoundaryFeedback"
  86. PanningDeceleration="0.005"
  87. PanningMode="VerticalOnly"
  88. VerticalScrollBarVisibility="Hidden">
  89. <StackPanel Name="uxTxtStackPanel" Orientation="Vertical">
  90. <TextBlock
  91. Name="uxDateText"
  92. Width="275"
  93. FontSize="22"
  94. Background="Transparent"
  95. Foreground="WhiteSmoke"
  96. TextWrapping="Wrap" />
  97. <TextBlock
  98. Name="uxContentText"
  99. Width="275"
  100. HorizontalAlignment="Left"
  101. VerticalAlignment="Top"
  102. FontSize="22"
  103. Background="Transparent"
  104. Foreground="WhiteSmoke"
  105. TextAlignment="Left"
  106. TextWrapping="Wrap" />
  107. </StackPanel>
  108. </ScrollViewer>
  109. </Grid>
  110. </Grid>
  111. <Grid
  112. x:Name="uxGalleryGd"
  113. Grid.Row="3"
  114. Margin="20,0,20,0"
  115. Background="Transparent" />
  116. <StackPanel
  117. Grid.Row="4"
  118. HorizontalAlignment="Right"
  119. Orientation="Horizontal">
  120. <!-- Width="96" -->
  121. <RadioButton
  122. x:Name="uxLan0"
  123. Width="0"
  124. Height="35"
  125. Margin="0,0,10,0"
  126. FontSize="16"
  127. Checked="uxLan_Checked"
  128. Style="{DynamicResource uxdetailViewerLanBtn}"
  129. Tag="0" />
  130. <RadioButton
  131. x:Name="uxLan1"
  132. Width="0"
  133. Height="35"
  134. Margin="0,0,10,0"
  135. FontSize="16"
  136. Checked="uxLan_Checked"
  137. Style="{DynamicResource uxdetailViewerLanBtn}"
  138. Tag="1" />
  139. <RadioButton
  140. x:Name="uxLan2"
  141. Width="0"
  142. Height="35"
  143. Margin="0,0,10,0"
  144. FontSize="16"
  145. Checked="uxLan_Checked"
  146. Style="{DynamicResource uxdetailViewerLanBtn}"
  147. Tag="2" />
  148. <RadioButton
  149. x:Name="uxLan3"
  150. Width="0"
  151. Height="35"
  152. Margin="0,0,10,0"
  153. FontSize="16"
  154. Checked="uxLan_Checked"
  155. Style="{DynamicResource uxdetailViewerLanBtn}"
  156. Tag="3" />
  157. <Button
  158. x:Name="uxExitBtn"
  159. Width="35"
  160. Height="35"
  161. Margin="0,0,10,0"
  162. FontSize="16"
  163. Click="uxCloseBtn_Click"
  164. Content="X"
  165. Style="{DynamicResource detailViewerCloseButton}" />
  166. </StackPanel>
  167. </Grid>
  168. </UserControl>