MenuItemBinding.Selectable 属性
定义
获取或设置一个值,该值指示应用 MenuItemBinding 对象的菜单项是否可被选中,或是否为“可单击的”。Gets or sets a value that indicates whether the menu item to which the MenuItemBinding object is applied can be selected, or is "clickable."
public:
property bool Selectable { bool get(); void set(bool value); };
public bool Selectable { get; set; }
member this.Selectable : bool with get, set
Public Property Selectable As Boolean
属性值
如果应用 MenuItemBinding 的菜单项可被选中,则为 true,否则为 false。true if the menu item to which the MenuItemBinding is applied is selectable; otherwise, false.
注解
当 Menu 控件绑定到数据源时,请使用 Selectable 属性设置 MenuItem.Selectable 对象的属性 MenuItem 。When the Menu control is bound to a data source, use the Selectable property to set the MenuItem.Selectable property of a MenuItem object. 此设置与应用对象的所有菜单项共享 MenuItemBinding 。This setting is shared with all menu items to which the MenuItemBinding object is applied. 当此属性设置为时 false ,菜单项不是 "可单击的",而是显示所有子项。When this property is set to false, the menu item is not "clickable" but any child items are displayed.