/// <commentsfrom cref="RadTabStripElement.OnTabHovered" filter=""/> protected virtual void OnTabHovered(TabEventArgs args) { if (this.TabHovered != null) { this.TabHovered(this, args); } }
private void tabStripElement_TabSelected(object sender, TabEventArgs args) { if (this.enableTabControlMode) { foreach (RadItem item in this.Items) { TabItem tabItem = item as TabItem; if (tabItem == null) { continue; } if (tabItem == args.TabItem) { tabItem.ContentPanelHost.Visibility = ElementVisibility.Visible; } else { tabItem.ContentPanelHost.Visibility = ElementVisibility.Hidden; } } } }