AddLanguageWindow.xaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. <Window x:Class="LocalizationTool.Views.AddLanguageWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:hc="https://handyorg.github.io/handycontrol"
  5. Title="新增语言" Height="240" Width="480"
  6. WindowStartupLocation="CenterOwner"
  7. ResizeMode="NoResize"
  8. Background="#F5F6FA">
  9. <Grid Margin="24">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="Auto"/>
  15. </Grid.RowDefinitions>
  16. <TextBlock Text="选择要新增的语言" FontSize="16" FontWeight="Bold" Foreground="#333"/>
  17. <TextBlock Grid.Row="1" Text="从语言目录中选择(自动对应百度翻译语言代码)"
  18. FontSize="11" Foreground="#888" Margin="0,4,0,16"/>
  19. <ComboBox Grid.Row="2" Height="34" VerticalContentAlignment="Center"
  20. ItemsSource="{Binding Languages}"
  21. DisplayMemberPath="Display"
  22. SelectedItem="{Binding Selected}"
  23. Style="{StaticResource ComboBoxExtend}"/>
  24. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,24,0,0">
  25. <Button Content="确定" Width="88" Style="{StaticResource ButtonPrimary}"
  26. Command="{Binding ConfirmCommand}" Margin="0,0,10,0"/>
  27. <Button Content="取消" Width="88" Style="{StaticResource ButtonDefault}"
  28. Command="{Binding CancelCommand}"/>
  29. </StackPanel>
  30. </Grid>
  31. </Window>