Прочетете на английски Редактиране

Споделяне чрез


RibbonCheckBox.Label Property

Definition

Gets or sets the text that is displayed next to or below the control.

C#
public string Label { get; set; }

Property Value

The text that is displayed next to or below the control. The registered default is null. For more information about what can influence the value, see Dependency Property Value Precedence.

Examples

The following example shows how to set the Label property on a RibbonCheckBox.

XAML
<ribbon:RibbonCheckBox Label="Reminder"                                    
                       SmallImageSource="Images/Reminder16.png" 
                       LargeImageSource="Images/Reminder32.png" 
                       KeyTip="R"/>

Remarks

Set the IsLabelVisible property on the ControlSizeDefinition to control the visibility of the label.

Dependency Property Information

Item Value
Identifier field LabelProperty
Metadata properties set to true None

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10