WPF自制TextBox利用Validation验证来实现必填项和焦点的提示特效

上传者: blicae | 上传时间: 2021-07-21 14:23:17 | 文件大小: 82KB | 文件类型: ZIP
WPF自制TextBox利用Validation验证来实现必填项和焦点的提示特效。必填项的用户名和Email的提示为,不满足规则不消失,有警示作用。非必填项身份证和QQ号的提示为,无论规则满足与否,提示只与焦点有关,即焦点失去即消失。个人觉得效果很好。

文件下载

资源详情

[{"title":"( 46 个子文件 82KB ) WPF自制TextBox利用Validation验证来实现必填项和焦点的提示特效","children":[{"title":"WpfTextFocusVR","children":[{"title":"WpfTextFocusVR","children":[{"title":"App.xaml <span style='color:#111;'> 325B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"WpfTextFocusVR.g.resources <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR_MarkupCompile.cache <span style='color:#111;'> 372B </span>","children":null,"spread":false},{"title":"App.g.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 929B </span>","children":null,"spread":false},{"title":"WpfTextFocusVR_MarkupCompile.i.lref <span style='color:#111;'> 221B </span>","children":null,"spread":false},{"title":"MainWindow.g.cs <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR_MarkupCompile.i.cache <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"SignUpFocusedUserControl.g.cs <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.exe <span style='color:#111;'> 17.00KB </span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 196B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"App.g.i.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"GeneratedInternalTypeHelper.g.cs <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"MainWindow.g.i.cs <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 456B </span>","children":null,"spread":false},{"title":"GeneratedInternalTypeHelper.g.i.cs <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 11.38KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR_MarkupCompile.lref <span style='color:#111;'> 221B </span>","children":null,"spread":false},{"title":"SignUpFocusedUserControl.g.i.cs <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false},{"title":"SignUpFocusedUserControl.baml <span style='color:#111;'> 4.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"WpfTextFocusVR.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.exe <span style='color:#111;'> 17.00KB </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"WpfTextFocusVR.csproj <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"App.xaml.cs <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"SignUpFocusedUserControl.xaml.cs <span style='color:#111;'> 895B </span>","children":null,"spread":false},{"title":"SignUpFocusedUserControl.xaml <span style='color:#111;'> 6.45KB </span>","children":null,"spread":false},{"title":"MainWindow.xaml <span style='color:#111;'> 374B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"Rules","children":[{"title":"LengthVR.cs <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"NullVR.cs <span style='color:#111;'> 953B </span>","children":null,"spread":false},{"title":"EmailVR.cs <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"IDCardNOVR.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":false},{"title":"WpfTextFocusVR.sln <span style='color:#111;'> 884B </span>","children":null,"spread":false},{"title":"WpfTextFocusVR.suo <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • zgyfh :
    很不错,感谢分享!
    2019-07-31
  • dede2006 :
    很棒的分享,很有借鉴意义。
    2017-06-20
  • liu1989518 :
    巴适 可以借鉴
    2017-04-26
  • gongqf :
    大哥你是强人啊 非常不错
    2016-10-29
  • oxiaoshitou12345678 :
    不错的资源,值得学习
    2015-09-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明