I am trying to build an application with an ApplicationModel. The model takes care of my diferent ModuleApplications which can be loaded into a TabControl, when the user clicks a button in the toolbar. The ModuleApplications implement the IActiveAware interface.
Adding views to the TabControl works but the latest added view is never set as SelectedItem automatically.
I don't know what I am doing wrong. Here is how I activate a ModuleApplication:
app = null;
int kontoID =
List<IViewsCollection> list =
foreach (ActiveAwareModuleApplicationController con
app = (BuchungModuleApplication)con;
The view gets activated but not set as SelectedItem. I thought I would have to deactivate the other views and made an else wher I said app.IsActive = false;
My implementation took this great article as base:
Has anybody an idea what could be wrong?
Thanks in advance!
Check if this is causing the issue for you.
Note: The release was refreshed on 2/25/2009 to correct an issue with
regions and an issue with an upcoming Silverlight release.
You can download the latest release from the 'final version' link above. You can verify if you have the latest version of the self-extracting archive by examining the Digital Signature timestamp it should read 'Tuesday, February 24, 2009 12:00:07 PM'.
I checked the timestamp and indeed we had the older version. I replaced it with the new one, but the problem remains. The newly added view is not set as selected item.