Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
How do I align the text in a Label?
posted

I was trying to use the following style:

 

 

 

 

 

 

 

<Style x:Key="LabelPresenterStyle" TargetType="{x:Type DataPresenter:LabelPresenter

}"

 

 

 

BasedOn="{x:Static Themes:DataPresenterAero

.LabelPresenter}">

 

 

 

 

<Setter Property="Control.HorizontalContentAlignment" Value

="Right"/>

 

 

 

 

</Style

>

Only problem is that doesn't work.  I want the text in the label to be aligned to the right side.

Thanks