RibbonRadioButton.ToolTipImageSource, propriété
Obtient ou définit l'image qui est affichée dans l'info-bulle pour ce contrôle.
Espace de noms : Microsoft.Windows.Controls.Ribbon
Assembly : RibbonControlsLibrary (dans RibbonControlsLibrary.dll)
Syntaxe
'Déclaration
Public Property ToolTipImageSource As ImageSource
Get
Set
public ImageSource ToolTipImageSource { get; set; }
public:
property ImageSource^ ToolTipImageSource {
ImageSource^ get ();
void set (ImageSource^ value);
}
member ToolTipImageSource : ImageSource with get, set
function get ToolTipImageSource () : ImageSource
function set ToolTipImageSource (value : ImageSource)
Valeur de propriété
Type : System.Windows.Media.ImageSource
L'image à afficher dans l'Info-bulle.La valeur par défaut enregistrée est nullune référence null (Nothing en Visual Basic).Pour plus d'informations sur ce qui peut influencer la valeur, consultez Priorité de la valeur de propriété de dépendance.
Informations sur les propriétés de dépendance
Champ d'identificateur |
|
Propriétés de métadonnées ayant la valeur true |
Aucun |
Notes
Attention |
---|
Chaque contrôle de ruban hérite d'une propriété FrameworkElement.ToolTip.Si la propriété FrameworkElement.ToolTip est définie, l'info-bulle améliorée du ruban ne sera pas affichée ; l'info-bulle standard sera affichée à la place. |
Exemples
L'exemple suivant montre les balises utilisées pour créer l'info-bulle améliorée.
Info-bulle améliorée
<ribbon:RibbonRadioButton Label="Ribbon Control"
SmallImageSource="Images/Lightbulb16.png"
LargeImageSource="Images/Lightbulb32.png"
KeyTip="N"
ToolTipTitle="Command Name (Ctrl+N)"
ToolTipDescription="All ribbon commands should have enhanced tooltips to give the command name, shortcut key, description, and optional supplemental information."
ToolTipImageSource="Images/Suggestion32.png"
ToolTipFooterTitle="Press F1 for Help"
ToolTipFooterDescription="When practical, completely describe the command using a concise description. Link to Help only if further explanation is really necessary."
ToolTipFooterImageSource="Images/Help16.png" />
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.