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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:17:05+00:00 2026-05-15T22:17:05+00:00

I have a rather complicated Binding situation. I have a solution that I created

  • 0

I have a rather complicated Binding situation. I have a solution that I created in windows forms for this back in VS2005, but now I am recreating the control using wpf, but I am not doing it in exactly the same way I had done it before.

I have a listbox control that has the following DataTemplate:

<DataTemplate>
  <Border CornerRadius="5" BorderBrush="Black" BorderThickness="1">
    <StackPanel>
      <TextBlock x:Name="TaxonomyCode" Margin="2" FontWeight="Bold"
      FontSize="12">
        <TextBlock.Text>
          <MultiBinding StringFormat="{}{0}{1}{2}X">
            <Binding Path="TaxonomyTypeID" />
            <Binding Path="TaxonomyClassificationID" />
            <Binding Path="TaxonomySpecializationID" />
          </MultiBinding>
        </TextBlock.Text>
      </TextBlock>
      <TextBlock Margin="2"
      Text="{Binding ElementName=TaxonomyCode,Path=Text,Converter={StaticResource TaxonomyCodeToDescriptionConverter}}" />
    </StackPanel>
  </Border>
</DataTemplate>

Below that I have 3 listboxes that list the actual Taxonomy Hierarchies using properties on my ViewModel…

<ListBox 
    Grid.Column="0" Grid.Row="1" 
    ItemsSource="{Binding TaxonomyTypeLUT}" 
    DisplayMemberPath="IDDescription" 
    SelectedItem="{Binding Path=SelectedTaxonomyType}" />
<ListBox 
    Grid.Column="1" Grid.Row="1"
    ItemsSource="{Binding SelectedTaxonomyType.TaxonomyClassifications}"
    DisplayMemberPath="IDDescription"
    SelectedItem="{Binding Path=SelectedTaxonomyClassification}" />
<ListBox 
    Grid.Column="2" Grid.Row="1"
    ItemsSource="{Binding SelectedTaxonomyClassification.TaxonomySpecializations}"
    DisplayMemberPath="IDDescription"
    SelectedItem="{Binding SelectedTaxonomySpecializations}" />

The actual datatbase binding is kindof complex as well. With multiple keys for each table in the hierarchy because each table can contain the same key that belongs to different parents… for example

taxonomy code : 207R00000X which breaks down to: 20 7R 00000 translates to: Allopathic,internal medicine,internal medicine
taxonomy code : 208M00000X which breaks down to: 20 8M 00000 translates to: allopathic, hospitalist, hospitalist

Each of those break downs is the keyfield in its own table.

alt text

Here is the design of my tables.

I am trying to have my lower control change each child as a new selection is made. I have that working. Now though when I select the top list, I want the bottom lists to reflect the Taxonomy of the selected item. I can get that done too by binding One-Way.

If I don’t bind oneway I get this ErrorMessage:”The property ‘TaxonomySpecializationID’ is part of the object’s key information and cannot be modified.”

Ideally what I want to be able to do, is change the taxonomy of the selected DoctorTaxonomy using the listboxes. Maybe it just won’t work…

  • 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-05-15T22:17:06+00:00Added an answer on May 15, 2026 at 10:17 pm

    The way I got around this was to create a new item with then needed value, Delete the original value from the collection, and insert the new item.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 492k
  • Answers 492k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer python("import saveCentral_fromPath"); . .. global proc runSaveCentral() { python("saveCentral_fromPath.saveCentral()._first_()"); #… May 16, 2026 at 10:28 am
  • Editorial Team
    Editorial Team added an answer setFetchOffset only works on persisted entities. I figured this out… May 16, 2026 at 10:28 am
  • Editorial Team
    Editorial Team added an answer The .all() call attaches an event handler to window.load which… May 16, 2026 at 10:27 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a rather complicated deploy setup for our Drupal site that is a
I have a rather complicated setup which I have boiled down to the code
We have a rather complicated system of permission handling in our (ASP.NET web) application.
I have a (rather complicated) SQL statement where I select data from lots of
I have a rather complicated toolchain so prepare for a lengthy post until getting
I have one main view with an associated controller. I have some rather complicated
I have a rather simple threading question. I'm writing a simple utility that will
I have a rather complex data structure I've implemented in Perl. This has been
I have used Flex for about a year before deciding that I would rather
I have created some ms build tasks for my VS project. Rather than having

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.