终端一体化运控平台
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.
 
 
 

81 lines
2.5 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="300"
  10. Height="180"
  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. Grid.Row="1"
  28. VerticalAlignment="Center"
  29. Text="{Binding NewData.ProjectName}" />
  30. <TextBlock
  31. Grid.Row="2"
  32. VerticalAlignment="Center"
  33. Text="项目路径:" />
  34. <Grid Grid.Row="3">
  35. <Grid.ColumnDefinitions>
  36. <ColumnDefinition />
  37. <ColumnDefinition Width="30" />
  38. </Grid.ColumnDefinitions>
  39. <TextBlock VerticalAlignment="Center" Text="{Binding NewData.ProjectPath}" />
  40. <Button
  41. Grid.Column="1"
  42. VerticalAlignment="Center"
  43. Command="{Binding OpenBrowserDialogCommand}"
  44. Content="..." />
  45. </Grid>
  46. <TextBlock
  47. Grid.Row="4"
  48. HorizontalAlignment="Center"
  49. VerticalAlignment="Center"
  50. Text="{Binding ErrorInfo}" Foreground="Red"/>
  51. <Grid Grid.Row="5">
  52. <Grid.ColumnDefinitions>
  53. <ColumnDefinition Width="35*" />
  54. <ColumnDefinition Width="32*" />
  55. <ColumnDefinition Width="3*" />
  56. </Grid.ColumnDefinitions>
  57. <Button
  58. Margin="10,2,10,2"
  59. Command="{Binding CreateCommand}"
  60. Content="创建" />
  61. <Button
  62. Grid.Column="1"
  63. Grid.ColumnSpan="2"
  64. Margin="10,2,10,2"
  65. Command="{Binding CancelCommand}"
  66. Content="取消" />
  67. </Grid>
  68. </Grid>
  69. </Window>