private void UpdateContentsTabViewsIfNecessary() { if (ShowContentsTab && _contentsTabAdded && this.Items.Count > 1) { ContentTabView view = this.Items[0] as ContentTabView; if (view != null) { view.SetViews(BuildDictionaryOfViewsAndHeaders()); } } }
protected override bool IsItemItsOwnContainerOverride(object item) { if (_itemsStrategy == null) { SetupItemsStrategy(); } //need the second check only for .NET 4.0 because this method gets called way more often for some reason. if (item is ContentTabView && !(this.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)) { _contentTabView = item as ContentTabView; } return(item is FabTabItem); }
protected override DependencyObject GetContainerForItemOverride() { //Added some extra _contentTabview stuff in this method in the if conditional //as well as nulling it out outside of the if conditional. Also had to //null out _contentTabView in OnSelectionChanged. All these changes were necessary //because of some differing behavior in .NET 4.0 beta for when IsItemsItsOwnContainer //gets called which caused me state issues with_contentTabView. if (_itemsStrategy == null) { SetupItemsStrategy(); } if (_contentTabView != null) { ContentTabItem tabItem = CreateContentTabItem(); _contentTabView = null; return(tabItem); } return(CreateNewFabTabItemAndWireUpClosingEvent()); }
protected override bool IsItemItsOwnContainerOverride(object item) { if (_itemsStrategy == null) { SetupItemsStrategy(); } //need the second check only for .NET 4.0 because this method gets called way more often for some reason. if (item is ContentTabView && !(this.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)) { _contentTabView = item as ContentTabView; } return (item is FabTabItem); }
protected override DependencyObject GetContainerForItemOverride() { //Added some extra _contentTabview stuff in this method in the if conditional //as well as nulling it out outside of the if conditional. Also had to //null out _contentTabView in OnSelectionChanged. All these changes were necessary //because of some differing behavior in .NET 4.0 beta for when IsItemsItsOwnContainer //gets called which caused me state issues with_contentTabView. if (_itemsStrategy == null) { SetupItemsStrategy(); } if (_contentTabView != null) { ContentTabItem tabItem = CreateContentTabItem(); _contentTabView = null; return tabItem; } return CreateNewFabTabItemAndWireUpClosingEvent(); }
internal object GetContentsTab() { ContentTabView contentTabView = new ContentTabView(this); return contentTabView; }
internal object GetContentsTab() { ContentTabView contentTabView = new ContentTabView(this); return(contentTabView); }