/Application/GUI/Controls/SearchBox.xaml

http://yet-another-music-application.googlecode.com/ · XAML · 48 lines · 32 code · 0 blank · 16 comment · 0 complexity · 719af87611212644aec7bb6c7ec62ea8 MD5 · raw file

  1. <!--SearchBox.xaml
  2. The search box.
  3. = = = = = = = = = =
  4. This code is part of the Stoffi Music Player Project.
  5. Visit our website at: stoffiplayer.com
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version
  9. 3 of the License, or (at your option) any later version.
  10. See stoffiplayer.com/license for more information.
  11. -->
  12. <UserControl x:Class="Stoffi.SearchBox"
  13. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  14. xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
  15. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  16. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  17. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  18. mc:Ignorable="d"
  19. d:DesignHeight="300" d:DesignWidth="300">
  20. <Border BorderBrush="#40FFFFFF" BorderThickness="1" CornerRadius="2" DockPanel.Dock="Right" Height="24" Width="200" x:Name="SearchContainer">
  21. <Border BorderBrush="#80000000" BorderThickness="1,1,0,0" CornerRadius="2">
  22. <Border BorderBrush="#30000000" BorderThickness="0,0,1,1" CornerRadius="2">
  23. <Border BorderBrush="#F0FFFFFF" BorderThickness="1" CornerRadius="1" x:Name="SearchBackground" Background="#C0FFFFFF">
  24. <DockPanel LastChildFill="True">
  25. <Button DockPanel.Dock="Right" Style="{StaticResource SearchButtonStyle}" x:Name="Button" Click="Button_Clicked"/>
  26. <TextBox Background="Transparent" BorderThickness="0" Foreground="#797a7a" FontStyle="Italic" GotFocus="Box_GotFocus"
  27. TextChanged="Box_TextChanged" x:Name="Box" LostFocus="Box_LostFocus" HorizontalAlignment="Stretch"
  28. loc:Translate.Uid="PlaybackSearch" Text="{loc:Translate Text}">
  29. <TextBox.ContextMenu>
  30. <ContextMenu>
  31. <MenuItem x:Name="Menu_Add" loc:Translate.Uid="MenuAddToPlaylist" Header="{loc:Translate Header}">
  32. <MenuItem x:Name="Menu_AddToNew" loc:Translate.Uid="MenuCreateNew" Header="{loc:Translate Header}" FontStyle="Italic" Click="AddToNew_Clicked"/>
  33. </MenuItem>
  34. <MenuItem x:Name="Menu_Remove" loc:Translate.Uid="MenuRemoveFromPlaylist" Header="{loc:Translate Header}" IsEnabled="False"/>
  35. </ContextMenu>
  36. </TextBox.ContextMenu>
  37. </TextBox>
  38. </DockPanel>
  39. </Border>
  40. </Border>
  41. </Border>
  42. </Border>
  43. </UserControl>