ClassRadCallout
The RadCallout component can host any Control and is used to display additional information, warnings, hints, or to highlight relevant data. It provides a flexible way to create callout forms with customizable appearance, arrow direction, and animation effects.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Dialogs")]
public class RadCallout : Component, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentRadCallout
Implements:
Inherited Members
Constructors
RadCallout()
Initializes a new instance of the RadCallout class.
Declaration
public RadCallout()
Properties
AnimationManager
Gets the animation manager for the callout, which controls all animation settings and is responsible for showing and hiding animations. Use this property to configure the callout's animation behavior.
Declaration
public CalloutAnimationManager AnimationManager { get; }
Property Value
ArrowDirection
Gets or sets the direction of the callout's arrow. The arrow direction determines which side of the callout the arrow points from.
Declaration
public ArrowDirection ArrowDirection { get; set; }
Property Value
ArrowSize
Gets or sets the size of the callout's arrow. This property controls both the width and height of the arrow element.
ArrowType
Gets or sets the arrow type of the callout. Determines the visual style of the callout's pointing arrow.
Declaration
public CalloutArrowType ArrowType { get; set; }
Property Value
AssociatedControl
Gets or sets the control that is displayed inside the callout. Only a single control can be associated with RadCallout. If you need to display multiple controls, add them to a container control such as RadPanel and associate the container with the callout.
AutoClose
Gets or sets a value indicating whether the callout will automatically close when the user clicks outside of it. When true, the mouse is captured by the callout. When false, the user must close the callout manually or by calling Close().
CalloutForm
Gets the underlying RadCalloutForm instance that represents the callout window. This property provides access to the form for advanced configuration and manipulation.
Declaration
[Browsable(false)]
public RadCalloutForm CalloutForm { get; }
Property Value
CalloutType
Gets or sets the shape type of the callout. Determines whether the callout has a rectangular or rounded rectangular appearance.
Declaration
public CalloutType CalloutType { get; set; }
Property Value
CloseAction
Gets or sets the action to perform when the callout form is about to be closed. Determines whether the callout form is hidden or disposed when closing.
Declaration
public CalloutCloseAction CloseAction { get; set; }
Property Value
CornerRadius
Gets or sets the corner radius for rounded rectangle callouts. This property is only applicable when CalloutType is set to RoundedRectangle.
Distance
Gets or sets the distance between the callout and the target control or element. This distance is measured in pixels and affects the positioning of the callout relative to its target.
DropShadow
Gets or sets a value indicating whether the callout displays a drop shadow effect. The shadow appearance cannot be customized beyond enabling or disabling it.
ErrorCaption
Gets or sets the title for error messages displayed when the callout form is disposed. This message is shown when attempting to display a callout that has already been disposed.
ErrorMessage
Gets or sets the content for error messages displayed when the callout form is disposed. This message is shown when attempting to display a callout that has already been disposed.
MoveWithParentForm
Gets or sets a value indicating whether the callout will move along with its parent form when the form is moved. This property only has effect when AutoClose is set to false.
Methods
Close()
Closes the callout form. The actual behavior depends on the CloseAction property setting.
Declaration
public void Close()
CreateCalloutForm()
Creates the callout form instance. This method can be overridden to provide custom callout form implementation.
Declaration
protected virtual RadCalloutForm CreateCalloutForm()
Returns
A new instance of RadCalloutForm.
Dispose(bool)
Releases the resources used by the component and its associated callout form.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides
Show(Control)
Shows the callout form pointing to a specific control. If the callout form has been disposed, an error message will be displayed instead.
Declaration
public void Show(Control control)
Parameters
control
The control that the callout should point to.
Show(Control, Control, CalloutShapeSettings)
Shows a callout by given content over the provided target control.
Declaration
public static RadCallout Show(Control content, Control targetControl, CalloutShapeSettings shapeSettings = null)
Parameters
content
The control that represents the content of the callout.
targetControl
The target control.
shapeSettings
The callout shape settings related to callout shape, arrow direction, arrow size etc.
Returns
The callout.
Show(Control, Point, CalloutShapeSettings)
Shows a callout by given content over the provided target point.
Declaration
public static RadCallout Show(Control content, Point targetPoint, CalloutShapeSettings shapeSettings = null)
Parameters
content
The control that represents the content of the callout.
targetPoint
The target screen location.
shapeSettings
The callout shape settings related to callout shape, arrow direction, arrow size etc.
Returns
The callout.
Show(Control, RadElement, CalloutShapeSettings)
Shows a callout by given content over the provided target element.
Declaration
public static RadCallout Show(Control content, RadElement targetElement, CalloutShapeSettings shapeSettings = null)
Parameters
content
The control that represents the content of the callout.
targetElement
The target element.
shapeSettings
The callout shape settings related to callout shape, arrow direction, arrow size etc.
Returns
The callout.
Show(Control, string, string, string, CalloutShapeSettings)
Shows a screen tip in a callout over the provided target control.
Declaration
public static RadCallout Show(Control targetControl, string content, string caption = "", string footer = "", CalloutShapeSettings shapeSettings = null)
Parameters
targetControl
The target control.
content
The content of tool tip.
caption
The header(Caption) of tool tip.
footer
The footer of tool tip.
shapeSettings
The callout shape settings related to callout shape, arrow direction, arrow size etc.
Returns
Show(Point)
Shows the callout form pointing to a specific location in screen coordinates. If the callout form has been disposed, an error message will be displayed instead.
Declaration
public void Show(Point location)
Parameters
location
The screen coordinates where the callout should point to.
Show(Point, string, string, string, CalloutShapeSettings)
Shows a screen tip in a callout over the provided target point.
Declaration
public static RadCallout Show(Point targetPoint, string content, string caption = "", string footer = "", CalloutShapeSettings shapeSettings = null)
Parameters
targetPoint
The target screen location.
content
The content of tool tip.
caption
The header(Caption) of tool tip.
footer
The footer of tool tip.
shapeSettings
The callout shape settings related to callout shape, arrow direction, arrow size etc.
Returns
Show(RadCallout, Control, string, string, string)
Shows a screen tip in a given callout over the provided target control.
Declaration
public static void Show(RadCallout callout, Control targetControl, string content, string caption = "", string footer = "")
Parameters
callout
The callout.
targetControl
The target control.
content
The content of tool tip.
caption
The header(Caption) of tool tip.
footer
The footer of tool tip.
Show(RadCallout, Point, string, string, string)
Shows a screen tip in a given callout over the provided target screen point.
Declaration
public static void Show(RadCallout callout, Point targetPoint, string content, string caption = "", string footer = "")
Parameters
callout
The callout.
targetPoint
The target point.
content
The content of tool tip.
caption
The header(Caption) of tool tip.
footer
The footer of tool tip.
Show(RadCallout, RadElement, string, string, string)
Shows a screen tip in a given callout over the provided target element.
Declaration
public static void Show(RadCallout callout, RadElement targetElement, string content, string caption = "", string footer = "")
Parameters
callout
The callout.
targetElement
The target element.
content
The content of tool tip.
caption
The header(Caption) of tool tip.
footer
The footer of tool tip.
Show(RadElement)
Shows the callout form pointing to a specific RadElement. If the callout form has been disposed, an error message will be displayed instead.
Declaration
public void Show(RadElement element)
Parameters
element
The RadElement that the callout should point to.
Show(RadElement, string, string, string, CalloutShapeSettings)
Shows a screen tip in a callout over the provided target element.
Declaration
public static RadCallout Show(RadElement targetElement, string content, string caption = "", string footer = "", CalloutShapeSettings shapeSettings = null)
Parameters
targetElement
The target element.
content
The content of tool tip.
caption
The header(Caption) of tool tip.
footer
The footer of tool tip.
shapeSettings
The callout shape settings related to callout shape, arrow direction, arrow size etc.
Returns
Events
Closed
Occurs when the callout has been closed.
Declaration
public event FormClosedEventHandler Closed
Event Value
Closing
Occurs when the callout is about to be closed. This event is cancellable.
Declaration
public event FormClosingEventHandler Closing
Event Value
Opened
Occurs when the callout has been opened and is visible.
Opening
Occurs when the callout is about to be opened. This event is cancellable.
Declaration
public event CancelEventHandler Opening
Event Value