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

NewProjectView.xaml 2.5 KiB

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