APPENDING STRING WHILE DATABINDING IN SILVERLIGHT XAML QUESTION

Hank Greenberg

Total Post:12

Points:84
Posted by  Hank Greenberg
XML 
XML
 1112  View(s)
Ratings:
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


  1. shreesh chandra shukla

    Post:105

    Points:735
    Re: Appending String While Databinding in Silverlight xaml Question

    Hi Hank!

    try this

    You can bind to the property and use the StringFormat:

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!