XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEToolBox

【WPF】XFE工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
<Page x:Class="XFEToolBox.Client.Views.Pages.Popups.NewToolProjectPopupPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:controls="clr-namespace:XFEToolBox.WpfCore.Controls;assembly=XFEToolBox.WpfCore"
      Background="White" Loaded="Page_Loaded">
    <Grid Margin="22,17,22,20">
        <Grid.RowDefinitions><RowDefinition Height="Auto"/><RowDefinition Height="Auto"/><RowDefinition Height="Auto"/><RowDefinition Height="*"/><RowDefinition Height="Auto"/></Grid.RowDefinitions>
        <StackPanel>
            <TextBlock Text="创建工具项目" Foreground="#3F3F55" FontSize="17" FontWeight="Bold"/>
            <TextBlock Text="项目将自动生成 Code/Views、Code/Models 和 Code/ViewModels 目录。" Foreground="#858598" FontSize="10" Margin="0,5,0,0"/>
        </StackPanel>
        <StackPanel Grid.Row="1" Margin="0,18,0,0">
            <TextBlock Text="工具名称" Foreground="#55556A" FontSize="10.5" FontWeight="SemiBold" Margin="2,0,0,6"/>
            <controls:TextEditor x:Name="ProjectNameBox" Height="40" Padding="12,0" Background="#FAFAFD" Foreground="#46465B"
                                 HintText="NewToolProject" HintForeground="#77778C" HintTextMargin="0" TextChanged="ProjectNameBox_TextChanged"/>
        </StackPanel>
        <StackPanel Grid.Row="2" Margin="0,15,0,0">
            <TextBlock Text="项目位置" Foreground="#55556A" FontSize="10.5" FontWeight="SemiBold" Margin="2,0,0,6"/>
            <Grid>
                <Grid.ColumnDefinitions><ColumnDefinition Width="*"/><ColumnDefinition Width="Auto"/></Grid.ColumnDefinitions>
                <controls:TextEditor x:Name="ProjectPathBox" Height="40" Padding="12,0" Background="#FAFAFD" Foreground="#46465B"
                                     HintText="选择项目位置" HintForeground="#77778C" HintTextMargin="0" TextChanged="ProjectPathBox_TextChanged"/>
                <Button Grid.Column="1" Content="浏览" MinWidth="72" Margin="8,0,0,0" Click="BrowseButton_Click"/>
            </Grid>
        </StackPanel>
        <TextBlock x:Name="ErrorText" Grid.Row="3" Foreground="#B85A66" FontSize="9.5" TextWrapping="Wrap" Margin="2,10,2,0"/>
        <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="取消" MinWidth="76" Margin="0,0,8,0" Click="CancelButton_Click"/>
            <Button x:Name="CreateButton" Content="创建并进入编辑器" controls:ButtonAssist.IsPrimary="True" MinWidth="142" Click="CreateButton_Click"/>
        </StackPanel>
    </Grid>
</Page>