Hi ,
I want to hide a tab only specific group of people in C#. How can i do it.
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Aug 2, 2015, 5:18 PM
if(currentUser == restricted) {tab.Visibility = Visibility.Collapsed; // WPF or WinForms
}
if(Role.IsUserInRoles("username", "role-name")) {// Ban him from looking at resource
}