示例#1
0
 /// <commentsfrom cref="RadTabStripElement.OnTabHovered" filter=""/>
 protected virtual void OnTabHovered(TabEventArgs args)
 {
     if (this.TabHovered != null)
     {
         this.TabHovered(this, args);
     }
 }
示例#2
0
        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;
                    }
                }
            }
        }