隐藏某些用户的标签 [英] Hiding a Tab from a certain users

查看:70
本文介绍了隐藏某些用户的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天

我想帮助隐藏一个  "删除"某些用户登录时的选项卡。除了在alter info页面中有权删除的管理员之外,每个人都应该隐藏该选项卡,如下图所示。

Good Day

I would like assistance with regards to hiding a  "delete" tab on logon for certain users.The tab should be hidden from everyone except the admin who has rights to delete in the alter info page as shown in the image below.

问候

mcfee

推荐答案

美好的一天

我想帮助隐藏一个  "删除"某些用户登录时的选项卡。除了在alter info页面中有权删除的管理员之外,每个人都应该隐藏该选项卡,如下图所示。

Good Day

I would like assistance with regards to hiding a  "delete" tab on logon for certain users.The tab should be hidden from everyone except the admin who has rights to delete in the alter info page as shown in the image below.

问候

mcfee




嗨    mcfee,



我认为这是一个设计逻辑。



例如:



您可以为用户设置不同的规则。 



也许管理员有一个字段 " CanDelete" ='true' 并绑定到TabItem 
可见性=" {Binding CanDelete}"





最好的问候


$
Yong Lu





Hi   mcfee,

I think this is a design logic.

For example:

You can have a different rules for users. 

Maybe the admin has a field "CanDelete"= 'true' and binding to the TabItem  Visibility="{Binding CanDelete}"


Best regards

Yong Lu



这篇关于隐藏某些用户的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆