layouts/header/HeaderListItem.xaml.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System.Windows;

namespace tablegen2.layouts
{
    /// <summary>
    /// HeaderListItem.xaml 的交互逻辑
    /// </summary>
    public partial class HeaderListItem : ListItemBase
    {
        #region 依赖属性
        public static readonly DependencyProperty FieldNameProperty;
        public static readonly DependencyProperty FieldTypeProperty;
        public static readonly DependencyProperty FieldDescProperty;
        public static readonly DependencyProperty FieldDefaultProperty;
        public static readonly DependencyProperty EditableProperty;
        static HeaderListItem()
        {
            FieldNameProperty = DependencyProperty.Register(
                "FieldName",
                typeof(string),
                typeof(HeaderListItem),
                new FrameworkPropertyMetadata(""),
                null);
            FieldTypeProperty = DependencyProperty.Register(
                "FieldType",
                typeof(string),
                typeof(HeaderListItem),
                new FrameworkPropertyMetadata(""),
                null);
            FieldDescProperty = DependencyProperty.Register(
                "FieldDesc",
                typeof(string),
                typeof(HeaderListItem),
                new FrameworkPropertyMetadata(""),
                null);
            FieldDefaultProperty = DependencyProperty.Register(
               "FieldDefault",
               typeof(string),
               typeof(HeaderListItem),
               new FrameworkPropertyMetadata(""),
               null);
            EditableProperty = DependencyProperty.Register(
                "Editable",
                typeof(bool),
                typeof(HeaderListItem),
                new FrameworkPropertyMetadata(true),
                null);
        }
        public string FieldName
        {
            get { return (string)GetValue(FieldNameProperty); }
            set
            {
                if (value == "Id" )
                    Editable = false;
                SetValue(FieldNameProperty, value);
            }
        }
        public string FieldType
        {
后面还有 27 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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