zoukankan
html css js c++ java
wpf控件提示Value ‘’ can not convert
我们在对控件的ErrorTemplate设置后,有时会出现Value ‘’ can not convert。
为什么会出现呢?
原因:
如果控件的输入值和null不能转换(比如控件要求的是int或float类型, 而输入信息为空),就会触发默认的ExceptionValidationRule。
如何自定义出错信息?
首先创建自己的ValidationRule继承于ValidationRule,然后设置
ValidationStep
=
"RawProposedValue" ,
这样保证输入时首先用自定义的ValidationRule验证, 这样才能提早弹出自己的提示信息。
查看全文
相关阅读:
PCB电路板元器件布局的一般原则*(转)
PCB Layout初学者必会知识总结(转)
数字器件和模拟器件?
同一原理图中怎么区分数字电路和模拟电路
oracle 11g R2执行INSERT语句,数据库把一个汉字看做3个汉字
SQL存储过程与函数的区别
用户自定义函数——Oracle 11g R2
提高使用SQL Developer进行PL/SQL编程的效率——Oracle 11g R2
Oracle查看用户使用的表
JAVA-Eclipse快捷键
原文地址:https://www.cnblogs.com/muzizongheng/p/3408083.html
最新文章
Submission Details
Hadoop的datanode,namenode无法启动
Linux下eclipse与Hadoop配置
String to Integer (atoi)
string的empty,size,length等比较
Implement strStr()
Valid Palindrome
Evaluate Reverse Polish Notation
Reverse Integer
LRU cache
热门文章
Longest Substring Without Repeating Characters
Trapping Rain Water
Balanced Binary Tree
Search in Rotated Sorted Array
Sort Colors
Add Two Numbers
Best Time to Buy and Sell Stock I
Permutations I
什么是同步逻辑和异步逻辑,同步电路和异步电路的区别是什么(转)
如何区分电压串联负反馈电路和电流串联负反馈电路(转)
Copyright © 2011-2022 走看看