【原创】XAF常用属性字段设置
1.IP地址IPV4
[XafDisplayName("IP地址"), Size(50)] [ModelDefault("EditMaskType", "RegEx")] [ModelDefault("EditMask", @"(([0-1]?[0-9]{1,2}\.)|(2[0-4][0-9]\.)|(25[0-5]\.)){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))")] public string ipaddress { get; set; }