/Application/GUI/Windows/Welcome.xaml

http://yet-another-music-application.googlecode.com/ · XAML · 52 lines · 36 code · 0 blank · 16 comment · 0 complexity · 950faeff93a709551f417db65e68ed50 MD5 · raw file

  1. <!--Welcome.xaml
  2. The welcome window that (maybe) is shown during the first startup.
  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. <Window x:Class="Stoffi.Welcome"
  13. Name="WelcomeWindow"
  14. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  15. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  16. Title="Stoffi Player - Welcome" Height="400" Width="600" ShowInTaskbar="False" Topmost="True"
  17. WindowStartupLocation="CenterScreen" WindowStyle="ThreeDBorderWindow"
  18. Loaded="Welcome_Loaded">
  19. <DockPanel LastChildFill="True">
  20. <TextBlock Margin="5" DockPanel.Dock="Top">
  21. Hi!
  22. <LineBreak/>
  23. <LineBreak/>
  24. I can't seem to find your music. Maybe you can help me locate it?
  25. <LineBreak/>
  26. Just add all your music folders to the list and click on 'OK'.
  27. </TextBlock>
  28. <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
  29. <Button Width="70" Name="AddFolder" Click="AddFolder_SourceClick" HorizontalAlignment="Center" Margin="5">Add Folder</Button>
  30. <Button Width="70" Name="AddFile" Click="AddFile_SourceClick" HorizontalAlignment="Center" Margin="5">Add File</Button>
  31. </StackPanel>
  32. <Button Width="80" Name="OK" DockPanel.Dock="Bottom" Click="OK_Click" IsDefault="True" HorizontalAlignment="Right" Margin="5">OK</Button>
  33. <ListView Margin="5" x:Name="SourceList" DockPanel.Dock="Top">
  34. <ListView.View>
  35. <GridView>
  36. <GridViewColumn DisplayMemberBinding="{Binding Type}" Header="Type" Width="100"/>
  37. <GridViewColumn DisplayMemberBinding="{Binding Data}" Header="Location" Width="500"/>
  38. </GridView>
  39. </ListView.View>
  40. <ListView.ContextMenu>
  41. <ContextMenu>
  42. <MenuItem Name="Remove" Header="Remove" Click="Remove_SourceClick"/>
  43. </ContextMenu>
  44. </ListView.ContextMenu>
  45. </ListView>
  46. </DockPanel>
  47. </Window>