TabControl - Fixing a Tab Item to right most position

k_swapnil
k_swapnil used Ask the Experts™
on
Hi,

I need to make a Style of WPF TabControl in which one Item is fixed at the rightmost corner and rest are on the left side. Please see the attached image to get a more clear view.

Thx!
Swaps... Custom TabControl
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Shahan AyyubSenior Software Engineer

Commented:
You can add tabs and set the visibility property to Hidden.

like this:

tab1  tab2  tab3  tab4 tab5........................................................... tab N

if you to visible tabs: 1,2,3 and tab N

click on tab 4 and in property window see the Visibility property and set to Hidden.
click on tab 5 and in property window see the Visibility property and  set to Hidden.
......
......
......
......
......


Keep Tab N as it is.


Cheers,
-Shahan


before.PNG
after.PNG
This won't work as tab items can be added/removed dynamically also the Last tab item should be present on the rightmost corent always.

Anyways I have solved the issue.... thanks for your help!

Thx!
Swaps....

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial