ListBox became a white block :( RRS feed

  • Question

  • I'm sorry for my poor English... Here, i used [] instead of THE PAIR-TAG. I hope everybody understand me.
    [stackpanel x:name="spContent"]
    [listbox x:name="lb" /]
    All is ok after i set lb.ItemsSource in code. and lb.ItemsSource will not be changed.

    but after i used codes below to change the visibility of spContent, lb became a white block, data in it disappeared( of course, now spContent.Visibility == Visibility.Visible)

    if ( spContent.Visibility == Visibility.Visible ) { // open
    spSetWidget.Visibility = Visibility.Collapsed;
    spContent.Visibility = Visibility.Collapsed;
    linkSet.Visibility = Visibility.Collapsed;
    else { // close
    spSetWidget.Visibility = currentSetAreaVisibility;
    spContent.Visibility = Visibility.Visible;
    linkSet.Visibility = Visibility.Visible;

    My apps is doing sth like iGoogle. You can see the problem in www.witchhat.cn -- not AD
    Sunday, February 1, 2009 2:39 AM


  • On the page you're referencing the all ListBoxes seem to show correctly. Have you managed to fix the problem or I'm misreading you?

    Sunday, February 1, 2009 5:59 AM