|
- <Window
- x:Class="BPASmart.ConfigurationSoftware.NewProjectView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmart.ConfigurationSoftware"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="创建新项目"
- Width="300"
- Height="180"
- WindowStartupLocation="CenterScreen"
- mc:Ignorable="d">
-
-
- <Window.DataContext>
- <local:NewProjectViewModel />
- </Window.DataContext>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBlock VerticalAlignment="Center" Text="项目名称:" />
- <TextBox
- Grid.Row="1"
- VerticalAlignment="Center"
- Text="{Binding NewData.ProjectName}" />
-
- <TextBlock
- Grid.Row="2"
- VerticalAlignment="Center"
- Text="项目路径:" />
- <Grid Grid.Row="3">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="30" />
- </Grid.ColumnDefinitions>
- <TextBlock VerticalAlignment="Center" Text="{Binding NewData.ProjectPath}" />
- <Button
- Grid.Column="1"
- VerticalAlignment="Center"
- Command="{Binding OpenBrowserDialogCommand}"
- Content="..." />
- </Grid>
-
- <Grid Grid.Row="4">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="35*" />
- <ColumnDefinition Width="32*" />
- <ColumnDefinition Width="3*" />
- </Grid.ColumnDefinitions>
-
- <Button
- Margin="10,2,10,2"
- Command="{Binding CreateCommand}"
- Content="创建" />
- <Button
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Margin="10,2,10,2"
- Command="{Binding CancelCommand}"
- Content="取消" />
-
- </Grid>
-
-
- </Grid>
- </Window>
|