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

/Application/GUI/Windows/NameDialog.xaml

http://yet-another-music-application.googlecode.com/
XAML | 48 lines | 30 code | 1 blank | 17 comment | 0 complexity | aff02a08cb985b80c27b9e79334e6587 MD5 | raw file
 1<!--CreateRenameShortcutProfile.xaml
 2	
 3	The small dialog shown when creating or renaming a keyboard
 4	shortcut profile.
 5	
 6	= = = = = = = = = =
 7	
 8	This code is part of the Stoffi Music Player Project.
 9	Visit our website at: stoffiplayer.com
10	
11	This program is free software; you can redistribute it and/or
12	modify it under the terms of the GNU General Public License
13	as published by the Free Software Foundation; either version
14	3 of the License, or (at your option) any later version.
15	
16	See stoffiplayer.com/license for more information.
17	-->
18<Window x:Class="Stoffi.NameDialog"
19		Name="ShortcutProfileDialog"
20		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
21		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
22		xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
23		Width="250" Height="140"
24		Icon="../../Stoffi.ico"
25		ShowInTaskbar="False" Topmost="True"
26		WindowStartupLocation="CenterScreen" WindowStyle="ThreeDBorderWindow"
27		KeyDown="ShortcutProfileDialog_KeyDown"
28		TextOptions.TextFormattingMode="Display">
29	<Grid>
30		<Grid.ColumnDefinitions>
31			<ColumnDefinition Width="*"/>
32			<ColumnDefinition Width="Auto"/>
33		</Grid.ColumnDefinitions>
34		<Grid.RowDefinitions>
35			<RowDefinition Height="Auto"/>
36			<RowDefinition Height="Auto"/>
37			<RowDefinition Height="*"/>
38		</Grid.RowDefinitions>
39		
40		<TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5"
41				   loc:Translate.Uid="DialogNameDescription" Text="{loc:Translate Text}"/>
42		<TextBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Name="ProfileName" Margin="20 5"/>
43		<TextBlock Grid.Row="2" Grid.Column="0" Margin="5" TextWrapping="Wrap" Foreground="DarkRed" Name="Error" Visibility="Collapsed"
44				   loc:Translate.Uid="DialogNameExistsError" Text="{loc:Translate Text}"/>
45		<Button Grid.Row="2" Grid.Column="1" MinWidth="80" Name="OK" Click="OK_Click" IsDefault="True" VerticalAlignment="Bottom" Margin="5"
46				   loc:Translate.Uid="ButtonOK" Content="{loc:Translate Content}"/>
47	</Grid>
48</Window>