Hello,
I found a bug in the Silverlight 5 December 2011 Toolkit Label control. In my scenario the target value is required or optional depending on conditions. My viewmodel exposes a boolean property that indicates whether the target value is required or not. I have set a binding for the Label's IsRequired property to this property on my viewmodel. I also have set a binding for the Label's Target property to the target element so that it can be notified when the target element's databound value is invalid. The problem is that the label does not appear in bold when the target value is required. It does turn red when the target element's databound value is invalid.
I found that if I hardcode the IsRequired property to True in my view that the label does render in bold. Also, if I databind the IsRequired property to my viewmodel, but remove the binding for the label's Target property then the label does render in bold when the target value is required, but then it no longer turns red when the value is invalid.
I found a bug in the Silverlight 5 December 2011 Toolkit Label control. In my scenario the target value is required or optional depending on conditions. My viewmodel exposes a boolean property that indicates whether the target value is required or not. I have set a binding for the Label's IsRequired property to this property on my viewmodel. I also have set a binding for the Label's Target property to the target element so that it can be notified when the target element's databound value is invalid. The problem is that the label does not appear in bold when the target value is required. It does turn red when the target element's databound value is invalid.
I found that if I hardcode the IsRequired property to True in my view that the label does render in bold. Also, if I databind the IsRequired property to my viewmodel, but remove the binding for the label's Target property then the label does render in bold when the target value is required, but then it no longer turns red when the value is invalid.