ControlsGalleryAppPage.xaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.ControlsGalleryAppPage">
  4. <UserControl.Resources>
  5. <SolidColorBrush x:Key="NavPaneBg" Color="#202020"/>
  6. <SolidColorBrush x:Key="NavContentBg" Color="#141414"/>
  7. <SolidColorBrush x:Key="NavItemHover" Color="#1AFFFFFF"/>
  8. <SolidColorBrush x:Key="NavItemSelected" Color="#0FFFFFFF"/>
  9. <SolidColorBrush x:Key="NavAccent" Color="#60CDFF"/>
  10. <SolidColorBrush x:Key="NavText" Color="#FFFFFF"/>
  11. <SolidColorBrush x:Key="NavTextSecondary" Color="#C8FFFFFF"/>
  12. <SolidColorBrush x:Key="NavBorder" Color="#2EFFFFFF"/>
  13. <SolidColorBrush x:Key="NavSearchBg" Color="#0BFFFFFF"/>
  14. </UserControl.Resources>
  15. <DockPanel>
  16. <ScrollViewer x:Name="InfoPanel" DockPanel.Dock="Right" Width="280">
  17. <StackPanel Margin="16" Spacing="12">
  18. <TextBlock Text="Controls Gallery App" FontSize="15" FontWeight="SemiBold"
  19. Foreground="{DynamicResource SystemControlHighlightAccentBrush}" />
  20. <TextBlock TextWrapping="Wrap" FontSize="12" Opacity="0.7"
  21. Text="Controls gallery app built with DrawerPage CompactInline mode. Dark Fluent palette, accent pill indicator, search box that fades in when open, expandable groups, and Settings pinned to the footer." />
  22. <Separator />
  23. <TextBlock Text="Layout" FontSize="13" FontWeight="SemiBold" />
  24. <StackPanel Spacing="4">
  25. <TextBlock FontSize="12" TextWrapping="Wrap" Text="• CompactInline — icon rail always visible" />
  26. <TextBlock FontSize="12" TextWrapping="Wrap" Text="• CompactDrawerLength = 48 (icon only)" />
  27. <TextBlock FontSize="12" TextWrapping="Wrap" Text="• DrawerLength = 280 (icon + label)" />
  28. <TextBlock FontSize="12" TextWrapping="Wrap" Text="• Left accent pill on selected item" />
  29. <TextBlock FontSize="12" TextWrapping="Wrap" Text="• Search box fades in when open" />
  30. <TextBlock FontSize="12" TextWrapping="Wrap" Text="• Settings pinned to drawer footer" />
  31. </StackPanel>
  32. <Separator />
  33. <TextBlock Text="Key Code" FontSize="13" FontWeight="SemiBold" />
  34. <Border Background="{DynamicResource SystemControlBackgroundBaseLowBrush}"
  35. CornerRadius="4" Padding="8">
  36. <TextBlock FontFamily="Cascadia Code,Consolas,Menlo,monospace"
  37. FontSize="10" TextWrapping="Wrap"
  38. Text="&lt;DrawerPage&#xA; DrawerLayoutBehavior=&quot;CompactInline&quot;&#xA; CompactDrawerLength=&quot;48&quot;&#xA; DrawerLength=&quot;280&quot;&#xA; DrawerBackground=&quot;#202020&quot;&gt;" />
  39. </Border>
  40. </StackPanel>
  41. </ScrollViewer>
  42. <Border BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
  43. BorderThickness="1" CornerRadius="8" ClipToBounds="True">
  44. <DrawerPage x:Name="NavDrawer"
  45. DrawerLayoutBehavior="CompactInline"
  46. CompactDrawerLength="48"
  47. DrawerLength="280"
  48. Background="{StaticResource NavContentBg}"
  49. DrawerBackground="{StaticResource NavPaneBg}">
  50. <!-- ── Drawer header: hamburger + app title ── -->
  51. <DrawerPage.DrawerHeader>
  52. <StackPanel Background="{StaticResource NavPaneBg}">
  53. <!-- Hamburger row -->
  54. <Button x:Name="BtnHamburger" Click="OnHamburgerClick"
  55. Width="48" Height="40" Padding="0" Margin="0,8,0,0"
  56. HorizontalAlignment="Left"
  57. Background="Transparent" BorderThickness="0"
  58. ToolTip.Tip="Navigation menu"
  59. HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  60. <PathIcon Width="16" Height="16"
  61. Foreground="{StaticResource NavText}"
  62. Data="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" />
  63. </Button>
  64. <!-- Search box — fades in when drawer is open -->
  65. <Border Margin="8,8,8,4"
  66. Background="{StaticResource NavSearchBg}"
  67. BorderBrush="{StaticResource NavBorder}"
  68. BorderThickness="1" CornerRadius="4" Height="32"
  69. Classes="openFade"
  70. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}">
  71. <Grid ColumnDefinitions="Auto,*" Margin="8,0">
  72. <PathIcon Grid.Column="0" Width="12" Height="12"
  73. Foreground="{StaticResource NavTextSecondary}"
  74. Data="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
  75. <TextBox x:Name="SearchBox" Grid.Column="1"
  76. PlaceholderText="Search"
  77. Background="Transparent" BorderThickness="0"
  78. Padding="6,0,0,0"
  79. Foreground="{StaticResource NavText}"
  80. PlaceholderForeground="{StaticResource NavTextSecondary}"
  81. FontSize="12"
  82. VerticalAlignment="Center"
  83. VerticalContentAlignment="Center"
  84. TextChanged="OnSearchTextChanged" />
  85. </Grid>
  86. </Border>
  87. </StackPanel>
  88. </DrawerPage.DrawerHeader>
  89. <!-- ── Nav items ── -->
  90. <DrawerPage.Drawer>
  91. <ContentPage Background="Transparent">
  92. <StackPanel Margin="0,4,0,0" Spacing="2">
  93. <!-- What's New (selected) -->
  94. <Button x:Name="BtnWhatsNew" Tag="WhatsNew"
  95. Classes="navItem navItemSelected"
  96. Click="OnNavItemClick" ToolTip.Tip="What's New">
  97. <Panel>
  98. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  99. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  100. Margin="4,0,0,0" />
  101. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  102. <PathIcon Width="16" Height="16" Margin="16,0,0,0"
  103. Foreground="{StaticResource NavText}"
  104. Data="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z" />
  105. <TextBlock Text="What's New" FontSize="13" Margin="12,0,0,0"
  106. Foreground="{StaticResource NavText}"
  107. VerticalAlignment="Center"
  108. Classes="openFade"
  109. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  110. </StackPanel>
  111. </Panel>
  112. </Button>
  113. <!-- All Controls -->
  114. <Button x:Name="BtnAllControls" Tag="AllControls"
  115. Classes="navItem"
  116. Click="OnNavItemClick" ToolTip.Tip="All Controls">
  117. <Panel>
  118. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  119. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  120. Margin="4,0,0,0" />
  121. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  122. <PathIcon Width="16" Height="16" Margin="16,0,0,0"
  123. Foreground="{StaticResource NavText}"
  124. Data="M3 3h8v8H3V3m10 0h8v8h-8V3M3 13h8v8H3v-8m10 0h8v8h-8v-8" />
  125. <TextBlock Text="All Controls" FontSize="13" Margin="12,0,0,0"
  126. Foreground="{StaticResource NavText}"
  127. VerticalAlignment="Center"
  128. Classes="openFade"
  129. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  130. </StackPanel>
  131. </Panel>
  132. </Button>
  133. <!-- Separator -->
  134. <Border Height="1" Background="{StaticResource NavBorder}" Margin="8,4" />
  135. <!-- Basic Input (expandable) -->
  136. <Button x:Name="BtnBasicInput" Tag="BasicInput"
  137. Classes="navItem"
  138. Click="OnNavItemClick" ToolTip.Tip="Basic Input">
  139. <Panel>
  140. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  141. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  142. Margin="4,0,0,0" />
  143. <Grid ColumnDefinitions="Auto,*" VerticalAlignment="Center">
  144. <PathIcon Grid.Column="0" Width="16" Height="16" Margin="16,0,0,0"
  145. Foreground="{StaticResource NavText}"
  146. Data="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z" />
  147. <TextBlock Grid.Column="1" Text="Basic Input" FontSize="13" Margin="12,0,0,0"
  148. Foreground="{StaticResource NavText}"
  149. VerticalAlignment="Center"
  150. Classes="openFade"
  151. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  152. </Grid>
  153. </Panel>
  154. </Button>
  155. <!-- Collections -->
  156. <Button x:Name="BtnCollections" Tag="Collections"
  157. Classes="navItem"
  158. Click="OnNavItemClick" ToolTip.Tip="Collections">
  159. <Panel>
  160. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  161. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  162. Margin="4,0,0,0" />
  163. <Grid ColumnDefinitions="Auto,*" VerticalAlignment="Center">
  164. <PathIcon Grid.Column="0" Width="16" Height="16" Margin="16,0,0,0"
  165. Foreground="{StaticResource NavText}"
  166. Data="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z" />
  167. <TextBlock Grid.Column="1" Text="Collections" FontSize="13" Margin="12,0,0,0"
  168. Foreground="{StaticResource NavText}"
  169. VerticalAlignment="Center"
  170. Classes="openFade"
  171. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  172. </Grid>
  173. </Panel>
  174. </Button>
  175. <!-- Media -->
  176. <Button x:Name="BtnMedia" Tag="Media"
  177. Classes="navItem"
  178. Click="OnNavItemClick" ToolTip.Tip="Media">
  179. <Panel>
  180. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  181. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  182. Margin="4,0,0,0" />
  183. <Grid ColumnDefinitions="Auto,*" VerticalAlignment="Center">
  184. <PathIcon Grid.Column="0" Width="16" Height="16" Margin="16,0,0,0"
  185. Foreground="{StaticResource NavText}"
  186. Data="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1-1-2-2-2zm0 16H3V5h18v14zM8 15c0 1.66 1.34 3 3 3s3-1.34 3-3V9h3V7h-5v8c0 .55-.45 1-1 1s-1-.45-1-1V7H8v8z" />
  187. <TextBlock Grid.Column="1" Text="Media" FontSize="13" Margin="12,0,0,0"
  188. Foreground="{StaticResource NavText}"
  189. VerticalAlignment="Center"
  190. Classes="openFade"
  191. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  192. </Grid>
  193. </Panel>
  194. </Button>
  195. <!-- Menus and Toolbars -->
  196. <Button x:Name="BtnMenus" Tag="Menus"
  197. Classes="navItem"
  198. Click="OnNavItemClick" ToolTip.Tip="Menus and Toolbars">
  199. <Panel>
  200. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  201. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  202. Margin="4,0,0,0" />
  203. <Grid ColumnDefinitions="Auto,*" VerticalAlignment="Center">
  204. <PathIcon Grid.Column="0" Width="16" Height="16" Margin="16,0,0,0"
  205. Foreground="{StaticResource NavText}"
  206. Data="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" />
  207. <TextBlock Grid.Column="1" Text="Menus and Toolbars" FontSize="13" Margin="12,0,0,0"
  208. Foreground="{StaticResource NavText}"
  209. VerticalAlignment="Center"
  210. Classes="openFade"
  211. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  212. </Grid>
  213. </Panel>
  214. </Button>
  215. <!-- Navigation -->
  216. <Button x:Name="BtnNavigation" Tag="Navigation"
  217. Classes="navItem"
  218. Click="OnNavItemClick" ToolTip.Tip="Navigation">
  219. <Panel>
  220. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  221. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  222. Margin="4,0,0,0" />
  223. <Grid ColumnDefinitions="Auto,*" VerticalAlignment="Center">
  224. <PathIcon Grid.Column="0" Width="16" Height="16" Margin="16,0,0,0"
  225. Foreground="{StaticResource NavText}"
  226. Data="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z" />
  227. <TextBlock Grid.Column="1" Text="Navigation" FontSize="13" Margin="12,0,0,0"
  228. Foreground="{StaticResource NavText}"
  229. VerticalAlignment="Center"
  230. Classes="openFade"
  231. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  232. </Grid>
  233. </Panel>
  234. </Button>
  235. <!-- Text -->
  236. <Button x:Name="BtnText" Tag="Text"
  237. Classes="navItem"
  238. Click="OnNavItemClick" ToolTip.Tip="Text">
  239. <Panel>
  240. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  241. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  242. Margin="4,0,0,0" />
  243. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  244. <PathIcon Width="16" Height="16" Margin="16,0,0,0"
  245. Foreground="{StaticResource NavText}"
  246. Data="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z" />
  247. <TextBlock Text="Text" FontSize="13" Margin="12,0,0,0"
  248. Foreground="{StaticResource NavText}"
  249. VerticalAlignment="Center"
  250. Classes="openFade"
  251. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  252. </StackPanel>
  253. </Panel>
  254. </Button>
  255. </StackPanel>
  256. </ContentPage>
  257. </DrawerPage.Drawer>
  258. <!-- ── Settings pinned to footer ── -->
  259. <DrawerPage.DrawerFooter>
  260. <StackPanel Background="{StaticResource NavPaneBg}" Margin="0,0,0,4">
  261. <Border Height="1" Background="{StaticResource NavBorder}" Margin="4,0" />
  262. <Button x:Name="BtnSettings" Tag="Settings"
  263. Classes="navItem"
  264. Click="OnNavItemClick" ToolTip.Tip="Settings"
  265. Margin="0,4,0,4">
  266. <Panel>
  267. <Border Classes="navPill" Width="3" Height="16" CornerRadius="2"
  268. Background="#60CDFF" HorizontalAlignment="Left" VerticalAlignment="Center"
  269. Margin="4,0,0,0" />
  270. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  271. <PathIcon Width="16" Height="16" Margin="16,0,0,0"
  272. Foreground="{StaticResource NavText}"
  273. Data="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94zM12,15.6c-1.98,0-3.6-1.62-3.6-3.6s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
  274. <TextBlock Text="Settings" FontSize="13" Margin="12,0,0,0"
  275. Foreground="{StaticResource NavText}"
  276. VerticalAlignment="Center"
  277. Classes="openFade"
  278. Classes.drawerOpen="{Binding #NavDrawer.IsOpen}" />
  279. </StackPanel>
  280. </Panel>
  281. </Button>
  282. </StackPanel>
  283. </DrawerPage.DrawerFooter>
  284. <!-- ── Detail area — BarHeight=0 hides the navigation bar entirely ── -->
  285. <DrawerPage.Content>
  286. <NavigationPage x:Name="DetailNav"
  287. Background="{StaticResource NavContentBg}"
  288. BarHeight="0" />
  289. </DrawerPage.Content>
  290. </DrawerPage>
  291. </Border>
  292. </DockPanel>
  293. <UserControl.Styles>
  294. <!-- openFade: collapsed (removed from layout) when closed, visible when open -->
  295. <Style Selector=":is(Control).openFade">
  296. <Setter Property="IsVisible" Value="False" />
  297. </Style>
  298. <Style Selector=":is(Control).openFade.drawerOpen">
  299. <Setter Property="IsVisible" Value="True" />
  300. </Style>
  301. <!-- Hamburger button -->
  302. <Style Selector="Button#BtnHamburger /template/ ContentPresenter#PART_ContentPresenter">
  303. <Setter Property="Background" Value="Transparent" />
  304. <Setter Property="CornerRadius" Value="4" />
  305. </Style>
  306. <Style Selector="Button#BtnHamburger:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  307. <Setter Property="Background" Value="#1AFFFFFF" />
  308. </Style>
  309. <Style Selector="Button#BtnHamburger:pressed /template/ ContentPresenter#PART_ContentPresenter">
  310. <Setter Property="Background" Value="#2AFFFFFF" />
  311. </Style>
  312. <!-- Nav item base -->
  313. <Style Selector="Button.navItem">
  314. <Setter Property="HorizontalAlignment" Value="Stretch" />
  315. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  316. <Setter Property="Height" Value="40" />
  317. <Setter Property="Padding" Value="0" />
  318. <Setter Property="CornerRadius" Value="4" />
  319. </Style>
  320. <Style Selector="Button.navItem /template/ ContentPresenter#PART_ContentPresenter">
  321. <Setter Property="Background" Value="Transparent" />
  322. <Setter Property="Padding" Value="0" />
  323. </Style>
  324. <Style Selector="Button.navItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  325. <Setter Property="Background" Value="#1AFFFFFF" />
  326. </Style>
  327. <Style Selector="Button.navItem:pressed /template/ ContentPresenter#PART_ContentPresenter">
  328. <Setter Property="Background" Value="#2AFFFFFF" />
  329. </Style>
  330. <!-- navPill: hidden by default, visible only on selected item -->
  331. <Style Selector="Button.navItem Border.navPill">
  332. <Setter Property="IsVisible" Value="False" />
  333. </Style>
  334. <Style Selector="Button.navItemSelected Border.navPill">
  335. <Setter Property="IsVisible" Value="True" />
  336. </Style>
  337. <!-- SearchBox: fully transparent, suppress all themed states -->
  338. <Style Selector="TextBox#SearchBox">
  339. <Setter Property="MinHeight" Value="0" />
  340. <Setter Property="CaretBrush" Value="{StaticResource NavAccent}" />
  341. <Setter Property="SelectionBrush" Value="#4060CDFF" />
  342. </Style>
  343. <Style Selector="TextBox#SearchBox /template/ Border#PART_BorderElement">
  344. <Setter Property="Background" Value="Transparent" />
  345. <Setter Property="BorderThickness" Value="0" />
  346. <Setter Property="MinHeight" Value="0" />
  347. </Style>
  348. <Style Selector="TextBox#SearchBox:pointerover /template/ Border#PART_BorderElement">
  349. <Setter Property="Background" Value="Transparent" />
  350. <Setter Property="BorderThickness" Value="0" />
  351. </Style>
  352. <Style Selector="TextBox#SearchBox:focus-within /template/ Border#PART_BorderElement">
  353. <Setter Property="Background" Value="Transparent" />
  354. <Setter Property="BorderBrush" Value="Transparent" />
  355. <Setter Property="BorderThickness" Value="0" />
  356. </Style>
  357. <Style Selector="TextBox#SearchBox:error /template/ Border#PART_BorderElement">
  358. <Setter Property="Background" Value="Transparent" />
  359. <Setter Property="BorderThickness" Value="0" />
  360. </Style>
  361. <!-- Nav item selected state -->
  362. <Style Selector="Button.navItemSelected /template/ ContentPresenter#PART_ContentPresenter">
  363. <Setter Property="Background" Value="#0FFFFFFF" />
  364. </Style>
  365. <Style Selector="Button.navItemSelected:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  366. <Setter Property="Background" Value="#1AFFFFFF" />
  367. </Style>
  368. </UserControl.Styles>
  369. </UserControl>