A Label may contain different elements (not only text). To customize text, it is necessary to adjust the TextBlock that is included in the Label.Content property:
Updated by Alexander Rus (2013.01.28)[XAML]
<dxlc:LayoutItem Name="layoutItem1"> <dxlc:LayoutItem.Label> <TextBlock Text="sdsfdsfsdfsdfdfk" TextWrapping="Wrap" MaxWidth="30"/> </dxlc:LayoutItem.Label> <dxe:TextEdit Name="textEdit1" /> </dxlc:LayoutItem>
The best approach to accomplish this task is to customize the LabelTemplate property in a Style for a LayoutItem element. Attached is a sample project that illustrates this approach.