StandardStyles.xaml 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  1. <!--
  2. //*********************************************************
  3. //
  4. // Copyright (c) Microsoft. All rights reserved.
  5. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
  6. // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
  7. // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
  8. // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
  9. //
  10. //*********************************************************
  11. -->
  12. <ResourceDictionary
  13. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  14. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  15. <!-- Non-brush values that vary across themes -->
  16. <ResourceDictionary.ThemeDictionaries>
  17. <ResourceDictionary x:Key="Default">
  18. <x:String x:Key="BackButtonGlyph">&#xE071;</x:String>
  19. <x:String x:Key="BackButtonSnappedGlyph">&#xE0BA;</x:String>
  20. </ResourceDictionary>
  21. <ResourceDictionary x:Key="HighContrast">
  22. <x:String x:Key="BackButtonGlyph">&#xE0A6;</x:String>
  23. <x:String x:Key="BackButtonSnappedGlyph">&#xE0C4;</x:String>
  24. </ResourceDictionary>
  25. </ResourceDictionary.ThemeDictionaries>
  26. <!-- RichTextBlock styles -->
  27. <Style x:Key="BasicRichTextStyle" TargetType="RichTextBlock">
  28. <Setter Property="Foreground" Value="{StaticResource ApplicationForegroundThemeBrush}"/>
  29. <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/>
  30. <Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}"/>
  31. <Setter Property="TextTrimming" Value="WordEllipsis"/>
  32. <Setter Property="TextWrapping" Value="Wrap"/>
  33. <Setter Property="Typography.StylisticSet20" Value="True"/>
  34. <Setter Property="Typography.DiscretionaryLigatures" Value="True"/>
  35. </Style>
  36. <Style x:Key="BaselineRichTextStyle" TargetType="RichTextBlock" BasedOn="{StaticResource BasicRichTextStyle}">
  37. <Setter Property="LineHeight" Value="20"/>
  38. <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
  39. <!-- Properly align text along its baseline -->
  40. <Setter Property="RenderTransform">
  41. <Setter.Value>
  42. <TranslateTransform X="-1" Y="4"/>
  43. </Setter.Value>
  44. </Setter>
  45. </Style>
  46. <Style x:Key="ItemRichTextStyle" TargetType="RichTextBlock" BasedOn="{StaticResource BaselineRichTextStyle}"/>
  47. <Style x:Key="BodyRichTextStyle" TargetType="RichTextBlock" BasedOn="{StaticResource BaselineRichTextStyle}">
  48. <Setter Property="FontWeight" Value="SemiLight"/>
  49. </Style>
  50. <!-- TextBlock styles -->
  51. <Style x:Key="BasicTextStyle" TargetType="TextBlock">
  52. <Setter Property="Foreground" Value="{StaticResource ApplicationForegroundThemeBrush}"/>
  53. <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/>
  54. <Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}"/>
  55. <Setter Property="TextTrimming" Value="WordEllipsis"/>
  56. <Setter Property="TextWrapping" Value="Wrap"/>
  57. <Setter Property="Typography.StylisticSet20" Value="True"/>
  58. <Setter Property="Typography.DiscretionaryLigatures" Value="True"/>
  59. </Style>
  60. <Style x:Key="BaselineTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BasicTextStyle}">
  61. <Setter Property="LineHeight" Value="20"/>
  62. <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
  63. <!-- Properly align text along its baseline -->
  64. <Setter Property="RenderTransform">
  65. <Setter.Value>
  66. <TranslateTransform X="-1" Y="4"/>
  67. </Setter.Value>
  68. </Setter>
  69. </Style>
  70. <Style x:Key="HeaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BaselineTextStyle}">
  71. <Setter Property="FontSize" Value="56"/>
  72. <Setter Property="FontWeight" Value="Light"/>
  73. <Setter Property="LineHeight" Value="40"/>
  74. <Setter Property="RenderTransform">
  75. <Setter.Value>
  76. <TranslateTransform X="-2" Y="8"/>
  77. </Setter.Value>
  78. </Setter>
  79. </Style>
  80. <Style x:Key="SubheaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BaselineTextStyle}">
  81. <Setter Property="FontSize" Value="26.667"/>
  82. <Setter Property="FontWeight" Value="Light"/>
  83. <Setter Property="LineHeight" Value="30"/>
  84. <Setter Property="RenderTransform">
  85. <Setter.Value>
  86. <TranslateTransform X="-1" Y="6"/>
  87. </Setter.Value>
  88. </Setter>
  89. </Style>
  90. <Style x:Key="TitleTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BaselineTextStyle}">
  91. <Setter Property="FontWeight" Value="SemiBold"/>
  92. </Style>
  93. <Style x:Key="ItemTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BaselineTextStyle}"/>
  94. <Style x:Key="BodyTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BaselineTextStyle}">
  95. <Setter Property="FontWeight" Value="SemiLight"/>
  96. </Style>
  97. <Style x:Key="CaptionTextStyle" TargetType="TextBlock" BasedOn="{StaticResource BaselineTextStyle}">
  98. <Setter Property="FontSize" Value="12"/>
  99. <Setter Property="Foreground" Value="{StaticResource ApplicationSecondaryForegroundThemeBrush}"/>
  100. </Style>
  101. <!-- Button styles -->
  102. <!--
  103. TextButtonStyle is used to style a Button using subheader-styled text with no other adornment. This
  104. style is used in the GroupedItemsPage as a group header and in the FileOpenPickerPage for triggering
  105. commands.
  106. -->
  107. <Style x:Key="TextButtonStyle" TargetType="Button">
  108. <Setter Property="MinWidth" Value="0"/>
  109. <Setter Property="MinHeight" Value="0"/>
  110. <Setter Property="Template">
  111. <Setter.Value>
  112. <ControlTemplate TargetType="Button">
  113. <Grid Background="Transparent">
  114. <TextBlock
  115. x:Name="Text"
  116. Text="{TemplateBinding Content}"
  117. Margin="3,-7,3,10"
  118. TextWrapping="NoWrap"
  119. Style="{StaticResource SubheaderTextStyle}"/>
  120. <Rectangle
  121. x:Name="FocusVisualWhite"
  122. IsHitTestVisible="False"
  123. Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
  124. StrokeEndLineCap="Square"
  125. StrokeDashArray="1,1"
  126. Opacity="0"
  127. StrokeDashOffset="1.5"/>
  128. <Rectangle
  129. x:Name="FocusVisualBlack"
  130. IsHitTestVisible="False"
  131. Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
  132. StrokeEndLineCap="Square"
  133. StrokeDashArray="1,1"
  134. Opacity="0"
  135. StrokeDashOffset="0.5"/>
  136. <VisualStateManager.VisualStateGroups>
  137. <VisualStateGroup x:Name="CommonStates">
  138. <VisualState x:Name="Normal"/>
  139. <VisualState x:Name="PointerOver">
  140. <Storyboard>
  141. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
  142. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationPointerOverForegroundThemeBrush}"/>
  143. </ObjectAnimationUsingKeyFrames>
  144. </Storyboard>
  145. </VisualState>
  146. <VisualState x:Name="Pressed">
  147. <Storyboard>
  148. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
  149. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationPressedForegroundThemeBrush}"/>
  150. </ObjectAnimationUsingKeyFrames>
  151. </Storyboard>
  152. </VisualState>
  153. <VisualState x:Name="Disabled">
  154. <Storyboard>
  155. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
  156. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledForegroundThemeBrush}"/>
  157. </ObjectAnimationUsingKeyFrames>
  158. </Storyboard>
  159. </VisualState>
  160. </VisualStateGroup>
  161. <VisualStateGroup x:Name="FocusStates">
  162. <VisualState x:Name="Focused">
  163. <Storyboard>
  164. <DoubleAnimation Duration="0" To="1" Storyboard.TargetName="FocusVisualWhite" Storyboard.TargetProperty="Opacity"/>
  165. <DoubleAnimation Duration="0" To="1" Storyboard.TargetName="FocusVisualBlack" Storyboard.TargetProperty="Opacity"/>
  166. </Storyboard>
  167. </VisualState>
  168. <VisualState x:Name="Unfocused"/>
  169. </VisualStateGroup>
  170. </VisualStateManager.VisualStateGroups>
  171. </Grid>
  172. </ControlTemplate>
  173. </Setter.Value>
  174. </Setter>
  175. </Style>
  176. <!--
  177. TextRadioButtonStyle is used to style a RadioButton using subheader-styled text with no other adornment.
  178. This style is used in the SearchResultsPage to allow selection among filters.
  179. -->
  180. <Style x:Key="TextRadioButtonStyle" TargetType="RadioButton">
  181. <Setter Property="MinWidth" Value="0"/>
  182. <Setter Property="MinHeight" Value="0"/>
  183. <Setter Property="Template">
  184. <Setter.Value>
  185. <ControlTemplate TargetType="RadioButton">
  186. <Grid Background="Transparent">
  187. <TextBlock
  188. x:Name="Text"
  189. Text="{TemplateBinding Content}"
  190. Margin="3,-7,3,10"
  191. TextWrapping="NoWrap"
  192. Style="{StaticResource SubheaderTextStyle}"/>
  193. <Rectangle
  194. x:Name="FocusVisualWhite"
  195. IsHitTestVisible="False"
  196. Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
  197. StrokeEndLineCap="Square"
  198. StrokeDashArray="1,1"
  199. Opacity="0"
  200. StrokeDashOffset="1.5"/>
  201. <Rectangle
  202. x:Name="FocusVisualBlack"
  203. IsHitTestVisible="False"
  204. Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
  205. StrokeEndLineCap="Square"
  206. StrokeDashArray="1,1"
  207. Opacity="0"
  208. StrokeDashOffset="0.5"/>
  209. <VisualStateManager.VisualStateGroups>
  210. <VisualStateGroup x:Name="CommonStates">
  211. <VisualState x:Name="Normal"/>
  212. <VisualState x:Name="PointerOver">
  213. <Storyboard>
  214. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
  215. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationPointerOverForegroundThemeBrush}"/>
  216. </ObjectAnimationUsingKeyFrames>
  217. </Storyboard>
  218. </VisualState>
  219. <VisualState x:Name="Pressed">
  220. <Storyboard>
  221. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
  222. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationPressedForegroundThemeBrush}"/>
  223. </ObjectAnimationUsingKeyFrames>
  224. </Storyboard>
  225. </VisualState>
  226. <VisualState x:Name="Disabled">
  227. <Storyboard>
  228. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
  229. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledForegroundThemeBrush}"/>
  230. </ObjectAnimationUsingKeyFrames>
  231. </Storyboard>
  232. </VisualState>
  233. </VisualStateGroup>
  234. <VisualStateGroup x:Name="FocusStates">
  235. <VisualState x:Name="Focused">
  236. <Storyboard>
  237. <DoubleAnimation Duration="0" To="1" Storyboard.TargetName="FocusVisualWhite" Storyboard.TargetProperty="Opacity"/>
  238. <DoubleAnimation Duration="0" To="1" Storyboard.TargetName="FocusVisualBlack" Storyboard.TargetProperty="Opacity"/>
  239. </Storyboard>
  240. </VisualState>
  241. <VisualState x:Name="Unfocused"/>
  242. </VisualStateGroup>
  243. <VisualStateGroup x:Name="CheckStates">
  244. <VisualState x:Name="Checked"/>
  245. <VisualState x:Name="Unchecked">
  246. <Storyboard>
  247. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground">
  248. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ApplicationSecondaryForegroundThemeBrush}"/>
  249. </ObjectAnimationUsingKeyFrames>
  250. </Storyboard>
  251. </VisualState>
  252. <VisualState x:Name="Indeterminate"/>
  253. </VisualStateGroup>
  254. </VisualStateManager.VisualStateGroups>
  255. </Grid>
  256. </ControlTemplate>
  257. </Setter.Value>
  258. </Setter>
  259. </Style>
  260. <!--
  261. AppBarButtonStyle is used to style a Button for use in an App Bar. Content will be centered and should fit within
  262. the 40-pixel radius glyph provided. 16-point Segoe UI Symbol is used for content text to simplify the use of glyphs
  263. from that font. AutomationProperties.Name is used for the text below the glyph.
  264. -->
  265. <Style x:Key="AppBarButtonStyle" TargetType="Button">
  266. <Setter Property="Foreground" Value="{StaticResource AppBarItemForegroundThemeBrush}"/>
  267. <Setter Property="VerticalAlignment" Value="Stretch"/>
  268. <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
  269. <Setter Property="FontWeight" Value="Normal"/>
  270. <Setter Property="FontSize" Value="20"/>
  271. <Setter Property="AutomationProperties.ItemType" Value="App Bar Button"/>
  272. <Setter Property="Template">
  273. <Setter.Value>
  274. <ControlTemplate TargetType="Button">
  275. <Grid Width="100" Background="Transparent">
  276. <StackPanel VerticalAlignment="Top" Margin="0,14,0,13">
  277. <Grid Width="40" Height="40" Margin="0,0,0,5" HorizontalAlignment="Center">
  278. <TextBlock x:Name="BackgroundGlyph" Text="&#xE0A8;" FontFamily="Segoe UI Symbol" FontSize="53.333" Margin="-4,-19,0,0" Foreground="{StaticResource AppBarItemBackgroundThemeBrush}"/>
  279. <TextBlock x:Name="OutlineGlyph" Text="&#xE0A7;" FontFamily="Segoe UI Symbol" FontSize="53.333" Margin="-4,-19,0,0"/>
  280. <ContentPresenter x:Name="Content" HorizontalAlignment="Center" Margin="-1,-1,0,0" VerticalAlignment="Center"/>
  281. </Grid>
  282. <TextBlock
  283. x:Name="TextLabel"
  284. Text="{TemplateBinding AutomationProperties.Name}"
  285. Margin="0,0,2,0"
  286. FontSize="12"
  287. TextAlignment="Center"
  288. Width="88"
  289. MaxHeight="32"
  290. TextTrimming="WordEllipsis"
  291. Style="{StaticResource BasicTextStyle}"/>
  292. </StackPanel>
  293. <Rectangle
  294. x:Name="FocusVisualWhite"
  295. IsHitTestVisible="False"
  296. Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
  297. StrokeEndLineCap="Square"
  298. StrokeDashArray="1,1"
  299. Opacity="0"
  300. StrokeDashOffset="1.5"/>
  301. <Rectangle
  302. x:Name="FocusVisualBlack"
  303. IsHitTestVisible="False"
  304. Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
  305. StrokeEndLineCap="Square"
  306. StrokeDashArray="1,1"
  307. Opacity="0"
  308. StrokeDashOffset="0.5"/>
  309. <VisualStateManager.VisualStateGroups>
  310. <VisualStateGroup x:Name="CommonStates">
  311. <VisualState x:Name="Normal"/>
  312. <VisualState x:Name="PointerOver">
  313. <Storyboard>
  314. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
  315. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemPointerOverBackgroundThemeBrush}"/>
  316. </ObjectAnimationUsingKeyFrames>
  317. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
  318. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemPointerOverForegroundThemeBrush}"/>
  319. </ObjectAnimationUsingKeyFrames>
  320. </Storyboard>
  321. </VisualState>
  322. <VisualState x:Name="Pressed">
  323. <Storyboard>
  324. <DoubleAnimation
  325. Storyboard.TargetName="OutlineGlyph"
  326. Storyboard.TargetProperty="Opacity"
  327. To="0"
  328. Duration="0"/>
  329. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
  330. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemForegroundThemeBrush}"/>
  331. </ObjectAnimationUsingKeyFrames>
  332. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
  333. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemPressedForegroundThemeBrush}"/>
  334. </ObjectAnimationUsingKeyFrames>
  335. </Storyboard>
  336. </VisualState>
  337. <VisualState x:Name="Disabled">
  338. <Storyboard>
  339. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OutlineGlyph" Storyboard.TargetProperty="Foreground">
  340. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemDisabledForegroundThemeBrush}"/>
  341. </ObjectAnimationUsingKeyFrames>
  342. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
  343. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemDisabledForegroundThemeBrush}"/>
  344. </ObjectAnimationUsingKeyFrames>
  345. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextLabel" Storyboard.TargetProperty="Foreground">
  346. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AppBarItemDisabledForegroundThemeBrush}"/>
  347. </ObjectAnimationUsingKeyFrames>
  348. </Storyboard>
  349. </VisualState>
  350. </VisualStateGroup>
  351. <VisualStateGroup x:Name="FocusStates">
  352. <VisualState x:Name="Focused">
  353. <Storyboard>
  354. <DoubleAnimation
  355. Storyboard.TargetName="FocusVisualWhite"
  356. Storyboard.TargetProperty="Opacity"
  357. To="1"
  358. Duration="0"/>
  359. <DoubleAnimation
  360. Storyboard.TargetName="FocusVisualBlack"
  361. Storyboard.TargetProperty="Opacity"
  362. To="1"
  363. Duration="0"/>
  364. </Storyboard>
  365. </VisualState>
  366. <VisualState x:Name="Unfocused" />
  367. <VisualState x:Name="PointerFocused" />
  368. </VisualStateGroup>
  369. </VisualStateManager.VisualStateGroups>
  370. </Grid>
  371. </ControlTemplate>
  372. </Setter.Value>
  373. </Setter>
  374. </Style>
  375. <!-- Standard App Bar buttons -->
  376. <Style x:Key="SkipBackAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  377. <Setter Property="AutomationProperties.AutomationId" Value="SkipBackAppBarButton"/>
  378. <Setter Property="AutomationProperties.Name" Value="Skip Back"/>
  379. <Setter Property="Content" Value="&#xE100;"/>
  380. </Style>
  381. <Style x:Key="SkipAheadAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  382. <Setter Property="AutomationProperties.AutomationId" Value="SkipAheadAppBarButton"/>
  383. <Setter Property="AutomationProperties.Name" Value="Skip Ahead"/>
  384. <Setter Property="Content" Value="&#xE101;"/>
  385. </Style>
  386. <Style x:Key="PlayAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  387. <Setter Property="AutomationProperties.AutomationId" Value="PlayAppBarButton"/>
  388. <Setter Property="AutomationProperties.Name" Value="Play"/>
  389. <Setter Property="Content" Value="&#xE102;"/>
  390. </Style>
  391. <Style x:Key="PauseAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  392. <Setter Property="AutomationProperties.AutomationId" Value="PauseAppBarButton"/>
  393. <Setter Property="AutomationProperties.Name" Value="Pause"/>
  394. <Setter Property="Content" Value="&#xE103;"/>
  395. </Style>
  396. <Style x:Key="EditAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  397. <Setter Property="AutomationProperties.AutomationId" Value="EditAppBarButton"/>
  398. <Setter Property="AutomationProperties.Name" Value="Edit"/>
  399. <Setter Property="Content" Value="&#xE104;"/>
  400. </Style>
  401. <Style x:Key="SaveAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  402. <Setter Property="AutomationProperties.AutomationId" Value="SaveAppBarButton"/>
  403. <Setter Property="AutomationProperties.Name" Value="Save"/>
  404. <Setter Property="Content" Value="&#xE105;"/>
  405. </Style>
  406. <Style x:Key="DeleteAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  407. <Setter Property="AutomationProperties.AutomationId" Value="DeleteAppBarButton"/>
  408. <Setter Property="AutomationProperties.Name" Value="Delete"/>
  409. <Setter Property="Content" Value="&#xE106;"/>
  410. </Style>
  411. <Style x:Key="DiscardAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  412. <Setter Property="AutomationProperties.AutomationId" Value="DiscardAppBarButton"/>
  413. <Setter Property="AutomationProperties.Name" Value="Discard"/>
  414. <Setter Property="Content" Value="&#xE107;"/>
  415. </Style>
  416. <Style x:Key="RemoveAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  417. <Setter Property="AutomationProperties.AutomationId" Value="RemoveAppBarButton"/>
  418. <Setter Property="AutomationProperties.Name" Value="Remove"/>
  419. <Setter Property="Content" Value="&#xE108;"/>
  420. </Style>
  421. <Style x:Key="AddAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  422. <Setter Property="AutomationProperties.AutomationId" Value="AddAppBarButton"/>
  423. <Setter Property="AutomationProperties.Name" Value="Add"/>
  424. <Setter Property="Content" Value="&#xE109;"/>
  425. </Style>
  426. <Style x:Key="NoAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  427. <Setter Property="AutomationProperties.AutomationId" Value="NoAppBarButton"/>
  428. <Setter Property="AutomationProperties.Name" Value="No"/>
  429. <Setter Property="Content" Value="&#xE10A;"/>
  430. </Style>
  431. <Style x:Key="YesAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  432. <Setter Property="AutomationProperties.AutomationId" Value="YesAppBarButton"/>
  433. <Setter Property="AutomationProperties.Name" Value="Yes"/>
  434. <Setter Property="Content" Value="&#xE10B;"/>
  435. </Style>
  436. <Style x:Key="MoreAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  437. <Setter Property="AutomationProperties.AutomationId" Value="MoreAppBarButton"/>
  438. <Setter Property="AutomationProperties.Name" Value="More"/>
  439. <Setter Property="Content" Value="&#xE10C;"/>
  440. </Style>
  441. <Style x:Key="RedoAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  442. <Setter Property="AutomationProperties.AutomationId" Value="RedoAppBarButton"/>
  443. <Setter Property="AutomationProperties.Name" Value="Redo"/>
  444. <Setter Property="Content" Value="&#xE10D;"/>
  445. </Style>
  446. <Style x:Key="UndoAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  447. <Setter Property="AutomationProperties.AutomationId" Value="UndoAppBarButton"/>
  448. <Setter Property="AutomationProperties.Name" Value="Undo"/>
  449. <Setter Property="Content" Value="&#xE10E;"/>
  450. </Style>
  451. <Style x:Key="HomeAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  452. <Setter Property="AutomationProperties.AutomationId" Value="HomeAppBarButton"/>
  453. <Setter Property="AutomationProperties.Name" Value="Home"/>
  454. <Setter Property="Content" Value="&#xE10F;"/>
  455. </Style>
  456. <Style x:Key="OutAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  457. <Setter Property="AutomationProperties.AutomationId" Value="OutAppBarButton"/>
  458. <Setter Property="AutomationProperties.Name" Value="Out"/>
  459. <Setter Property="Content" Value="&#xE110;"/>
  460. </Style>
  461. <Style x:Key="NextAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  462. <Setter Property="AutomationProperties.AutomationId" Value="NextAppBarButton"/>
  463. <Setter Property="AutomationProperties.Name" Value="Next"/>
  464. <Setter Property="Content" Value="&#xE111;"/>
  465. </Style>
  466. <Style x:Key="PreviousAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  467. <Setter Property="AutomationProperties.AutomationId" Value="PreviousAppBarButton"/>
  468. <Setter Property="AutomationProperties.Name" Value="Previous"/>
  469. <Setter Property="Content" Value="&#xE112;"/>
  470. </Style>
  471. <Style x:Key="FavoriteAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  472. <Setter Property="AutomationProperties.AutomationId" Value="FavoriteAppBarButton"/>
  473. <Setter Property="AutomationProperties.Name" Value="Favorite"/>
  474. <Setter Property="Content" Value="&#xE113;"/>
  475. </Style>
  476. <Style x:Key="PhotoAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  477. <Setter Property="AutomationProperties.AutomationId" Value="PhotoAppBarButton"/>
  478. <Setter Property="AutomationProperties.Name" Value="Photo"/>
  479. <Setter Property="Content" Value="&#xE114;"/>
  480. </Style>
  481. <Style x:Key="SettingsAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  482. <Setter Property="AutomationProperties.AutomationId" Value="SettingsAppBarButton"/>
  483. <Setter Property="AutomationProperties.Name" Value="Settings"/>
  484. <Setter Property="Content" Value="&#xE115;"/>
  485. </Style>
  486. <Style x:Key="VideoAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  487. <Setter Property="AutomationProperties.AutomationId" Value="VideoAppBarButton"/>
  488. <Setter Property="AutomationProperties.Name" Value="Video"/>
  489. <Setter Property="Content" Value="&#xE116;"/>
  490. </Style>
  491. <Style x:Key="RefreshAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  492. <Setter Property="AutomationProperties.AutomationId" Value="RefreshAppBarButton"/>
  493. <Setter Property="AutomationProperties.Name" Value="Refresh"/>
  494. <Setter Property="Content" Value="&#xE117;"/>
  495. </Style>
  496. <Style x:Key="DownloadAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  497. <Setter Property="AutomationProperties.AutomationId" Value="DownloadAppBarButton"/>
  498. <Setter Property="AutomationProperties.Name" Value="Download"/>
  499. <Setter Property="Content" Value="&#xE118;"/>
  500. </Style>
  501. <Style x:Key="MailAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  502. <Setter Property="AutomationProperties.AutomationId" Value="MailAppBarButton"/>
  503. <Setter Property="AutomationProperties.Name" Value="Mail"/>
  504. <Setter Property="Content" Value="&#xE119;"/>
  505. </Style>
  506. <Style x:Key="SearchAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  507. <Setter Property="AutomationProperties.AutomationId" Value="SearchAppBarButton"/>
  508. <Setter Property="AutomationProperties.Name" Value="Search"/>
  509. <Setter Property="Content" Value="&#xE11A;"/>
  510. </Style>
  511. <Style x:Key="HelpAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  512. <Setter Property="AutomationProperties.AutomationId" Value="HelpAppBarButton"/>
  513. <Setter Property="AutomationProperties.Name" Value="Help"/>
  514. <Setter Property="Content" Value="&#xE11B;"/>
  515. </Style>
  516. <Style x:Key="UploadAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  517. <Setter Property="AutomationProperties.AutomationId" Value="UploadAppBarButton"/>
  518. <Setter Property="AutomationProperties.Name" Value="Upload"/>
  519. <Setter Property="Content" Value="&#xE11C;"/>
  520. </Style>
  521. <Style x:Key="PinAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  522. <Setter Property="AutomationProperties.AutomationId" Value="PinAppBarButton"/>
  523. <Setter Property="AutomationProperties.Name" Value="Pin"/>
  524. <Setter Property="Content" Value="&#xE141;"/>
  525. </Style>
  526. <Style x:Key="UnpinAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
  527. <Setter Property="AutomationProperties.AutomationId" Value="UnpinAppBarButton"/>
  528. <Setter Property="AutomationProperties.Name" Value="Unpin"/>
  529. <Setter Property="Content" Value="&#xE196;"/>
  530. </Style>
  531. <!-- Title area styles -->
  532. <Style x:Key="PageHeaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource HeaderTextStyle}">
  533. <Setter Property="TextWrapping" Value="NoWrap"/>
  534. <Setter Property="VerticalAlignment" Value="Bottom"/>
  535. <Setter Property="Margin" Value="0,0,40,40"/>
  536. </Style>
  537. <Style x:Key="PageSubheaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource SubheaderTextStyle}">
  538. <Setter Property="TextWrapping" Value="NoWrap"/>
  539. <Setter Property="VerticalAlignment" Value="Bottom"/>
  540. <Setter Property="Margin" Value="0,0,0,40"/>
  541. </Style>
  542. <Style x:Key="SnappedPageHeaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource PageSubheaderTextStyle}">
  543. <Setter Property="Margin" Value="0,0,18,40"/>
  544. </Style>
  545. <!--
  546. BackButtonStyle is used to style a Button for use in the title area of a page. Margins appropriate for
  547. the conventional page layout are included as part of the style.
  548. -->
  549. <Style x:Key="BackButtonStyle" TargetType="Button">
  550. <Setter Property="MinWidth" Value="0"/>
  551. <Setter Property="Width" Value="48"/>
  552. <Setter Property="Height" Value="48"/>
  553. <Setter Property="Margin" Value="36,0,36,36"/>
  554. <Setter Property="VerticalAlignment" Value="Bottom"/>
  555. <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
  556. <Setter Property="FontWeight" Value="Normal"/>
  557. <Setter Property="FontSize" Value="56"/>
  558. <Setter Property="AutomationProperties.AutomationId" Value="BackButton"/>
  559. <Setter Property="AutomationProperties.Name" Value="Back"/>
  560. <Setter Property="AutomationProperties.ItemType" Value="Navigation Button"/>
  561. <Setter Property="Template">
  562. <Setter.Value>
  563. <ControlTemplate TargetType="Button">
  564. <Grid x:Name="RootGrid">
  565. <Grid Margin="-1,-16,0,0">
  566. <TextBlock x:Name="BackgroundGlyph" Text="&#xE0A8;" Foreground="{StaticResource BackButtonBackgroundThemeBrush}"/>
  567. <TextBlock x:Name="NormalGlyph" Text="{StaticResource BackButtonGlyph}" Foreground="{StaticResource BackButtonForegroundThemeBrush}"/>
  568. <TextBlock x:Name="ArrowGlyph" Text="&#xE0A6;" Foreground="{StaticResource BackButtonPressedForegroundThemeBrush}" Opacity="0"/>
  569. </Grid>
  570. <Rectangle
  571. x:Name="FocusVisualWhite"
  572. IsHitTestVisible="False"
  573. Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
  574. StrokeEndLineCap="Square"
  575. StrokeDashArray="1,1"
  576. Opacity="0"
  577. StrokeDashOffset="1.5"/>
  578. <Rectangle
  579. x:Name="FocusVisualBlack"
  580. IsHitTestVisible="False"
  581. Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
  582. StrokeEndLineCap="Square"
  583. StrokeDashArray="1,1"
  584. Opacity="0"
  585. StrokeDashOffset="0.5"/>
  586. <VisualStateManager.VisualStateGroups>
  587. <VisualStateGroup x:Name="CommonStates">
  588. <VisualState x:Name="Normal" />
  589. <VisualState x:Name="PointerOver">
  590. <Storyboard>
  591. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
  592. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BackButtonPointerOverBackgroundThemeBrush}"/>
  593. </ObjectAnimationUsingKeyFrames>
  594. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalGlyph" Storyboard.TargetProperty="Foreground">
  595. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BackButtonPointerOverForegroundThemeBrush}"/>
  596. </ObjectAnimationUsingKeyFrames>
  597. </Storyboard>
  598. </VisualState>
  599. <VisualState x:Name="Pressed">
  600. <Storyboard>
  601. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
  602. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BackButtonForegroundThemeBrush}"/>
  603. </ObjectAnimationUsingKeyFrames>
  604. <DoubleAnimation
  605. Storyboard.TargetName="ArrowGlyph"
  606. Storyboard.TargetProperty="Opacity"
  607. To="1"
  608. Duration="0"/>
  609. <DoubleAnimation
  610. Storyboard.TargetName="NormalGlyph"
  611. Storyboard.TargetProperty="Opacity"
  612. To="0"
  613. Duration="0"/>
  614. </Storyboard>
  615. </VisualState>
  616. <VisualState x:Name="Disabled">
  617. <Storyboard>
  618. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Visibility">
  619. <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
  620. </ObjectAnimationUsingKeyFrames>
  621. </Storyboard>
  622. </VisualState>
  623. </VisualStateGroup>
  624. <VisualStateGroup x:Name="FocusStates">
  625. <VisualState x:Name="Focused">
  626. <Storyboard>
  627. <DoubleAnimation
  628. Storyboard.TargetName="FocusVisualWhite"
  629. Storyboard.TargetProperty="Opacity"
  630. To="1"
  631. Duration="0"/>
  632. <DoubleAnimation
  633. Storyboard.TargetName="FocusVisualBlack"
  634. Storyboard.TargetProperty="Opacity"
  635. To="1"
  636. Duration="0"/>
  637. </Storyboard>
  638. </VisualState>
  639. <VisualState x:Name="Unfocused" />
  640. <VisualState x:Name="PointerFocused" />
  641. </VisualStateGroup>
  642. </VisualStateManager.VisualStateGroups>
  643. </Grid>
  644. </ControlTemplate>
  645. </Setter.Value>
  646. </Setter>
  647. </Style>
  648. <!--
  649. PortraitBackButtonStyle is used to style a Button for use in the title area of a portrait page. Margins appropriate
  650. for the conventional page layout are included as part of the style.
  651. -->
  652. <Style x:Key="PortraitBackButtonStyle" TargetType="Button" BasedOn="{StaticResource BackButtonStyle}">
  653. <Setter Property="Margin" Value="26,0,26,36"/>
  654. </Style>
  655. <!--
  656. SnappedBackButtonStyle is used to style a Button for use in the title area of a snapped page. Margins appropriate
  657. for the conventional page layout are included as part of the style.
  658. The obvious duplication here is necessary as the glyphs used in snapped are not merely smaller versions of the same
  659. glyph but are actually distinct.
  660. -->
  661. <Style x:Key="SnappedBackButtonStyle" TargetType="Button">
  662. <Setter Property="MinWidth" Value="0"/>
  663. <Setter Property="Margin" Value="20,0,0,0"/>
  664. <Setter Property="VerticalAlignment" Value="Bottom"/>
  665. <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
  666. <Setter Property="FontWeight" Value="Normal"/>
  667. <Setter Property="FontSize" Value="26.66667"/>
  668. <Setter Property="AutomationProperties.AutomationId" Value="BackButton"/>
  669. <Setter Property="AutomationProperties.Name" Value="Back"/>
  670. <Setter Property="AutomationProperties.ItemType" Value="Navigation Button"/>
  671. <Setter Property="Template">
  672. <Setter.Value>
  673. <ControlTemplate TargetType="Button">
  674. <Grid x:Name="RootGrid" Width="36" Height="36" Margin="-3,0,7,33">
  675. <Grid Margin="-1,-1,0,0">
  676. <TextBlock x:Name="BackgroundGlyph" Text="&#xE0D4;" Foreground="{StaticResource BackButtonBackgroundThemeBrush}"/>
  677. <TextBlock x:Name="NormalGlyph" Text="{StaticResource BackButtonSnappedGlyph}" Foreground="{StaticResource BackButtonForegroundThemeBrush}"/>
  678. <TextBlock x:Name="ArrowGlyph" Text="&#xE0C4;" Foreground="{StaticResource BackButtonPressedForegroundThemeBrush}" Opacity="0"/>
  679. </Grid>
  680. <Rectangle
  681. x:Name="FocusVisualWhite"
  682. IsHitTestVisible="False"
  683. Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}"
  684. StrokeEndLineCap="Square"
  685. StrokeDashArray="1,1"
  686. Opacity="0"
  687. StrokeDashOffset="1.5"/>
  688. <Rectangle
  689. x:Name="FocusVisualBlack"
  690. IsHitTestVisible="False"
  691. Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}"
  692. StrokeEndLineCap="Square"
  693. StrokeDashArray="1,1"
  694. Opacity="0"
  695. StrokeDashOffset="0.5"/>
  696. <VisualStateManager.VisualStateGroups>
  697. <VisualStateGroup x:Name="CommonStates">
  698. <VisualState x:Name="Normal" />
  699. <VisualState x:Name="PointerOver">
  700. <Storyboard>
  701. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
  702. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BackButtonPointerOverBackgroundThemeBrush}"/>
  703. </ObjectAnimationUsingKeyFrames>
  704. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalGlyph" Storyboard.TargetProperty="Foreground">
  705. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BackButtonPointerOverForegroundThemeBrush}"/>
  706. </ObjectAnimationUsingKeyFrames>
  707. </Storyboard>
  708. </VisualState>
  709. <VisualState x:Name="Pressed">
  710. <Storyboard>
  711. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGlyph" Storyboard.TargetProperty="Foreground">
  712. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BackButtonForegroundThemeBrush}"/>
  713. </ObjectAnimationUsingKeyFrames>
  714. <DoubleAnimation
  715. Storyboard.TargetName="ArrowGlyph"
  716. Storyboard.TargetProperty="Opacity"
  717. To="1"
  718. Duration="0"/>
  719. <DoubleAnimation
  720. Storyboard.TargetName="NormalGlyph"
  721. Storyboard.TargetProperty="Opacity"
  722. To="0"
  723. Duration="0"/>
  724. </Storyboard>
  725. </VisualState>
  726. <VisualState x:Name="Disabled">
  727. <Storyboard>
  728. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Visibility">
  729. <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
  730. </ObjectAnimationUsingKeyFrames>
  731. </Storyboard>
  732. </VisualState>
  733. </VisualStateGroup>
  734. <VisualStateGroup x:Name="FocusStates">
  735. <VisualState x:Name="Focused">
  736. <Storyboard>
  737. <DoubleAnimation
  738. Storyboard.TargetName="FocusVisualWhite"
  739. Storyboard.TargetProperty="Opacity"
  740. To="1"
  741. Duration="0"/>
  742. <DoubleAnimation
  743. Storyboard.TargetName="FocusVisualBlack"
  744. Storyboard.TargetProperty="Opacity"
  745. To="1"
  746. Duration="0"/>
  747. </Storyboard>
  748. </VisualState>
  749. <VisualState x:Name="Unfocused" />
  750. <VisualState x:Name="PointerFocused" />
  751. </VisualStateGroup>
  752. </VisualStateManager.VisualStateGroups>
  753. </Grid>
  754. </ControlTemplate>
  755. </Setter.Value>
  756. </Setter>
  757. </Style>
  758. <!-- Item templates -->
  759. <!-- Grid-appropriate 250 pixel square item template as seen in the GroupedItemsPage and ItemsPage -->
  760. <DataTemplate x:Key="Standard250x250ItemTemplate">
  761. <Grid HorizontalAlignment="Left" Width="250" Height="250">
  762. <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
  763. <Image Source="{Binding Image}" Stretch="UniformToFill"/>
  764. </Border>
  765. <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
  766. <TextBlock Text="{Binding Title}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextStyle}" Height="60" Margin="15,0,15,0"/>
  767. <TextBlock Text="{Binding Subtitle}" Foreground="{StaticResource ListViewItemOverlaySecondaryForegroundThemeBrush}" Style="{StaticResource CaptionTextStyle}" TextWrapping="NoWrap" Margin="15,0,15,10"/>
  768. </StackPanel>
  769. </Grid>
  770. </DataTemplate>
  771. <!-- Grid-appropriate 500 by 130 pixel item template as seen in the GroupDetailPage -->
  772. <DataTemplate x:Key="Standard500x130ItemTemplate">
  773. <Grid Height="110" Width="480" Margin="10">
  774. <Grid.ColumnDefinitions>
  775. <ColumnDefinition Width="Auto"/>
  776. <ColumnDefinition Width="*"/>
  777. </Grid.ColumnDefinitions>
  778. <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" Width="110" Height="110">
  779. <Image Source="{Binding Image}" Stretch="UniformToFill"/>
  780. </Border>
  781. <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="10,0,0,0">
  782. <TextBlock Text="{Binding Title}" Style="{StaticResource TitleTextStyle}" TextWrapping="NoWrap"/>
  783. <TextBlock Text="{Binding Subtitle}" Style="{StaticResource CaptionTextStyle}" TextWrapping="NoWrap"/>
  784. <TextBlock Text="{Binding Description}" Style="{StaticResource BodyTextStyle}" MaxHeight="60"/>
  785. </StackPanel>
  786. </Grid>
  787. </DataTemplate>
  788. <!-- List-appropriate 130 pixel high item template as seen in the SplitPage -->
  789. <DataTemplate x:Key="Standard130ItemTemplate">
  790. <Grid Height="110" Margin="6">
  791. <Grid.ColumnDefinitions>
  792. <ColumnDefinition Width="Auto"/>
  793. <ColumnDefinition Width="*"/>
  794. </Grid.ColumnDefinitions>
  795. <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" Width="110" Height="110">
  796. <Image Source="{Binding Image}" Stretch="UniformToFill"/>
  797. </Border>
  798. <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="10,0,0,0">
  799. <TextBlock Text="{Binding Title}" Style="{StaticResource TitleTextStyle}" TextWrapping="NoWrap"/>
  800. <TextBlock Text="{Binding Subtitle}" Style="{StaticResource CaptionTextStyle}" TextWrapping="NoWrap"/>
  801. <TextBlock Text="{Binding Description}" Style="{StaticResource BodyTextStyle}" MaxHeight="60"/>
  802. </StackPanel>
  803. </Grid>
  804. </DataTemplate>
  805. <!--
  806. List-appropriate 80 pixel high item template as seen in the SplitPage when Filled, and
  807. the following pages when snapped: GroupedItemsPage, GroupDetailPage, and ItemsPage
  808. -->
  809. <DataTemplate x:Key="Standard80ItemTemplate">
  810. <Grid Margin="6">
  811. <Grid.ColumnDefinitions>
  812. <ColumnDefinition Width="Auto"/>
  813. <ColumnDefinition Width="*"/>
  814. </Grid.ColumnDefinitions>
  815. <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" Width="60" Height="60">
  816. <Image Source="{Binding Image}" Stretch="UniformToFill"/>
  817. </Border>
  818. <StackPanel Grid.Column="1" Margin="10,0,0,0">
  819. <TextBlock Text="{Binding Title}" Style="{StaticResource ItemTextStyle}" MaxHeight="40"/>
  820. <TextBlock Text="{Binding Subtitle}" Style="{StaticResource CaptionTextStyle}" TextWrapping="NoWrap"/>
  821. </StackPanel>
  822. </Grid>
  823. </DataTemplate>
  824. <!-- Grid-appropriate 300 by 70 pixel item template as seen in the SearchResultsPage -->
  825. <DataTemplate x:Key="StandardSmallIcon300x70ItemTemplate">
  826. <Grid Width="300">
  827. <Grid.ColumnDefinitions>
  828. <ColumnDefinition Width="Auto"/>
  829. <ColumnDefinition Width="*"/>
  830. </Grid.ColumnDefinitions>
  831. <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" Margin="10,10,0,20" Width="40" Height="40">
  832. <Image Source="{Binding Image}" Stretch="UniformToFill"/>
  833. </Border>
  834. <StackPanel Grid.Column="1" Margin="10,0,10,10">
  835. <TextBlock Text="{Binding Title}" Style="{StaticResource BodyTextStyle}" TextWrapping="NoWrap"/>
  836. <TextBlock Text="{Binding Subtitle}" Style="{StaticResource BodyTextStyle}" Foreground="{StaticResource ApplicationSecondaryForegroundThemeBrush}" Height="40"/>
  837. </StackPanel>
  838. </Grid>
  839. </DataTemplate>
  840. <!-- List-appropriate 70 pixel high item template as seen in the SearchResultsPage when Snapped -->
  841. <DataTemplate x:Key="StandardSmallIcon70ItemTemplate">
  842. <Grid Margin="6">
  843. <Grid.ColumnDefinitions>
  844. <ColumnDefinition Width="Auto"/>
  845. <ColumnDefinition Width="*"/>
  846. </Grid.ColumnDefinitions>
  847. <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" Margin="0,0,0,10" Width="40" Height="40">
  848. <Image Source="{Binding Image}" Stretch="UniformToFill"/>
  849. </Border>
  850. <StackPanel Grid.Column="1" Margin="10,-10,0,0">
  851. <TextBlock Text="{Binding Title}" Style="{StaticResource BodyTextStyle}" TextWrapping="NoWrap"/>
  852. <TextBlock Text="{Binding Subtitle}" Style="{StaticResource BodyTextStyle}" Foreground="{StaticResource ApplicationSecondaryForegroundThemeBrush}" Height="40"/>
  853. </StackPanel>
  854. </Grid>
  855. </DataTemplate>
  856. <!--
  857. 190x130 pixel item template for displaying file previews as seen in the FileOpenPickerPage
  858. Includes an elaborate tooltip to display title and description text
  859. -->
  860. <DataTemplate x:Key="StandardFileWithTooltip190x130ItemTemplate">
  861. <Grid>
  862. <Grid Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
  863. <Image
  864. Source="{Binding Image}"
  865. Width="190"
  866. Height="130"
  867. HorizontalAlignment="Center"
  868. VerticalAlignment="Center"
  869. Stretch="Uniform"/>
  870. </Grid>
  871. <ToolTipService.Placement>Mouse</ToolTipService.Placement>
  872. <ToolTipService.ToolTip>
  873. <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
  874. <Grid.ColumnDefinitions>
  875. <ColumnDefinition Width="Auto"/>
  876. <ColumnDefinition Width="*"/>
  877. </Grid.ColumnDefinitions>
  878. <Grid Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" Margin="20">
  879. <Image
  880. Source="{Binding Image}"
  881. Width="160"
  882. Height="160"
  883. HorizontalAlignment="Center"
  884. VerticalAlignment="Center"
  885. Stretch="Uniform"/>
  886. </Grid>
  887. <StackPanel Width="200" Grid.Column="1" Margin="0,20,20,20">
  888. <TextBlock Text="{Binding Title}" TextWrapping="NoWrap" Style="{StaticResource BodyTextStyle}"/>
  889. <TextBlock Text="{Binding Description}" MaxHeight="140" Foreground="{StaticResource ApplicationSecondaryForegroundThemeBrush}" Style="{StaticResource BodyTextStyle}"/>
  890. </StackPanel>
  891. </Grid>
  892. </ToolTipService.ToolTip>
  893. </Grid>
  894. </DataTemplate>
  895. <!-- Default to 10-pixel spacing between grid items (after accounting for 4-pixel insets for focus) -->
  896. <Style TargetType="GridViewItem">
  897. <Setter Property="Margin" Value="0,0,2,2" />
  898. </Style>
  899. <!-- ScrollViewer styles -->
  900. <Style x:Key="HorizontalScrollViewerStyle" TargetType="ScrollViewer">
  901. <Setter Property="HorizontalScrollBarVisibility" Value="Auto"/>
  902. <Setter Property="VerticalScrollBarVisibility" Value="Disabled"/>
  903. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Enabled" />
  904. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Disabled" />
  905. <Setter Property="ScrollViewer.ZoomMode" Value="Disabled" />
  906. </Style>
  907. <Style x:Key="VerticalScrollViewerStyle" TargetType="ScrollViewer">
  908. <Setter Property="HorizontalScrollBarVisibility" Value="Disabled"/>
  909. <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
  910. <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Disabled" />
  911. <Setter Property="ScrollViewer.VerticalScrollMode" Value="Enabled" />
  912. <Setter Property="ScrollViewer.ZoomMode" Value="Disabled" />
  913. </Style>
  914. <!-- Page layout roots typically use entrance animations and a theme-appropriate background color -->
  915. <Style x:Key="LayoutRootStyle" TargetType="Panel">
  916. <Setter Property="Background" Value="{StaticResource ApplicationPageBackgroundThemeBrush}"/>
  917. <Setter Property="ChildrenTransitions">
  918. <Setter.Value>
  919. <TransitionCollection>
  920. <EntranceThemeTransition/>
  921. </TransitionCollection>
  922. </Setter.Value>
  923. </Setter>
  924. </Style>
  925. </ResourceDictionary>