Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

Tabitem re-order depending on login

Is there a way to re-order the tabitems in my application based upon login, This is an XBAP application..

On the design page we can right click on the tabitem and select order and one of the bring forward or send back etc.. but I would like to re-order tabitems programatically... Is this possible? This is pretty critical for my application so any help is greatly appreciated..
Thanks!
0
Pavithra_S
Asked:
Pavithra_S
1 Solution
 
OpalelementCommented:
I don't know about XBAP as I have never used it, but I do know that in Visual C# you can do tabControl.TabPages.RemoveAt and InsertAt, meaning you could move it by deleting and then reinserting
0
 
Pavithra_SAuthor Commented:
The following code worked...
tabControl.Items.Remove(item);
tabControl.Items.Insert(p, item)
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now