|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <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="330"
- Height="220"
- WindowStartupLocation="CenterScreen"
- mc:Ignorable="d">
-
-
- <Window.DataContext>
- <local:NewProjectViewModel />
- </Window.DataContext>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBlock VerticalAlignment="Center" Text="项目名称:" />
- <TextBox
- Name="projectName"
- Grid.Row="1"
- VerticalAlignment="Center"
- FontSize="20"
- 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>
-
- <TextBlock
- Grid.Row="4"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="Red"
- Text="{Binding ErrorInfo}" />
-
- <Grid Grid.Row="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="35*" />
- <ColumnDefinition Width="32*" />
- <ColumnDefinition Width="3*" />
- </Grid.ColumnDefinitions>
-
- <Button
- Margin="10,2,10,2"
- Command="{Binding CreateCommand}"
- Content="创建"
- IsDefault="True" />
- <Button
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Margin="10,2,10,2"
- Command="{Binding CancelCommand}"
- Content="取消" />
-
- </Grid>
-
-
- </Grid>
- </Window>
|