/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. A bookmark shown over the track timeline.
  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.Bookmark"
  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. xmlns:local="clr-namespace:Stoffi"
  19. mc:Ignorable="d"
  20. MouseLeftButtonDown="Bookmark_MouseLeftButtonDown"
  21. d:DesignHeight="300" d:DesignWidth="300">
  22. <DockPanel>
  23. <Canvas Height="10" Width="10" DockPanel.Dock="Bottom" VerticalAlignment="Top" SnapsToDevicePixels="True">
  24. <Rectangle Width="4" Height="3" x:Name="Box" SnapsToDevicePixels="True">
  25. <Rectangle.Fill>
  26. <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
  27. <GradientStop Color="#FF0000" Offset="0.0" />
  28. <GradientStop Color="#FF8888" Offset="0.8" />
  29. </LinearGradientBrush>
  30. </Rectangle.Fill>
  31. </Rectangle>
  32. </Canvas>
  33. </DockPanel>
  34. <UserControl.ContextMenu>
  35. <ContextMenu>
  36. <MenuItem loc:Translate.Uid="MenuRemoveBookmark" Header="{loc:Translate Header}" Click="Remove_Click"/>
  37. </ContextMenu>
  38. </UserControl.ContextMenu>
  39. </UserControl>