New to Telerik UI for WPFStart a free 30-day trial

Represents a customizable callout control that provides various shapes and styles for displaying content in a user-friendly manner. The RadCallout class allows users to configure properties such as callout type, arrow type, geometry, text alignment, wrapping, trimming, and corner radius, enabling the creation of visually distinct callouts for user interfaces. It inherits from ContentControl and supports properties for defining geometry and visual appearance, allowing for flexible layouts and detailed customization. Ideal for enhancing user experience with informative overlays that can be styled to match application design.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
[TelerikToolboxCategory("Common")]
public class RadCallout : ContentControl

Inheritance: objectRadCallout

Constructors

Initializes a new instance of the RadCallout class.

C#
public RadCallout()

Fields

ArrowAnchorPointProperty

DependencyProperty

Identifies the ArrowAnchorPoint property.

C#
public static readonly DependencyProperty ArrowAnchorPointProperty

ArrowBasePoint1Property

DependencyProperty

Identifies the ArrowBasePoint1 property.

C#
public static readonly DependencyProperty ArrowBasePoint1Property

ArrowBasePoint2Property

DependencyProperty

Identifies the ArrowBasePoint2 property.

C#
public static readonly DependencyProperty ArrowBasePoint2Property

ArrowTypeProperty

DependencyProperty

Identifies the ArrowType property.

C#
public static readonly DependencyProperty ArrowTypeProperty

CalloutTypeProperty

DependencyProperty

Identifies the CalloutType property.

C#
public static readonly DependencyProperty CalloutTypeProperty

CornerRadiusProperty

DependencyProperty

Identifies the CornerRadius property.

C#
public static readonly DependencyProperty CornerRadiusProperty

GeometryProperty

DependencyProperty

Identifies the Geometry property.

C#
public static readonly DependencyProperty GeometryProperty

GeometryResultProperty

DependencyProperty

Identifies the Geometry property.

C#
public static readonly DependencyProperty GeometryResultProperty

Identifies the MeasurePathWithInfinity property.

C#
public static readonly DependencyProperty MeasurePathWithInfinityProperty

StretchProperty

DependencyProperty

Identifies the Stretch property.

C#
public static readonly DependencyProperty StretchProperty

StrokeDashArrayProperty

DependencyProperty

Identifies the StrokeDashArray property.

C#
public static readonly DependencyProperty StrokeDashArrayProperty

StrokeThicknessProperty

DependencyProperty

Identifies the StrokeThickness property.

C#
public static readonly DependencyProperty StrokeThicknessProperty

TextAlignmentProperty

DependencyProperty

Identifies the TextAlignment property.

C#
public static readonly DependencyProperty TextAlignmentProperty

TextTrimmingProperty

DependencyProperty

Identifies the TextTrimming property.

C#
public static readonly DependencyProperty TextTrimmingProperty

TextWrappingProperty

DependencyProperty

Identifies the TextWrapping property.

C#
public static readonly DependencyProperty TextWrappingProperty

Properties

Gets or sets the anchor point of the arrow geometry.

C#
public Point ArrowAnchorPoint { get; set; }

Gets or sets the first base point of the arrow geometry.

C#
public Point ArrowBasePoint1 { get; set; }

Gets or sets the second base point of the arrow geometry.

C#
public Point ArrowBasePoint2 { get; set; }

Gets or sets the arrow type of the callout control.

C#
public CalloutArrowType ArrowType { get; set; }

Gets or sets the callout type of the callout control.

C#
public CalloutType CalloutType { get; set; }

Gets or sets the corner radius used for the RoundedRectangle geometry.

C#
public double CornerRadius { get; set; }

Geometry

Geometry

Gets or sets the desired (body) geometry of the callout control.

C#
public Geometry Geometry { get; set; }

Gets the combined (body and arrow) geometry of the callout control.

C#
public Geometry GeometryResult { get; }

Gets or sets a value indicating whether the path in the control template is measured with infinity or not.

C#
public bool MeasurePathWithInfinity { get; set; }

Stretch

Stretch

Gets or sets the stretch of the path from the control template.

C#
public Stretch Stretch { get; set; }

StrokeDashArray

DoubleCollection

Gets or sets the stroke dash array of the underlying path.

C#
public DoubleCollection StrokeDashArray { get; set; }

Gets or sets the stroke thickness of the underlying path.

C#
public double StrokeThickness { get; set; }

TextAlignment

TextAlignment

Gets or sets the text alignment of the underlying TextBlock.

C#
public TextAlignment TextAlignment { get; set; }

TextTrimming

TextTrimming

Gets or sets the text trimming mode of the underlying TextBlock.

C#
public TextTrimming TextTrimming { get; set; }

TextWrapping

TextWrapping

Gets or sets the text wrapping mode of the underlying TextBlock.

C#
public TextWrapping TextWrapping { get; set; }

Methods

Builds the arrow geometry which will be combined with the main geometry for the body of the callout.

C#
protected virtual Geometry GetArrowGeometry()
Returns:

Geometry

The built arrow geometry.

Builds the base (body) geometry which will be combined with the main geometry for the body of the callout.

C#
protected virtual Geometry GetBaseGeometry()
Returns:

Geometry

The built base geometry for the callout.

Provides the behavior for the "Measure" pass of layout.

C#
protected override Size MeasureOverride(Size constraint)
Parameters:constraintSize

The available size that this element can give to child elements.

Returns:

Size

The size that this element determines it needs during layout, based on its calculations of child element sizes.

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

C#
public override void OnApplyTemplate()

Creates a RadCalloutAutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.