This project has moved and is read-only. For the latest updates, please go here.

Control suite requires a control not vm to run correectly

Nov 17, 2010 at 2:22 PM
I am using devexpress. Their tab control, and it appears any tab control an run using the VM. But, to run correctly it requires the control be added not the VM. If you assign VM it reload info every time. I do no want to ruin the pattern but may have to. Any suggestion on the best way to handle this?
Nov 17, 2010 at 8:29 PM

I was previously assigning the Tab controls ItemsSource to the list of WorkspaceViewModel objects. But by doing so it becomes data aware and the loading of data is basically refreshed everytime you change tabs. This causes huge delays and you lose your current Selected Items.

So I set up a listener to add to the Tab manually. But I can't add the workspace I have to add the associated control. For now I am adding a reference to the control, but I hate it.

What would be a better way.