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
Thank you!
"mheydlauf" wrote in message news:21617@forums.infragistics.com... 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 http://forums.infragistics.com/forums/p/4530/21617.aspx#21617
In general it'd be really nice to have access to/see the xaml for LabelPresenter... I could probably figure more stuff out on my own if I knew how it was put together.