WPF Separate Error and Warning Styles
问题 How can we show user Warnings in a similar way to Errors. The only difference is that the control e.g. TextBox needs to have a different error template and similar to Validation.HasError there needs to be a Validation.HasWarning. In other words not all validation issues are "errors" (in our application at least). We want to visually indicate whether something is a warning or error. 回答1: I get the need for that middle ground sometimes. Like Command s that need 3 values from CanExecute rather