Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7903115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:39:56+00:00 2026-06-03T09:39:56+00:00

I’m trying to implement in WPF tab that behaves like the one in IE9.

  • 0

I’m trying to implement in WPF tab that behaves like the one in IE9.
When you open in the last many tabs, they are getting smaller and also to buttons are showen in the left and in the right, for scrolling between the tabs.

Any help would be very appritiated.

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:39:58+00:00Added an answer on June 3, 2026 at 9:39 am

    create two main tab (main tabs are these two tab in answer) like this

      <TabItem   Header="«" Name="LeftTab"/>
      <TabItem Header="»" Name="RightTab"/>
    

    set the visible of them to hiden. now add all tabs you want(with c# code or xaml) but dont forget set tag for all tab you add like below

        <TabItem   Header="new" Name="tiNew" Tag="1"/>
        <TabItem Header="edit" Name="tiEdit" Tag="2"/>
        ...
    

    now when tabs count go more than normal and you cant show all in 1 page Do Under :

    1.change visible of two main tab..

     bool is_Left_Right_tabVisible = false;
     if (tabControl1.Items.Count > 8)
     {
         LeftTab.Visibility = System.Windows.Visibility.Visible;
         RightTab.Visibility = System.Windows.Visibility.Visible;
         is_Left_Right_tabVisible = true;
    
      }
      else
      {
         LeftTab.Visibility = System.Windows.Visibility.Hidden;
         RightTab.Visibility = System.Windows.Visibility.Hidden;
         is_Left_Right_tabVisible = false;
       }
    

    2.hidden all extra tab and only show some of them (example : show two main tab And show tab with tag 1-8)

    3.if user click on main tabs (left or right tab) hidden one tab and visible another tab (example: you have lefttab-1-2-3-4-righttab when user click on right hidden NO 1 and vsible No 5 And focus on No 5)

        private void RightTab_MouseUp(object sender, MouseButtonEventArgs e)
        {
        if (is_Left_Right_tabVisible)
        {
            TabItem ti = sender as TabItem;
            if (ti.Name == "RightTab")
            {
                //find right tab must set to visible
                int Showtabindex = 0;
                var t1 = tabControl1.Items.OfType<TabItem>().Where(x => x.Visibility == System.Windows.Visibility.Hidden);
                foreach (var item in t)
                {
                    if (((int)item.Tag) > Showtabindex)
                        Showtabindex = (int)item.Tag;
                }
                //find left tab must go invisible
                int Hiddentabindex = Showtabindex;
                var t2 = tabControl1.Items.OfType<TabItem>().Where(x => x.Visibility == System.Windows.Visibility.Visible);
                foreach (var item in t2)
                {
                    if (((int)item.Tag) < Hiddentabindex)
                        Hiddentabindex = (int)item.Tag;
                }
    
                (tabControl1.Items[Hiddentabindex] as TabItem).Visibility = System.Windows.Visibility.Hidden;
                (tabControl1.Items[Showtabindex] as TabItem).Visibility = System.Windows.Visibility.Visible;
    
                //you can create drag and drop for tabs then user can change tab TAG
            }
            else if (ti.Name == "LeftTab")
            {
                //.....
            }
        }
    }
    

    i know it was abit hard but when i create a good user control i feel good .
    but dont forget in this usercontrol we use tabcontrol we can create a custom tab control from first and dont use this tabcontrol.

    you also can create animation for tabs when those change opacity and move animation would be good check this post

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.