Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8670477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:42:58+00:00 2026-06-12T18:42:58+00:00

Is there a way that one can ‘add’ two bindings together and add some

  • 0

Is there a way that one can ‘add’ two bindings together and add some strings to them? This is quite hard to explain but one does a binding in your XAML code to a TextBlock for example like this:

<TextBlock Name="FirstName" Text="{Binding FN}" />

What I want to do is this:

<TextBlock Name="FirstLastName" Text="{Binding FN} + ', ' + {Binding LN}" />

So in essence you’ll get something like this:

Dean, Grobler

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:42:59+00:00Added an answer on June 12, 2026 at 6:42 pm

    First that comes to mind is to create additional property in VM that will contain concatenated values:

    public string FullName
    {
        get { return FN + ", "+ LN; }
    }
    
    public string FN
    {
        get { return _fN; }
        set 
        {
            if(_fn != value)
            {
                _fn = value;
                FirePropertyChanged("FN");
                FirePropertyChanged("FullName");
            }
        }
    
    }
    
    public string LN
    {
        get { return _lN; }
        set
        {
            if(_lN != value)
            {
                _lN = value;
                FirePropertyChanged("LN");
                FirePropertyChanged("FullName");
            }
        }
    }
    

    Another approach that might help is to use converter. but in this case we assume that FN and LN are properties of same object:

    and

    public class PersonFullNameConverter : IValueConverter
    {
    
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (!(value is Person)) throw new NotSupportedException();
            Person b = value as Person;
            return b.FN + ", " + b.LN;
        }
    
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
    
    public class Person
    {
        public string FN { get; set; }
        public string LN { get; set; }
    }
    

    and VM:

    public Person User
    {
        get { return _user; }
        set
        {
            if(_user != value)
            {
                _user = value;
                FirePropertyChanged("User");            
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way that one can tell if the type that an object
Within Authlogic, is there a way that I can add conditions to the authentication
Is there a way that one can make a control, such as a textbox,
Given that one can define a class in VB Script, is there any way
Is there a way that one can test if a row has been locked
Is there any way that one can encapsulate Dictionary to be a new type
I have two brief question: Is there a way that I can click on
Is there any way that one can use the NSScrollView background texture that is
Is there a way that one can implicitly declare top-level variables as global for
I'd like to know if there's a way that one can output data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.