layouts/header/HeaderFieldEdit.xaml

(完整代码) 3KB

<UserControl x:Class="tablegen2.layouts.HeaderFieldEdit"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:el="clr-namespace:tablegen2.layouts"
             mc:Ignorable="d" 
             Height="300" Width="400"
             DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="0"/>
            <RowDefinition Height="50.087"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="87.652"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Text="字段名称:" Foreground="Gray" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="14,17,19.652,17.087" Grid.RowSpan="2" Height="16" Width="54"/>
        <TextBlock Grid.Row="2" Grid.Column="0" Text="字段类型:" Foreground="Gray" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="14,16.913,19.652,17.174" Height="16" Width="54"/>
        <TextBlock Grid.Row="3" Grid.Column="0" Text="字段描述:" Foreground="Gray" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="14,66.826,19.652,66.6" Height="16" Width="54"/>
        <TextBox Grid.Row="0" Grid.Column="1" x:Name="txtFieldName" Text="{Binding FieldName}" IsReadOnly="{Binding IsFieldNameReadonly}" Height="20" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" Margin="10.348,15,19.861,15.087" Grid.RowSpan="2"/>
        <ComboBox Grid.Row="2" Grid.Column="1" x:Name="cbFieldType" FontWeight="Bold" FontSize="12" MaxDropDownHeight="200" Margin="10.348,13.913,19.861,14.174" BorderBrush="{StaticResource CommonBorder}" VerticalContentAlignment="Center" SelectionChanged="cbFieldType_SelectionChanged">
            <ComboBoxItem Height="20" Content="string" Tag="string" IsSelected="True" Margin="0,1,0,1"/>
            <ComboBoxItem Height="20" Content="int" Tag="int" Margin="0,1,0,1"/>
            <ComboBoxItem Height="20" Content="long" Tag="long" Margin="0,1,0,1"/>
            <ComboBoxItem Height="20" Content="float" Tag="float" Margin="0,1,0,1"/>
            <ComboBoxItem Height="20" Content="string[]" Tag="string[]" Margin="0,1,0,1"/>
            <ComboBoxItem Height="20" Content="int[]" Tag="int[]" Margin="0,1,0,1"/>
            <ComboBoxItem Height="20" Content="long[]" Tag="long[]" Margin="0,1,0,1"/>
        </ComboBox>
        <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding FieldDesc}" FontSize="10" Margin="10.348,19.826,19.861,19.6" TextWrapping="Wrap"/>
        <Grid Grid.Row="4" Grid.ColumnSpan="2" Background="#40000000" Margin="0,0.4,-0.139,-0.313">
            <el:ButtonDark Content="确定保存" Width="120" Height="30" Margin="0,0,10,0"
                           HorizontalAlignment="Right" VerticalAlignment="Center" 
                           FontWeight="Bold" FontSize="16" Click="btnSave_Clicked"/>
            <TextBlock Margin="10,18,0,0" TextWrapping="Wrap" Text="默认值:" Height="23" Width="68" HorizontalAlignment="Left" VerticalAlignment="Top" TextAlignment="Center" FontFamily="Microsoft YaHei UI Light" FontSize="12"/>
            <TextBox x:Name="DefaultFieldName" Text="{Binding FieldDefault}" HorizontalAlignment="Left" Height="23" Margin="83,17,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
        </Grid>
    </Grid>
</UserControl>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。