WPF: Expand the validation rectangle -
this current xaml. <stackpanel orientation="horizontal" grid.column="3" grid.row="1"> <label content="allocated:" fontsize="14"/> <label content="{binding allocatedunits, mode=oneway, validatesondataerrors=true}" contentstringformat="n0" fontsize="14"/> </stackpanel> how change red validation rectangle around whole text instead of number. (i accept throwing away stack panel entirely , doing else. a string-formatted binding trick in case, wasn't available in .net 3.0 (in case you're still using version!). if can use it, you'd need single label control (so can ditch both other label and stackpanel, , validation border wrap text in remaining label). edit: per jonathan's comment, seems need 2 attributes on content control... use binding: content="{binding allocatedunits, validatesondataerrors=true}" contentstringformat="all...