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 8507135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:46:59+00:00 2026-06-11T02:46:59+00:00

Using WPF with MVVM, my VM has an indexed property IObject1 this[string key] I

  • 0

Using WPF with MVVM, my VM has an indexed property

IObject1 this[string key]

I need to bind a property of the view to a property of IObject1, and the key of the object1 that I need is the name of the control in the view. Essentially I need nested bindings

<TextBlock x:Name="Key1"  Text="{Binding ["Key1"].DisplayText}

but, the name will very for different items so I need the nested binding

<TextBlock x:Name="Key1"  Text="{Binding [{Binding Name, RelativeSource={RelativeSource Self}].DisplayText}

My actual case is more complicated than this, but if I can get this far I think that I can figure out the rest.

I’m using Blend, and I’d love a way to teach my designer to do this type of thing within Blend, but I’m happy to use code if I need to.

Am I overlooking something obvious? I can’t figure out how to do this and I haven’t stumbled upon the correct Google / Stack Overflow search term.

Thanks.

  • 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-11T02:47:00+00:00Added an answer on June 11, 2026 at 2:47 am

    That’s a weird solution lol, anyhose, you can solve it with MultiBinding & converters.

    <TextBlock.Text>
    <MultiBinding Converter={StaticResource combine}>
    <Binding Path=Dictionary />
    <Binding Path=Name />
    </Multibinding>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using C# WPF following the MVVM design pattern. Currently my View has a
I'm using MVVM in my WPF application. I have a Window that has a
I have a WPF application that is written using MVVM Prism. It has a
I notice that many of the WPF MVVM frameworks seem to avoid using the
In my WPF application using MVVM I noticed that in some cases the CanExecute
I have a WPF application using MVVM. I have some user controls that show
I'm creating a WPF application using the MVVM design pattern that consists of a
Using MVVM Light, I have two WPF applications that reference a common Views library.
I have a WPF application using MVVM that utilises TreeViewItemViewModels to simplify working with
In a MVVM WPF application, I have a master-detail View that is used to

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.