PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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