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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:38:29+00:00 2026-05-23T18:38:29+00:00

I have a Wizard control that has multiple steps. Controls that are not visible

  • 0

I have a Wizard control that has multiple steps. Controls that are not visible get removed from the visual tree. I have a ListBox on one page, that binds to an ObservableCollection<T>. When items get added or removed to that ListBoxon one page, the ListBox on another page (with the same ItemsSource), the binding on the other page does not get updated. I hope this explains my problem clearly enough.

How do I get this binding to update when the page gets added to the visual tree again ?

  • 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-23T18:38:30+00:00Added an answer on May 23, 2026 at 6:38 pm

    I cannot reproduce your problem. I was able to remove a ListBox from the visual tree, add objects to the ObservableCollection, and when I add it to the visual tree, items are actually updated.

    Try working around your problem by setting visibility to Collapsed rather than removing from Visual Tree.

    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
    
            this.listBox1.ItemsSource = o;
            this.listBox2.ItemsSource = o;
        }
    
        ObservableCollection<int> o = new ObservableCollection<int>();
        private void buttonList1_Click(object sender, RoutedEventArgs e)
        {
            if (this.listBox1.Parent == null)
                this.LayoutRoot.Children.Add(this.listBox1);
            else
                this.LayoutRoot.Children.Remove(this.listBox1);
    
            //this.listBox1.Visibility = this.listBox1.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;
        }
    
        private void buttonList2_Click(object sender, RoutedEventArgs e)
        {
            if (this.listBox2.Parent == null)
                this.LayoutRoot.Children.Add(this.listBox2);
            else
                this.LayoutRoot.Children.Remove(this.listBox2);
    
            //this.listBox2.Visibility = this.listBox2.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;
        }
    
        private void ButtonAddMore_Click(object sender, RoutedEventArgs e)
        {
            o.Add(o.Count);
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp:wizard control that contains five WizardSteps. All of these steps have
Good Afternoon All, I have a wizard control that contains 20 textboxes for part
I have inherited a working VB.NET 2.0 web app that has several User Controls
I have an ASP.NET site that uses a standard, wizard created login control. I
I am rather confused I have got a createuser wizard control that I use
I have a [silverlight] WizardContainer control that hosts a number of wizard pages. The
I have created a custom wizard control that dynamically loads usercontrols as you progress
I have a asp:Wizard control on a site running Framework 3.5. I acquired the
How can one have more than a Wizard control on the same page without
Here is a code snippet for an asp:Wizard control I have on an aspx

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.