Class PictureBoxBasePanelElement
base class used to hold items three panels of elements - Near, Center and Far.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class PictureBoxBasePanelElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IPictureBoxPanelElement
Constructors
PictureBoxBasePanelElement()
Initializes a new instance of the Picture
Declaration
public PictureBoxBasePanelElement()
Properties
AllowAnimation
Gets or sets a value indicating whether to use animation when changing its state.
Declaration
public bool AllowAnimation { get; set; }
Property Value
System.
|
AnimationFrames
Gets or sets the animation frames.
Declaration
public int AnimationFrames { get; set; }
Property Value
System.
|
AnimationInterval
Gets or sets the animation interval.
Declaration
public int AnimationInterval { get; set; }
Property Value
System.
|
DisplayProperty
Gets or sets the Rad
Declaration
public RadProperty DisplayProperty { get; set; }
Property Value
HiddenValue
Gets or sets the value applied to the Display
Declaration
public object HiddenValue { get; set; }
Property Value
System.
|
IsAnimating
Gets a value indicating whether the control is currently animating.
Declaration
public bool IsAnimating { get; set; }
Property Value
System.
|
Orientation
Declaration
public Orientation Orientation { get; set; }
Property Value
System.
|
Implements
VisibleValue
Gets or sets the value applied to the Display
Declaration
public object VisibleValue { get; set; }
Property Value
System.
|
Methods
ArrangeOverride(SizeF)
Arranges the Picture
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The size that is available for element. |
Returns
System. The rectangle occupied by the element. Usually |
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CancelAnimation()
Cancels the currently running animation.
Declaration
public void CancelAnimation()
ChangeState(Boolean, Boolean)
Changes the state of this object by setting a new value to a specified RadProperty and applies animation. If animation is not allowed only applies the new value to the object.
Declaration
protected virtual void ChangeState(bool isPanelShowing, bool animate)
Parameters
System. If [true] shows the panel, otherwise hides it. |
System. Whether to apply animation. |
CreateCenterElementsStack()
Creates an element stack positioned in the center.
Declaration
protected virtual StackLayoutElementLite CreateCenterElementsStack()
Returns
CreateCenterItemsCollection()
Creates a new items collection positioned in the center.
Declaration
protected virtual RadItemOwnerCollection CreateCenterItemsCollection()
Returns
Rad The items collection. |
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateFarElementsStack()
Creates an element stack positioned in the far end. When the Orientation is Horizontal the position is right. When the Orientation is Vertical the position is bottom.
Declaration
protected virtual StackLayoutElementLite CreateFarElementsStack()
Returns
CreateFarItemsCollection()
Creates a new items collection positioned in the far end. When the Orientation is Horizontal the position is right. When the Orientation is Vertical the position is bottom.
Declaration
protected virtual RadItemOwnerCollection CreateFarItemsCollection()
Returns
Rad The items collection. |
CreateNearElementsStack()
Creates an element stack positioned in the near end. When the Orientation is Horizontal the position is left. When the Orientation is Vertical the position is top.
Declaration
protected virtual StackLayoutElementLite CreateNearElementsStack()
Returns
CreateNearItemsCollection()
Creates a new items collection positioned in the near end. When the Orientation is Horizontal the position is left. When the Orientation is Vertical the position is top.
Declaration
protected virtual RadItemOwnerCollection CreateNearItemsCollection()
Returns
Rad The items collection. |
Hide(Boolean)
Hides the panel.
Declaration
public virtual void Hide(bool animate)
Parameters
System.
|
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the Picture
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Picture |
Returns
System. The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnAnimationFinished(AnimationStatusEventArgs)
Declaration
protected virtual void OnAnimationFinished(AnimationStatusEventArgs e)
Parameters
OnAnimationStarted(AnimationStatusEventArgs)
Declaration
protected virtual void OnAnimationStarted(AnimationStatusEventArgs e)
Parameters
OnAnimationStarting(PictureBoxPanelAnimationStartingEventArgs)
Declaration
protected virtual void OnAnimationStarting(PictureBoxPanelAnimationStartingEventArgs e)
Parameters
OnOrientationChanged()
Declaration
protected virtual void OnOrientationChanged()
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
ShouldArrangeChild(RadElement)
Determines whether a given child should be arranged. For example when base.ArrangeOverride() is called, but we have custom layout logic for current element.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
Rad The child that is going to be arranged. |
Returns
System. A value indicating whether the base class layout will be executed for the given child. |
Overrides
ShouldMeasureChild(RadElement)
Gets a value indicating, whether a child will be measured during the MeasureOverride.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
Rad The child. |
Returns
System. Whether the child will be measured in MeasureOverride. |
Overrides
Show(Boolean)
Shows the panel.
Declaration
public virtual void Show(bool animate)
Parameters
System.
|
Events
AnimationFinished
Occurs when the animation is finished.
Declaration
public event AnimationFinishedEventHandler AnimationFinished
Event Type
AnimationStarted
Occurs when the animation is started.
Declaration
public event AnimationStartedEventHandler AnimationStarted
Event Type
AnimationStarting
Occurs before the start of the animation. Suitable to change any animation property(for example the animated property) or cancel the animation.
Declaration
public event PictureBoxPanelAnimationStartingEventHandler AnimationStarting
Event Type
Explicit Interface Implementations
IPictureBoxPanelElement.CenterElementsStack
Declaration
StackLayoutElementLite IPictureBoxPanelElement.CenterElementsStack { get; }
Returns
Implements
IPictureBoxPanelElement.CenterItems
Declaration
RadItemOwnerCollection IPictureBoxPanelElement.CenterItems { get; }
Returns
Implements
IPictureBoxPanelElement.FarElementsStack
Declaration
StackLayoutElementLite IPictureBoxPanelElement.FarElementsStack { get; }
Returns
Implements
IPictureBoxPanelElement.FarItems
Declaration
RadItemOwnerCollection IPictureBoxPanelElement.FarItems { get; }
Returns
Implements
IPictureBoxPanelElement.NearElementsStack
Declaration
StackLayoutElementLite IPictureBoxPanelElement.NearElementsStack { get; }
Returns
Implements
IPictureBoxPanelElement.NearItems
Declaration
RadItemOwnerCollection IPictureBoxPanelElement.NearItems { get; }