This is a migrated thread and some comments may be shown as answers.

UpdateLayout with ObservableCollection change

1 Answer 79 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Sehe
Top achievements
Rank 1
Sehe asked on 13 Jan 2012, 09:53 PM
Hello,

I recently updated my application to the 2011 Q3 DLLs. I have a tab control that binds to an ObservableCollection for the ItemsSource. I have to add an item to the ObservableCollection in code. I used to be able to do an UpdateLayout on the tab control, and it would add the new tab. It doesn't do this anymore. I can set the ItemsSource to null and back to the ObservableCollection to get the tab to show up, but that has other very bad consequences in my application.

Have you seen this problem with the UpdateLayout not working? Do you know of a work around?

Thanks,
Scott

1 Answer, 1 is accepted

Sort by
0
Sehe
Top achievements
Rank 1
answered on 16 Jan 2012, 04:50 PM
Never mind. I didn't realize that a co-worker made a change in this area. It was not an issue with the Tab-Control.
Tags
TabControl
Asked by
Sehe
Top achievements
Rank 1
Answers by
Sehe
Top achievements
Rank 1
Share this question
or