WPF: LineBreak enable/disable dynamically
Posted
by Sonic Soul
on Stack Overflow
See other posts from Stack Overflow
or by Sonic Soul
Published on 2010-06-15T12:19:20Z
Indexed on
2010/06/15
12:22 UTC
Read the original article
Hit count: 455
wpf
i would like to make the LineBreak element inside of that TextBlock controllable by the user in preferences to Enable/Disable it being there
<TextBlock Style="{StaticResource TextBlockStyle}" Width="130">
<TextBlock.Inlines>
<Run Text="{Binding Path=Name}" FontWeight="Bold" Foreground="#FF2A4D9E" />
<Run Text="{Binding Path=Price}" FontWeight="Bold" />
<LineBreak />
<Run Text="{Binding Path=Quantity}" Foreground="#99000000" />
</TextBlock.Inlines>
</TextBlock>
© Stack Overflow or respective owner