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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:13:11+00:00 2026-05-27T12:13:11+00:00

I have a problem with my silverlight treeview which is bound to an observable

  • 0

I have a problem with my silverlight treeview which is bound to an observable collection. The treeview binding is working perfectly across all operations apart from when I try to edit an existing item in the treeview, in which I popup a new child window and pass the treemanager object to it. Treemanager is essentially a custom class maintaining my observable collection. The code updates the underlying item in the observable collection as if it seems to have a pointer to the treemanager object, but it doesnt update the treeview, even if i specifically tell it to rebind to the obervable collection.

Code for right click:

TreeViewItem treeItem = this.RCM.GetClickedElement<TreeViewItem>();// as TreeViewItem;

TreeManager treeManager = ((TreeManager)(((HeaderedItemsControl)(treeItem)).Header));

if (treeManager.Type != "diObject")
{
    Message.ErrorMessage("Please select the root DiObject to edit");
    return;
}

EditWindow editdlg = new EditWindow(DiObjectNameToList(treeManager), driverComboItems, deviceIntTypeComboItems);
editdlg.Title = "Edit DIObject - "+treeManager.Title;
editdlg.Closed += new EventHandler(editdlg_Closed);
editdlg.t_orig = treeManager;
editdlg.t = treeManager;
editdlg.Show();

Child view window:

public partial class EditWindow : ChildWindow
{
    Dictionary<string, string> diObject;
    String[] driverComboItems;
    String[] deviceIntTypeComboItems;

    public TreeManager t { get; set; }
    public TreeManager t_orig { get; set; }

    public EditWindow(Dictionary<string, string> _diObject, String[] _driverComboItems, String[] _deviceIntTypeComboItems)
    {..}
}

treeManager class:

public class TreeManager
{
    public TreeManager() { }

    public TreeManager(string title)
    {
        Title = title;            
    }

    public string Title { get; set; }

    public ObservableCollection<TreeManager> childElementsValue = new ObservableCollection<TreeManager>();

    public ObservableCollection<TreeManager> ChildElements
    {
        get { return childElementsValue; }
        set { childElementsValue = value; }
    }
}
  • 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-27T12:13:11+00:00Added an answer on May 27, 2026 at 12:13 pm

    The TreeManager class does not implement the INotifyPropertyChanged interface. So changes in the Title do not get propagated to the bindings and user interface.

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

Sidebar

Related Questions

I have a problem in silverlight which I need to convert this image(from database
all. I have a problem with uploading of the file in Silverlight application. Here
Problem I have a Silverlight 5 application using the treeview from the SDK. Now
I have a problem posting the data from silverlight to the aspx page which
I'm working on silverlight rss reader as schoolproject and I have one problem. I
I have a problem with the binding of the sessionfactory and working with two
I'm learning Silverlight for WP7 and have come across a slight problem: I want
I have a problem styling/templating an AccordionItem in the accordion control from the silverlight
Continuing my problem from yesterday, the Silverlight datagrid I have from this issue is
I have problem with return statment >.< I want to store all magazine names

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.