Home > DeveloperSection > Forums > Appending String While Databinding in Silverlight xaml Question
Hank Greenberg
Hank Greenberg

Total Post:12

Posted on    July-18-2013 2:57 AM


 1 Reply(s)
 1053  View(s)
Rate this:
HI developers!

I have a control which accepts a string but when displaying it i want to append "Hello" to that string right in xaml how do i do it?

thanks in advance

shreesh chandra shukla
shreesh chandra shukla

Total Post:105

Posted on    July-18-2013 11:25 PM

Hi Hank!
try this

You can bind to the property and use the StringFormat:

<TextBlock Text=”{Binding Path=UserName, StringFormat=’Hello \{0\} ’}“/>

Don't want to miss updates? Please click the below button!

Follow MindStick