ClassCalloutPopupService
Represent a service that provides methods for showing a RadCallout control via animated popup.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public static class CalloutPopupService
Inheritance: objectCalloutPopupService
Fields
PopupClosedEvent
Identifies the PopupClosed routed event.
Declaration
public static readonly RoutedEvent PopupClosedEvent
Field Value
RoutedEvent
PopupClosingEvent
Identifies the PopupClosing routed event.
Declaration
public static readonly RoutedEvent PopupClosingEvent
Field Value
RoutedEvent
PopupOpenedEvent
Identifies the PopupOpened routed event.
Declaration
public static readonly RoutedEvent PopupOpenedEvent
Field Value
RoutedEvent
PopupOpeningEvent
Identifies the PopupOpening routed event.
Declaration
public static readonly RoutedEvent PopupOpeningEvent
Field Value
RoutedEvent
Properties
IsAnimationEnabled
Gets or sets a value indicating whether the show/close animations for all callout controls in the application will be enabled. If IsGlobalAnimationEnabled is False, this property has no effect.
Declaration
public static bool IsAnimationEnabled { get; set; }
Property Value
Methods
AddPopupClosedHandler(DependencyObject, RoutedEventHandler)
Adds handler for the PopupClosed event.
Declaration
public static void AddPopupClosedHandler(DependencyObject target, RoutedEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
RoutedEventHandler
The handler.
AddPopupClosingHandler(DependencyObject, CalloutPopupClosingEventHandler)
Adds handler for the PopupClosing event.
Declaration
public static void AddPopupClosingHandler(DependencyObject target, CalloutPopupClosingEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
CalloutPopupClosingEventHandler
The handler.
AddPopupOpenedHandler(DependencyObject, RoutedEventHandler)
Adds handler for the PopupOpened event.
Declaration
public static void AddPopupOpenedHandler(DependencyObject target, RoutedEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
RoutedEventHandler
The handler.
AddPopupOpeningHandler(DependencyObject, CalloutPopupOpeningEventHandler)
Adds handler for the PopupOpening event.
Declaration
public static void AddPopupOpeningHandler(DependencyObject target, CalloutPopupOpeningEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
CalloutPopupOpeningEventHandler
The handler.
Close(RadCallout)
Closes the parent popup of the given popup if any.
Declaration
public static void Close(RadCallout callout)
Parameters
callout
The callout which is previously shown in a popup.
CloseAll()
Closes all callouts in open popups.
Declaration
public static void CloseAll()
RemovePopupClosedHandler(DependencyObject, RoutedEventHandler)
Removes handler for the PopupClosed event.
Declaration
public static void RemovePopupClosedHandler(DependencyObject target, RoutedEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
RoutedEventHandler
The handler.
RemovePopupClosingHandler(DependencyObject, CalloutPopupClosingEventHandler)
Removes handler for the PopupClosing event.
Declaration
public static void RemovePopupClosingHandler(DependencyObject target, CalloutPopupClosingEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
CalloutPopupClosingEventHandler
The handler.
RemovePopupOpenedHandler(DependencyObject, RoutedEventHandler)
Removes handler for the PopupOpened event.
Declaration
public static void RemovePopupOpenedHandler(DependencyObject target, RoutedEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
RoutedEventHandler
The handler.
RemovePopupOpeningHandler(DependencyObject, CalloutPopupOpeningEventHandler)
Removes handler for the PopupOpening event.
Declaration
public static void RemovePopupOpeningHandler(DependencyObject target, CalloutPopupOpeningEventHandler handler)
Parameters
target
DependencyObject
The target.
handler
CalloutPopupOpeningEventHandler
The handler.
Show(RadCallout, FrameworkElement)
Shows a callout in an animated popup over the provided placement target object.
Declaration
public static void Show(RadCallout callout, FrameworkElement placementTarget)
Parameters
callout
The callout to show.
placementTarget
FrameworkElement
The placement target.
Show(RadCallout, FrameworkElement, CalloutPopupSettings)
Shows a callout in an animated popup over the provided placement target with a custom popup settings.
Declaration
public static void Show(RadCallout callout, FrameworkElement placementTarget, CalloutPopupSettings settings)
Parameters
callout
The callout to show.
placementTarget
FrameworkElement
The placement target.
settings
The settings for popup and animation.