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