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.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.