共用方式為


RibbonGallery.ShowItemSelection Property

Definition

Gets or sets a value that indicates whether the currently selected RibbonDropDownItem is visually differentiated from the rest of the unselected items.

public:
 property bool ShowItemSelection { bool get(); void set(bool value); };
public bool ShowItemSelection { get; set; }
member this.ShowItemSelection : bool with get, set
Public Property ShowItemSelection As Boolean

Property Value

true if selected items are highlighted, otherwise false. The default is false.

Remarks

Setting the ShowItemSelection property to false does not cause the current selection to go away. The current selection is just not visually identified in the user interface.

The SelectedItem is guaranteed not to be null if this RibbonGallery has at least one RibbonDropDownItem in its Items collection. By default, the first RibbonDropDownItem in the Items collection is selected.

If the ShowItemSelection property is set to true, the Click event of the RibbonGallery is raised only when a user clicks an item that is not currently selected.

This property can be set at run time only under certain conditions. For more information, see Ribbon Object Model Overview.

Applies to