
I want the text in the popup button to reflect the font editing I'm enabling when I open the popup. So I need TextDecoration. How do I get at the text of the button face to underline it?
<DataTemplate x:Key="fontItemsTemplate">
<shared:PopupButton FontWeight="{Binding Weight}" Content="{Binding}">
<shared:PopupButton.ContentTemplate>
<DataTemplate>
<TextBlock x:Name="title" Text="{Binding Title}" />
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding Path=IsUnderlined}" Value="True">
<Setter TargetName="title" Property="TextDecorations" Value="Underline" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</shared:PopupButton.ContentTemplate>
</shared:PopupButton>
</DataTemplate>
Please log in to a validated account to post comments.