Class RadCollapsiblePanelElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadCollapsiblePanelElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadCollapsiblePanelElement(RadCollapsiblePanel)
Initializes a new instance of the Rad
Declaration
public RadCollapsiblePanelElement(RadCollapsiblePanel ownerControl)
Parameters
Rad The owner control. |
Fields
AnimationEasingTypeProperty
AnimationFramesProperty
AnimationIntervalProperty
AnimationTypeProperty
ContentSizingModeProperty
DefaultAnimatedProperty
ExpandDirectionProperty
IsExpandedProperty
SlideAnimationAnimatedProperty
Declaration
protected static readonly RadProperty SlideAnimationAnimatedProperty
Field Value
Properties
AnimationEasingType
Gets or sets the easing type to be applied to the animations
Declaration
public RadEasingType AnimationEasingType { get; set; }
Property Value
Rad The animation easing type. |
AnimationFrames
Gets or sets the animation frames.
Declaration
public int AnimationFrames { get; set; }
Property Value
System. The animation frames. |
AnimationInterval
Gets or sets the animation interval.
Declaration
public int AnimationInterval { get; set; }
Property Value
System. The animation interval. |
AnimationType
Gets or sets the type of the expand or collapse animation.
Declaration
public CollapsiblePanelAnimationType AnimationType { get; set; }
Property Value
Collapsible The type of the animation. |
ContentSizingMode
Gets or sets the content sizing mode.
Declaration
public CollapsiblePanelContentSizingMode ContentSizingMode { get; set; }
Property Value
Collapsible The content sizing mode. |
EnableAnimation
Gets or sets a value indicating whether to use animation to expand or collapse the control.
Declaration
public bool EnableAnimation { get; set; }
Property Value
System.
|
ExpandDirection
Gets or sets the expand direction.
Declaration
public RadDirection ExpandDirection { get; set; }
Property Value
Rad The expand direction. |
HeaderElement
Gets the header element.
Declaration
public CollapsiblePanelHeaderElement HeaderElement { get; }
Property Value
Collapsible The header element. |
HeaderText
Gets or sets the header text.
Declaration
public string HeaderText { get; set; }
Property Value
System. The header text. |
HorizontalHeaderAlignment
Gets or sets the horizontal header alignment.
Declaration
public RadHorizontalAlignment HorizontalHeaderAlignment { get; set; }
Property Value
Rad The horizontal header alignment. |
IsAnimating
Gets or sets a value indicating whether the control is currently animating.
Declaration
public bool IsAnimating { get; protected set; }
Property Value
System.
|
IsExpanded
Gets or Sets a value indicating whether the control is expanded.
Declaration
public bool IsExpanded { get; set; }
Property Value
System.
|
LayoutElement
Gets the layout element.
Declaration
public CollapsiblePanelLayoutElement LayoutElement { get; }
Property Value
Collapsible The layout element which is responsible for the position of the ControlsContainer |
OwnerBoundsCache
This value is set when the control is about to be collapsed and is used to restore the control's size when expanding. It should only be set by the control itself.
Declaration
public Rectangle OwnerBoundsCache { get; set; }
Property Value
System.
|
ShowHeaderLine
Gets or sets a value indicating whether to show a line primitive in the header.
Declaration
public bool ShowHeaderLine { get; set; }
Property Value
System.
|
VerticalHeaderAlignment
Gets or sets the vertical header alignment.
Declaration
public RadVerticalAlignment VerticalHeaderAlignment { get; set; }
Property Value
Rad The vertical header alignment. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
Collapse()
Collapses the control. Will not have effect if the control is already collapsed or is animating. Can be canceled from the Collapsing event.
Declaration
public virtual void Collapse()
Collapse(Boolean, Boolean)
Collapses the control. Will not have effect if the control is already collapsed or is animating. Can be canceled from the Collapsing event.
Declaration
public virtual void Collapse(bool ignoreIsExpanded, bool stopAnimations)
Parameters
System. if set to |
System. if set to |
CreateAnimation()
Creates the Animated
Declaration
protected virtual AnimatedPropertySetting CreateAnimation()
Returns
CreateAnimation(Boolean)
Creates the Animated
Declaration
protected virtual AnimatedPropertySetting CreateAnimation(bool isExpanded)
Parameters
System. if set to |
Returns
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateCollapseAnimation()
Creates the collapse animation.
Declaration
protected AnimatedPropertySetting CreateCollapseAnimation()
Returns
Animated The new Animated |
CreateExpandAnimation()
Creates the expand animation.
Declaration
protected AnimatedPropertySetting CreateExpandAnimation()
Returns
CreateHeaderElement()
Creates the header element.
Declaration
protected virtual CollapsiblePanelHeaderElement CreateHeaderElement()
Returns
CreateLayoutElement()
Creates the layout element.
Declaration
protected virtual CollapsiblePanelLayoutElement CreateLayoutElement()
Returns
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.
|
Overrides
ExecuteCollapseFinalizations()
Executes the collapse finalizations. This method is invoked after the panel has collapsed.
Declaration
protected virtual void ExecuteCollapseFinalizations()
Exceptions
System. If the current enumeration is not supported |
ExecuteCollapsePreparations()
Executes the collapse preparations. This method is invoked before the panel starts collapsing.
Declaration
protected virtual void ExecuteCollapsePreparations()
Exceptions
System. If the current enumeration is not supported |
ExecuteExpandFinalizations()
Executes the expand finalizations. This method is invoked after the panel has expanded.
Declaration
protected virtual void ExecuteExpandFinalizations()
Exceptions
System. If the current enumeration is not supported |
ExecuteExpandPreparations()
Executes the expand preparations. This method is invoked before the panel starts expanded.
Declaration
protected virtual void ExecuteExpandPreparations()
Exceptions
System. If the current enumeration is not supported |
Expand()
Expands the control. Will not have effect if the control is already expanded or is animating. Can be canceled from the Expanding event.
Declaration
public virtual void Expand()
Expand(Boolean, Boolean)
Expands the control. Will not have effect if the control is already expanded or is animating. Can be canceled from the Expanding event.
Declaration
public virtual void Expand(bool ignoreIsExpanded, bool stopAnimations)
Parameters
System. if set to |
System. if set to |
GetObjectToBeAnimated()
Gets the object to be animated. This object is used by the current animation object.
Declaration
protected virtual RadObject GetObjectToBeAnimated()
Returns
Exceptions
System. If the current enumeration is not supported |
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
OnCollapsed()
Declaration
protected virtual void OnCollapsed()
OnCollapsing()
Declaration
protected virtual bool OnCollapsing()
Returns
System.
|
OnExpanded()
Declaration
protected virtual void OnExpanded()
OnExpanding()
Declaration
protected virtual bool OnExpanding()
Returns
System.
|
OnHeaderButtonClick(Object, EventArgs)
Called when the button in the CollapsiblePanel's header is clicked.
Declaration
protected virtual void OnHeaderButtonClick(object sender, EventArgs e)
Parameters
System. The sender. |
System. The System. |
OnPropertyChanged(RadPropertyChangedEventArgs)
Raises the Property
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Rad The Rad |
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
Parameters
Overrides
SaveOwnerControlBounds()
Declaration
protected virtual void SaveOwnerControlBounds()
SetControlBoundsAfterCollapsed()
Sets the control bounds after it is collapsed.
Declaration
protected virtual void SetControlBoundsAfterCollapsed()
SetOwnerControlBounds(Nullable<Point>, Nullable<Size>)
Declaration
protected virtual void SetOwnerControlBounds(Point? location = default(Point? ), Size? size = default(Size? ))
Parameters
System.
|
System.
|
SetupRevealCollapseAnimation(AnimatedPropertySetting)
Setups the reveal collapse animation.
Declaration
protected void SetupRevealCollapseAnimation(AnimatedPropertySetting animation)
Parameters
Animated The animation to be set up. |
SetupRevealExpandAnimation(AnimatedPropertySetting)
Setups the reveal expand animation.
Declaration
protected void SetupRevealExpandAnimation(AnimatedPropertySetting animation)
Parameters
Animated The animation to be set up. |
SetupSlideCollapseAnimation(AnimatedPropertySetting)
Setups the slide collapse animation.
Declaration
protected void SetupSlideCollapseAnimation(AnimatedPropertySetting animation)
Parameters
Animated The animation to be set up. |
SetupSlideExpandAnimation(AnimatedPropertySetting)
Setups the slide expand animation.
Declaration
protected void SetupSlideExpandAnimation(AnimatedPropertySetting animation)
Parameters
Animated The animation to be set up. |
ToggleExpandCollapse()
If the Control is expanded it will be collapsed and vice-versa.
Declaration
public virtual void ToggleExpandCollapse()
ToggleExpandCollapse(Boolean, Boolean)
If the Control is expanded it will be collapsed and vice-versa.
Declaration
public virtual void ToggleExpandCollapse(bool ignoreIsExpanded, bool stopAnimations)
Parameters
System. if set to |
System. if set to |
Events
Collapsed
Occurs when the control is collapsed.
Declaration
public event EventHandler Collapsed
Event Type
System.
|
Collapsing
Occurs when the control is about to be collapsed. Cancelable.
Declaration
public event CancelEventHandler Collapsing
Event Type
System.
|
Expanded
Occurs when the control is expanded.
Declaration
public event EventHandler Expanded
Event Type
System.
|
Expanding
Occurs when the control is about to be expanded. Cancelable.
Declaration
public event CancelEventHandler Expanding
Event Type
System.
|