PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/Application/GUI/Controls/Bookmark.xaml

http://yet-another-music-application.googlecode.com/
XAML | 44 lines | 28 code | 0 blank | 16 comment | 0 complexity | 0b7ef94caa7acaa34a4e1ecac1690ada MD5 | raw file
 1<!--Bookmark.xaml
 2	
 3	A bookmark shown over the track timeline.
 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.Bookmark"
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			 xmlns:local="clr-namespace:Stoffi"
24			 mc:Ignorable="d" 
25			 MouseLeftButtonDown="Bookmark_MouseLeftButtonDown"
26			 d:DesignHeight="300" d:DesignWidth="300">
27	<DockPanel>
28		<Canvas Height="10" Width="10" DockPanel.Dock="Bottom" VerticalAlignment="Top" SnapsToDevicePixels="True">
29			<Rectangle Width="4" Height="3" x:Name="Box" SnapsToDevicePixels="True">
30				<Rectangle.Fill>
31					<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
32						<GradientStop Color="#FF0000" Offset="0.0" />
33						<GradientStop Color="#FF8888" Offset="0.8" />
34					</LinearGradientBrush>
35				</Rectangle.Fill>
36			</Rectangle>
37		</Canvas>
38	</DockPanel>
39	<UserControl.ContextMenu>
40		<ContextMenu>
41			<MenuItem loc:Translate.Uid="MenuRemoveBookmark" Header="{loc:Translate Header}" Click="Remove_Click"/>
42		</ContextMenu>
43	</UserControl.ContextMenu>
44</UserControl>