ZoomPopup
Hosts a RadElement in a non-activating popup and animates its scale; after hiding, it restores the element's original parent and layout settings when that parent remains valid.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[RadToolboxItem(false)]
public class ZoomPopup : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IMessageListener
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlZoomPopup...
Implements:
Inherited Members
Constructors
Creates a zoom popup that animates the element to the supplied target scale.
public ZoomPopup(RadElement element, SizeF zoomFactor, bool waitForAnimationFinished)
The attached element to host temporarily in the popup.
zoomFactorSizeFThe target scale applied during the opening animation.
waitForAnimationFinishedboolStored but not read by the current implementation.
Creates a zoom popup with an optional starting rectangle and the supplied target scale.
public ZoomPopup(RadElement element, SizeF zoomFactor, Rectangle initialBounds, bool waitForAnimationFinished)
The attached element to host temporarily in the popup.
zoomFactorSizeFThe target scale applied during the opening animation.
initialBoundsRectangleThe popup's starting bounds in screen coordinates; Empty uses the element's current bounds.
waitForAnimationFinishedboolStored but not read by the current implementation.
Creates a zoom popup using the element's current on-screen bounds and the supplied target scale.
public ZoomPopup(RadElement element, SizeF zoomFactor)
The attached element to host temporarily in the popup.
zoomFactorSizeFThe target scale applied during the opening animation.
Fields
Raised after the hosted RadItem is clicked and the popup closes.
public EventHandler Clicked
Raised after a loaded popup is hidden and restoration of the hosted element has been attempted; restoration is skipped if its original parent is no longer valid.
public EventHandler Closed
Properties
Gets or sets the animation frames count
[Browsable(true)]
public int AnimationFrames { get; set; }
Gets or sets the animation interval (in miliseconds)
[Browsable(true)]
public int AnimationInterval { get; set; }
Configures the popup as non-activating and enables the native shadow when supported and HasShadow is true.
protected override CreateParams CreateParams { get; }
Overrides:
Methods
Temporarily reparents the source element into the popup and saves its original layout state for restoration.
protected override void CreateChildItems(RadElement parent)
The popup root element that will host the source element.
Overrides:
Declines capture-change requests from elements hosted in the popup.
protected override bool ProcessCaptureChangeRequested(RadElement element, bool capture)
The element requesting a capture change.
captureboolWhether the element is requesting capture or release.
Returns:false for every request.
Overrides:
Declines focus requests from elements hosted in the popup.
protected override bool ProcessFocusRequested(RadElement element)
The element requesting focus.
Returns:false because the popup does not approve focus requests.
Overrides:
Attempts to restore the hosted element and raises the close callbacks when a loaded popup is hidden.
protected override void SetVisibleCore(bool value)
The requested visibility state.
Overrides:
Shows the popup without activating it and starts the element's scale animation.
public void Show()
Returns a no-activate response to mouse-activation messages, hides on application-activation messages, and suppresses left, middle, and right button down, up, and double-click messages during the animation.
protected override void WndProc(ref Message m)
The Windows message being processed.
Overrides: