终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

85 lines
2.6 KiB

  1. <Window
  2. x:Class="BPASmart.ConfigurationSoftware.NewProjectView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmart.ConfigurationSoftware"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. Title="创建新项目"
  9. Width="330"
  10. Height="220"
  11. WindowStartupLocation="CenterScreen"
  12. mc:Ignorable="d">
  13. <Window.DataContext>
  14. <local:NewProjectViewModel />
  15. </Window.DataContext>
  16. <Grid Margin="10">
  17. <Grid.RowDefinitions>
  18. <RowDefinition />
  19. <RowDefinition />
  20. <RowDefinition />
  21. <RowDefinition />
  22. <RowDefinition />
  23. <RowDefinition />
  24. </Grid.RowDefinitions>
  25. <TextBlock VerticalAlignment="Center" Text="项目名称:" />
  26. <TextBox
  27. Name="projectName"
  28. Grid.Row="1"
  29. VerticalAlignment="Center"
  30. FontSize="20"
  31. Text="{Binding NewData.ProjectName}" />
  32. <TextBlock
  33. Grid.Row="2"
  34. VerticalAlignment="Center"
  35. Text="项目路径:" />
  36. <Grid Grid.Row="3">
  37. <Grid.ColumnDefinitions>
  38. <ColumnDefinition />
  39. <ColumnDefinition Width="30" />
  40. </Grid.ColumnDefinitions>
  41. <TextBlock VerticalAlignment="Center" Text="{Binding NewData.ProjectPath}" />
  42. <Button
  43. Grid.Column="1"
  44. VerticalAlignment="Center"
  45. Command="{Binding OpenBrowserDialogCommand}"
  46. Content="..." />
  47. </Grid>
  48. <TextBlock
  49. Grid.Row="4"
  50. HorizontalAlignment="Center"
  51. VerticalAlignment="Center"
  52. Foreground="Red"
  53. Text="{Binding ErrorInfo}" />
  54. <Grid Grid.Row="5">
  55. <Grid.ColumnDefinitions>
  56. <ColumnDefinition Width="35*" />
  57. <ColumnDefinition Width="32*" />
  58. <ColumnDefinition Width="3*" />
  59. </Grid.ColumnDefinitions>
  60. <Button
  61. Margin="10,2,10,2"
  62. Command="{Binding CreateCommand}"
  63. Content="创建"
  64. IsDefault="True" />
  65. <Button
  66. Grid.Column="1"
  67. Grid.ColumnSpan="2"
  68. Margin="10,2,10,2"
  69. Command="{Binding CancelCommand}"
  70. Content="取消" />
  71. </Grid>
  72. </Grid>
  73. </Window>