Ribbon.ContextualTabGroups Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection that contains all of the RibbonContextualTabGroup items in the Ribbon.
public:
property System::Collections::ObjectModel::Collection<System::Windows::Controls::Ribbon::RibbonContextualTabGroup ^> ^ ContextualTabGroups { System::Collections::ObjectModel::Collection<System::Windows::Controls::Ribbon::RibbonContextualTabGroup ^> ^ get(); };
[System.ComponentModel.Bindable(true)]
public System.Collections.ObjectModel.Collection<System.Windows.Controls.Ribbon.RibbonContextualTabGroup> ContextualTabGroups { get; }
[<System.ComponentModel.Bindable(true)>]
member this.ContextualTabGroups : System.Collections.ObjectModel.Collection<System.Windows.Controls.Ribbon.RibbonContextualTabGroup>
Public ReadOnly Property ContextualTabGroups As Collection(Of RibbonContextualTabGroup)
Property Value
The collection of RibbonContextualTabGroup items in the Ribbon if one exists; otherwise, a new empty collection.
- Attributes
Examples
The following example shows a RibbonTab named Pens that is in the Ink Tools contextual tab group.
</ribbon:Ribbon>
<ribbon:RibbonTab Name="Pens" Header="Pens" ContextualTabGroupHeader="Ink Tools" >
<!-- Ribbon Tab Content -->
</ribbon:RibbonTab>
<ribbon:Ribbon.ContextualTabGroups>
<ribbon:RibbonContextualTabGroup Header="Ink Tools" Visibility="Visible" Background="Green" />
</ribbon:Ribbon.ContextualTabGroups>
</ribbon:Ribbon>
Remarks
You use a contextual tab to display groups of commands that are relevant only in a particular context. Contextual tab groups are shown or hidden based on specified criteria. For example, an Ink Tools tab group might be shown when tablet input is detected, or a Picture Tools tab group might be shown when an Image object is selected.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기