Saturday, 15 January 2011

c# - WPF Binding TextBlock with lines in the source -



c# - WPF Binding TextBlock with <SPAN></SPAN> lines in the source -

the next comes ticket.orderdetatils string, can bind textblock no problem.

1 bowl chick sp 1 1 cobb salad 1 <span foreground="red"> 1000</span> <span foreground="red"> 1000</span> 1 diet coke 1 1 taco salad 1 <span foreground="red"> 1000</span> <span foreground="red"> 1000</span>

i know if can help me spans bind textbox. displays plain text, want portions of text formatted in reddish color only. in advance armando

<textbox text="{binding orderdetails}" snapstodevicepixels="true" selayoutrounding="true" margin="3" grid.row="2"/>

c# wpf xaml

No comments:

Post a Comment