DetailViewer.xaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. <StackPanel
  62. x:Name="uxTextblockContainer"
  63. Grid.Column="3"
  64. Orientation="Vertical">
  65. <TextBlock
  66. Name="uxTitleText"
  67. Width="275"
  68. MaxHeight="130"
  69. FontSize="26"
  70. Background="Transparent"
  71. Cursor="None"
  72. Focusable="False"
  73. Foreground="WhiteSmoke"
  74. TextAlignment="Left"
  75. TextTrimming="CharacterEllipsis"
  76. TextWrapping="Wrap" />
  77. <ScrollViewer
  78. x:Name="uxStrMainScroll"
  79. Height="307"
  80. Background="Transparent"
  81. BorderThickness="0"
  82. HorizontalScrollBarVisibility="Hidden"
  83. ManipulationBoundaryFeedback="uxBoundGrid_ManipulationBoundaryFeedback"
  84. PanningDeceleration="0.005"
  85. PanningMode="VerticalOnly"
  86. VerticalScrollBarVisibility="Hidden">
  87. <StackPanel Name="uxTxtStackPanel" Orientation="Vertical">
  88. <TextBlock
  89. Name="uxDateText"
  90. Width="275"
  91. FontSize="22"
  92. Background="Transparent"
  93. Foreground="WhiteSmoke"
  94. TextWrapping="Wrap" />
  95. <TextBlock
  96. Name="uxContentText"
  97. Width="275"
  98. HorizontalAlignment="Left"
  99. VerticalAlignment="Top"
  100. FontSize="22"
  101. Background="Transparent"
  102. Foreground="WhiteSmoke"
  103. TextAlignment="Left"
  104. TextWrapping="Wrap" />
  105. </StackPanel>
  106. </ScrollViewer>
  107. </StackPanel>
  108. </Grid>
  109. <Grid
  110. x:Name="uxGalleryGd"
  111. Grid.Row="3"
  112. Margin="20,0,20,0"
  113. Background="Transparent" />
  114. <StackPanel
  115. Grid.Row="4"
  116. HorizontalAlignment="Right"
  117. Orientation="Horizontal">
  118. <!-- Width="96" -->
  119. <RadioButton
  120. x:Name="uxLan0"
  121. Width="0"
  122. Height="35"
  123. Margin="0,0,10,0"
  124. FontSize="16"
  125. Checked="uxLan_Checked"
  126. Style="{DynamicResource uxdetailViewerLanBtn}"
  127. Tag="0" />
  128. <RadioButton
  129. x:Name="uxLan1"
  130. Width="0"
  131. Height="35"
  132. Margin="0,0,10,0"
  133. FontSize="16"
  134. Checked="uxLan_Checked"
  135. Style="{DynamicResource uxdetailViewerLanBtn}"
  136. Tag="1" />
  137. <RadioButton
  138. x:Name="uxLan2"
  139. Width="0"
  140. Height="35"
  141. Margin="0,0,10,0"
  142. FontSize="16"
  143. Checked="uxLan_Checked"
  144. Style="{DynamicResource uxdetailViewerLanBtn}"
  145. Tag="2" />
  146. <RadioButton
  147. x:Name="uxLan3"
  148. Width="0"
  149. Height="35"
  150. Margin="0,0,10,0"
  151. FontSize="16"
  152. Checked="uxLan_Checked"
  153. Style="{DynamicResource uxdetailViewerLanBtn}"
  154. Tag="3" />
  155. <Button
  156. x:Name="uxExitBtn"
  157. Width="35"
  158. Height="35"
  159. Margin="0,0,10,0"
  160. FontSize="16"
  161. Click="uxCloseBtn_Click"
  162. Content="X"
  163. Style="{DynamicResource detailViewerCloseButton}" />
  164. </StackPanel>
  165. </Grid>
  166. </UserControl>