Displaying customised Item in ItemsControl
问题 I have created a (slightly) extended Checkbox that has an IsError property (basically used to change the colour of the checkbox to red when some condition is not met) as follows: public class MyCheckBox : CheckBox { public static readonly DependencyProperty IsErrorProperty = DependencyProperty.Register("IsError", typeof(bool), typeof(MyCheckBox), new UIPropertyMetadata(false)); public MyCheckBox() : base() { IsError = false; IsCorrect = false; } public bool IsError { get { return (bool