ValidationRule with ValidationStep=“UpdatedValue” is called with BindingExpression instead of updated value

前端 未结 4 961
小鲜肉
小鲜肉 2020-12-03 01:06

I am getting started with using ValidationRules in my WPF application, but quite confused.

I have the following simple rule:

class RequiredRule : Val         


        
4条回答
  •  情话喂你
    2020-12-03 01:58

    In order to answer to your 2 question:

    string strVal = (string)((BindingExpression)value).DataItem

提交回复
热议问题