Class RadOffice2007ScreenTipElement
Represents a Microsoft Office 2007-style screen tip element that displays rich tooltip content with caption, main text, and optional footer sections.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadOffice2007ScreenTipElement : RadScreenTipElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IScreenTipContent
Remarks
RadOffice2007ScreenTipElement provides a sophisticated tooltip implementation that mimics the appearance and behavior of Microsoft Office 2007 screen tips. It supports multiple content sections including a caption header, main descriptive text, and an optional footer with separator line. The element uses a vertical stack layout to organize its content and provides comprehensive styling through CSS classes and primitive elements.
Constructors
RadOffice2007ScreenTipElement()
Declaration
public RadOffice2007ScreenTipElement()
Fields
CaptionVisibleProperty
Defines the dependency property for controlling caption visibility in the screen tip.
Declaration
public static RadProperty CaptionVisibleProperty
Field Value
RadProperty
|
FooterVisibleProperty
Properties
CaptionLabel
Gets the element that displays the caption
Declaration
public RadLabelElement CaptionLabel { get; }
Property Value
RadLabelElement
|
CaptionVisible
Gets or sets a value indicating whether the caption section of the screen tip is visible.
Declaration
public bool CaptionVisible { get; set; }
Property Value
System.Boolean
|
Remarks
When set to false, the caption label will be collapsed and not displayed in the screen tip. This property affects the layout and automatically adjusts the visual appearance of the tip.
FooterLine
FooterTextLabel
FooterVisible
MainTextLabel
Gets the element that displays the Text
Declaration
public RadLabelElement MainTextLabel { get; }
Property Value
RadLabelElement
|
ScreenTipBorder
Gets the BorderPrimitive instance that represents the screen tip border.
Declaration
public BorderPrimitive ScreenTipBorder { get; }
Property Value
BorderPrimitive
|
ScreenTipFill
Gets the FillPrimitive instance that represents the screen tip fill.
Declaration
public FillPrimitive ScreenTipFill { get; }
Property Value
FillPrimitive
|
Methods
CreateChildElements()
Creates and initializes the child elements that compose the Office 2007 screen tip layout.
Declaration
protected override void CreateChildElements()
Overrides
Remarks
This method sets up the complete visual structure including background fill, border, and content panels. The layout consists of a vertical stack panel containing caption, main text, footer line, and footer text elements. Each element is assigned appropriate CSS classes for theming and styling purposes.
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change notifications and updates the visual state of child elements accordingly.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
The event arguments containing information about the changed property. |
Overrides
Remarks
This method responds to changes in CaptionVisible and FooterVisible properties by updating the visibility state of the corresponding UI elements. When caption visibility changes, the caption label is shown or hidden. When footer visibility changes, both the footer line separator and footer text elements are affected.