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

/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		
22		<Grid Grid.Row="0">
23			<Grid.ColumnDefinitions>
24				<ColumnDefinition Width="Auto"/>
25				<ColumnDefinition Width="*"/>
26			</Grid.ColumnDefinitions>
27			<Grid.RowDefinitions>
28				<RowDefinition Height="Auto"/>
29				<RowDefinition Height="Auto"/>
30				<RowDefinition Height="Auto"/>
31				<RowDefinition Height="Auto"/>
32			</Grid.RowDefinitions>
33
34			<TextBlock Grid.Row="0" Grid.Column="0" loc:Translate.Uid="FromList" Text="{loc:Translate Text}" VerticalAlignment="Center" Margin="3"/>
35			<ComboBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" Name="Lists" Margin="3" VerticalAlignment="Center" SelectionChanged="Lists_SelectionChanged">
36				<ComboBoxItem loc:Translate.Uid="AllTracks" Content="{loc:Translate Content}" IsSelected="True"/>
37			</ComboBox>
38
39			<TextBlock Grid.Row="1" Grid.Column="0" loc:Translate.Uid="NumberOfTracks" Text="{loc:Translate Text}" Margin="3" VerticalAlignment="Center"/>
40			<TextBox Grid.Row="1" Grid.Column="1" Name="Number" HorizontalAlignment="Left" Width="50" Height="20" Margin="3" VerticalAlignment="Center"/>
41
42			<TextBlock Grid.Row="2" Grid.Column="0" loc:Translate.Uid="ApplySearch" Text="{loc:Translate Text}" Margin="3" VerticalAlignment="Center"/>
43			<CheckBox Grid.Row="2" Grid.Column="1" Name="DoFilter" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3 7"/>
44
45			<TextBlock Grid.Row="3" Grid.Column="0" Margin="3" VerticalAlignment="Center" loc:Translate.Uid="Name" Text="{loc:Translate Text}" />
46			<TextBox Grid.Row="3" Grid.Column="1" Margin="3" Name="ListName"/>
47		</Grid>
48
49
50		<!-- Buttons -->
51		<DockPanel Name="Buttons" HorizontalAlignment="Stretch" Grid.Row="1" LastChildFill="False">
52			<Button DockPanel.Dock="Right" loc:Translate.Uid="ButtonGenerate" Content="{loc:Translate Content}" MinWidth="80" Margin="5 5" Name="Generate" Click="Generate_Click" Height="22"/>
53			<TextBlock Text="" TextWrapping="Wrap" VerticalAlignment="Center" Foreground="Red" Margin="4" Visibility="Collapsed" Name="ErrorMessage"/>
54		</DockPanel>
55
56	</Grid>
57</Window>