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

74 lines
2.3 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. </Grid.RowDefinitions>
  24. <TextBlock VerticalAlignment="Center" Text="项目名称:" />
  25. <TextBox
  26. Grid.Row="1"
  27. VerticalAlignment="Center"
  28. Text="{Binding NewData.ProjectName}" />
  29. <TextBlock
  30. Grid.Row="2"
  31. VerticalAlignment="Center"
  32. Text="项目路径:" />
  33. <Grid Grid.Row="3">
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition />
  36. <ColumnDefinition Width="30" />
  37. </Grid.ColumnDefinitions>
  38. <TextBlock VerticalAlignment="Center" Text="{Binding NewData.ProjectPath}" />
  39. <Button
  40. Grid.Column="1"
  41. VerticalAlignment="Center"
  42. Command="{Binding OpenBrowserDialogCommand}"
  43. Content="..." />
  44. </Grid>
  45. <Grid Grid.Row="4">
  46. <Grid.ColumnDefinitions>
  47. <ColumnDefinition Width="35*" />
  48. <ColumnDefinition Width="32*" />
  49. <ColumnDefinition Width="3*" />
  50. </Grid.ColumnDefinitions>
  51. <Button
  52. Margin="10,2,10,2"
  53. Command="{Binding CreateCommand}"
  54. Content="创建" />
  55. <Button
  56. Grid.Column="1"
  57. Grid.ColumnSpan="2"
  58. Margin="10,2,10,2"
  59. Command="{Binding CancelCommand}"
  60. Content="取消" />
  61. </Grid>
  62. </Grid>
  63. </Window>