Currently, I cannot access the Views count in a region. Being told that IViewsCollection does not have a Count() method. I have an instance of the shell region manager in a presenter that was passed in via the constructor as IRegionManager.
I recently made two changes to the TabControlRegionAdaptor and recompiled the Composite.Presentation.dll - they were the TabItem HeaderTemplate fix (suggested here: http://compositewpf.codeplex.com/WorkItem/View.aspx?WorkItemId=4599) and I also wrapped TabItem
with a custom TabItem which does some stuff OnApplyTemplate. I don't see how that could suddenly make the Count() method unavailable in the region, but could it?
Just really confused as I see plenty of examples like this:
IRegion mainRegion = regionManager.Regions[regionName];
int viewsAmount = mainRegion.Views.Count();
That snippet will not compile for me....
Thanks in advance for any suggestions and apologies if I am missing something really obvious....