/Application/GUI/Windows/GeneratePlaylist.xaml

http://yet-another-music-application.googlecode.com/ · XAML · 57 lines · 48 code · 8 blank · 1 comment · 0 complexity · 56c87801b523201b28714f92fb51ea76 MD5 · raw file

  1. <Window x:Class="Stoffi.GeneratePlaylist"
  2. Name="GeneratePlaylistDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  6. loc:Translate.Uid="GeneratePlaylistTitle"
  7. MinWidth="300"
  8. MinHeight="190"
  9. Width="300"
  10. Height="190"
  11. WindowStartupLocation="CenterScreen"
  12. Title="{loc:Translate Title}"
  13. Icon="../../Stoffi.ico"
  14. TextOptions.TextFormattingMode="Display"
  15. SnapsToDevicePixels="True">
  16. <Grid Margin="5">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="*" Name="ContentRow"/>
  19. <RowDefinition Height="Auto" Name="ButtonRow"/>
  20. </Grid.RowDefinitions>
  21. <Grid Grid.Row="0">
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="Auto"/>
  24. <ColumnDefinition Width="*"/>
  25. </Grid.ColumnDefinitions>
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="Auto"/>
  28. <RowDefinition Height="Auto"/>
  29. <RowDefinition Height="Auto"/>
  30. <RowDefinition Height="Auto"/>
  31. </Grid.RowDefinitions>
  32. <TextBlock Grid.Row="0" Grid.Column="0" loc:Translate.Uid="FromList" Text="{loc:Translate Text}" VerticalAlignment="Center" Margin="3"/>
  33. <ComboBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" Name="Lists" Margin="3" VerticalAlignment="Center" SelectionChanged="Lists_SelectionChanged">
  34. <ComboBoxItem loc:Translate.Uid="AllTracks" Content="{loc:Translate Content}" IsSelected="True"/>
  35. </ComboBox>
  36. <TextBlock Grid.Row="1" Grid.Column="0" loc:Translate.Uid="NumberOfTracks" Text="{loc:Translate Text}" Margin="3" VerticalAlignment="Center"/>
  37. <TextBox Grid.Row="1" Grid.Column="1" Name="Number" HorizontalAlignment="Left" Width="50" Height="20" Margin="3" VerticalAlignment="Center"/>
  38. <TextBlock Grid.Row="2" Grid.Column="0" loc:Translate.Uid="ApplySearch" Text="{loc:Translate Text}" Margin="3" VerticalAlignment="Center"/>
  39. <CheckBox Grid.Row="2" Grid.Column="1" Name="DoFilter" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3 7"/>
  40. <TextBlock Grid.Row="3" Grid.Column="0" Margin="3" VerticalAlignment="Center" loc:Translate.Uid="Name" Text="{loc:Translate Text}" />
  41. <TextBox Grid.Row="3" Grid.Column="1" Margin="3" Name="ListName"/>
  42. </Grid>
  43. <!-- Buttons -->
  44. <DockPanel Name="Buttons" HorizontalAlignment="Stretch" Grid.Row="1" LastChildFill="False">
  45. <Button DockPanel.Dock="Right" loc:Translate.Uid="ButtonGenerate" Content="{loc:Translate Content}" MinWidth="80" Margin="5 5" Name="Generate" Click="Generate_Click" Height="22"/>
  46. <TextBlock Text="" TextWrapping="Wrap" VerticalAlignment="Center" Foreground="Red" Margin="4" Visibility="Collapsed" Name="ErrorMessage"/>
  47. </DockPanel>
  48. </Grid>
  49. </Window>