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
285
More LabelPresenter Questions
posted

Is there a way I can change the label text alignment via my custom LabelPresenterStyle?  I'm setting the label background to use an image brush.  The brush has a small icon on the left and the rest of it is just a gradient background.  The problem is the header text appears to be left-justified and is therefore obscurring the icon.  Here's my style:

<Style TargetType="{x:Type igDP:LabelPresenter}" x:Key="myStyle" BasedOn="{x:Static igThemes:DataPresenterOnyx.LabelPresenter}" >

<Setter Property="Background" Value="{StaticResource myHeaderBrush}" />

<Setter Property="Foreground" Value="White"/>

</Style>

 Thanks for the great support!

Mike